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:
parent
7189ff58b4
commit
8d8a033ebd
@ -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 ¤t, const QModelIndex &previous)
|
||||
|
Loading…
Reference in New Issue
Block a user