[UI] Make scroll bars depends on WT version

This commit is contained in:
emeric
2015-09-02 20:39:48 +02:00
parent c2909227d9
commit 758258d776
3 changed files with 10 additions and 1 deletions
+2 -1
View File
@@ -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();
+6
View File
@@ -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);
+2
View File
@@ -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
{