diff options
Diffstat (limited to 'src/widget/wlibrarytableview.cpp')
-rw-r--r-- | src/widget/wlibrarytableview.cpp | 7 |
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(); +} |