ui: fixed flickering of search autocompletions popup
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
#include <QPushButton>
|
||||
|
||||
#include "data/search/SearchMatch.h"
|
||||
#include "qt/element/QtAutocompletionList.h"
|
||||
|
||||
class QtSearchElement
|
||||
: public QPushButton
|
||||
@@ -38,6 +39,8 @@ public:
|
||||
QtSmartSearchBox(QWidget* parent);
|
||||
virtual ~QtSmartSearchBox();
|
||||
|
||||
QCompleter* getCompleter() const;
|
||||
|
||||
void setAutocompletionList(const std::vector<SearchMatch>& autocompletionList);
|
||||
void setMatches(const std::vector<SearchMatch>& matches);
|
||||
void setFocus();
|
||||
@@ -109,6 +112,7 @@ private:
|
||||
int m_mouseX;
|
||||
|
||||
QWidget* m_highlightRect;
|
||||
QtAutocompletionList* m_completer;
|
||||
};
|
||||
|
||||
#endif // QT_SMART_SEARCH_BOX_H
|
||||
|
||||
Reference in New Issue
Block a user