summaryrefslogtreecommitdiffstats
path: root/src/widget/wlibrarytableview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/widget/wlibrarytableview.cpp')
-rw-r--r--src/widget/wlibrarytableview.cpp7
1 files changed, 7 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