Skip to content

Commit

Permalink
shows the vertical scrollbar of songeditor and bb-editor only if need…
Browse files Browse the repository at this point in the history
…ed (#5102)
  • Loading branch information
BaraMGB authored Aug 18, 2019
1 parent 00d2cd3 commit e1ef5fa
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/gui/TrackContainerView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,10 +226,9 @@ void TrackContainerView::scrollToTrackView( TrackView * _tv )

void TrackContainerView::realignTracks()
{
QWidget * content = m_scrollArea->widget();
content->setFixedWidth( width()
- m_scrollArea->verticalScrollBar()->width() );
content->setFixedHeight( content->minimumSizeHint().height() );
m_scrollArea->widget()->setFixedWidth(width());
m_scrollArea->widget()->setFixedHeight(
m_scrollArea->widget()->minimumSizeHint().height());

for( trackViewList::iterator it = m_trackViews.begin();
it != m_trackViews.end(); ++it )
Expand Down Expand Up @@ -488,7 +487,6 @@ TrackContainerView::scrollArea::scrollArea( TrackContainerView * _parent ) :
{
setFrameStyle( QFrame::NoFrame );
setHorizontalScrollBarPolicy( Qt::ScrollBarAlwaysOff );
setVerticalScrollBarPolicy( Qt::ScrollBarAlwaysOn );
}


Expand Down

0 comments on commit e1ef5fa

Please sign in to comment.