1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

LocationCompleter: Reset scrollbar position when hiding completer

- fixes issue with opening completer scrolled down when showing
  new suggestions

Patch by Franz Fellner <alpine.art.de@gmail.com>
This commit is contained in:
nowrep 2012-09-08 22:54:53 +02:00
parent 7189ff58b4
commit 8d8a033ebd

View File

@ -23,6 +23,7 @@
#include <QKeyEvent>
#include <QApplication>
#include <QStyle>
#include <QScrollBar>
LocationCompleterView::LocationCompleterView()
: QListView(0)
@ -168,6 +169,7 @@ void LocationCompleterView::close()
m_hoveredIndex = QPersistentModelIndex();
QListView::hide();
verticalScrollBar()->setValue(0);
}
void LocationCompleterView::currentChanged(const QModelIndex &current, const QModelIndex &previous)