diff options
Diffstat (limited to 'src/widget')
-rw-r--r-- | src/widget/wlibrarytableview.cpp | 7 | ||||
-rw-r--r-- | src/widget/wlibrarytableview.h | 2 |
2 files changed, 9 insertions, 0 deletions
diff --git a/src/widget/wlibrarytableview.cpp b/src/widget/wlibrarytableview.cpp index 8a6fc0ce18..3864c80810 100644 --- a/src/widget/wlibrarytableview.cpp +++ b/src/widget/wlibrarytableview.cpp @@ -43,6 +43,9 @@ WLibraryTableView::WLibraryTableView(QWidget* parent, loadVScrollBarPosState(); + connect(verticalScrollBar(), SIGNAL(valueChanged(int)), + this, SLOT(slotScrollValueChanged(int))); + setTabKeyNavigation(false); } @@ -51,6 +54,10 @@ WLibraryTableView::~WLibraryTableView() { saveVScrollBarPosState(); } +void WLibraryTableView::slotScrollValueChanged(int scrollPos) { + emit(scrollValueChanged(scrollPos)); +} + void WLibraryTableView::loadVScrollBarPosState() { // TODO(rryan) I'm not sure I understand the value in saving the v-scrollbar // position across restarts of Mixxx. Now that we have different views for diff --git a/src/widget/wlibrarytableview.h b/src/widget/wlibrarytableview.h index a47bc6fbcd..1f4176aa17 100644 --- a/src/widget/wlibrarytableview.h +++ b/src/widget/wlibrarytableview.h @@ -26,10 +26,12 @@ class WLibraryTableView : public QTableView, public virtual LibraryView { void loadTrack(TrackPointer pTrack); void loadTrackToPlayer(TrackPointer pTrack, QString group, bool play = false); void loadCoverArt(const QString& location); + void scrollValueChanged(int); public slots: void saveVScrollBarPos(); void restoreVScrollBarPos(); + void slotScrollValueChanged(int scrollPos); private: void loadVScrollBarPosState(); |