[UI] Make scroll bars depends on WT version
This commit is contained in:
@@ -291,9 +291,10 @@ _trackSelector(new TrackSelector())
|
||||
this->setColumnWidth(COLUMN_ID_NAME, 240);
|
||||
|
||||
this->setLayoutSizeAware(true);
|
||||
#if WT_VERSION >= 0X03030400
|
||||
this->setOverflow(Wt::WContainerWidget::OverflowHidden, Wt::Horizontal);
|
||||
this->setOverflow(Wt::WContainerWidget::OverflowScroll, Wt::Vertical);
|
||||
|
||||
#endif
|
||||
this->setColumnHidden(COLUMN_ID_TRACK_ID, true);
|
||||
|
||||
_itemDelegate = new PlayQueueItemDelegate();
|
||||
|
||||
@@ -48,8 +48,10 @@ TableFilterGenre::TableFilterGenre(Wt::WContainerWidget* parent)
|
||||
|
||||
this->selectionChanged().connect(this, &TableFilterGenre::emitUpdate);
|
||||
|
||||
#if WT_VERSION >= 0X03030400
|
||||
this->setOverflow(Wt::WContainerWidget::OverflowHidden, Wt::Horizontal);
|
||||
this->setOverflow(Wt::WContainerWidget::OverflowScroll, Wt::Vertical);
|
||||
#endif
|
||||
|
||||
this->setLayoutSizeAware(true);
|
||||
|
||||
@@ -123,8 +125,10 @@ TableFilterArtist::TableFilterArtist(Wt::WContainerWidget* parent)
|
||||
|
||||
this->selectionChanged().connect(this, &TableFilterArtist::emitUpdate);
|
||||
|
||||
#if WT_VERSION >= 0X03030400
|
||||
this->setOverflow(Wt::WContainerWidget::OverflowHidden, Wt::Horizontal);
|
||||
this->setOverflow(Wt::WContainerWidget::OverflowScroll, Wt::Vertical);
|
||||
#endif
|
||||
|
||||
this->setLayoutSizeAware(true);
|
||||
|
||||
@@ -204,8 +208,10 @@ TableFilterRelease::TableFilterRelease(Wt::WContainerWidget* parent)
|
||||
|
||||
this->selectionChanged().connect(this, &TableFilterRelease::emitUpdate);
|
||||
|
||||
#if WT_VERSION >= 0X03030400
|
||||
this->setOverflow(Wt::WContainerWidget::OverflowHidden, Wt::Horizontal);
|
||||
this->setOverflow(Wt::WContainerWidget::OverflowScroll, Wt::Vertical);
|
||||
#endif
|
||||
|
||||
this->setLayoutSizeAware(true);
|
||||
|
||||
|
||||
@@ -67,7 +67,9 @@ TrackView::TrackView(Wt::WContainerWidget* parent)
|
||||
this->setColumnWidth(6, 70); // Date
|
||||
this->setColumnWidth(7, 70); // Original Date
|
||||
this->setColumnWidth(8, 180); // Genres
|
||||
#if WT_VERSION >= 0X03030400
|
||||
this->setOverflow(Wt::WContainerWidget::OverflowScroll, Wt::Vertical);
|
||||
#endif
|
||||
|
||||
// Duration display
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user