summaryrefslogtreecommitdiffstats
path: root/src/widget/wlibrarytableview.cpp
diff options
context:
space:
mode:
authorraulbehl <raulbehl@gmail.com>2015-02-12 18:58:30 +0530
committerraulbehl <raulbehl@gmail.com>2015-02-12 19:00:12 +0530
commitdfc3a0cb136592ff226bf7e4a5194b911d54b9ab (patch)
treeeed49f448ce80a9edecb9541cbd000018c908458 /src/widget/wlibrarytableview.cpp
parentf2c53f20204c0d5640fe881950d672740afe432f (diff)
Using updateGeometries() instead of processEvents()
Diffstat (limited to 'src/widget/wlibrarytableview.cpp')
-rw-r--r--src/widget/wlibrarytableview.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/widget/wlibrarytableview.cpp b/src/widget/wlibrarytableview.cpp
index 6ef265f6ab..1d765e8bd0 100644
--- a/src/widget/wlibrarytableview.cpp
+++ b/src/widget/wlibrarytableview.cpp
@@ -5,7 +5,6 @@
#include <QPalette>
#include <QScrollBar>
#include <QFontMetrics>
-#include <QCoreApplication>
#include "widget/wwidget.h"
#include "widget/wskincolor.h"
@@ -67,7 +66,7 @@ void WLibraryTableView::loadVScrollBarPosState() {
void WLibraryTableView::restoreVScrollBarPos() {
//Restore the scrollbar's position (scroll to that spot)
//when the search has been cleared
- QCoreApplication::processEvents();
+ updateGeometries();
verticalScrollBar()->setValue(m_iSavedVScrollBarPos);
}
@@ -123,3 +122,7 @@ void WLibraryTableView::setTrackTableRowHeight(int rowHeight) {
verticalHeader()->setDefaultSectionSize(math_max(
rowHeight, fontHeightPx));
}
+
+void WLibraryTableView::updateGeometries() {
+ QTableView::updateGeometries();
+}