mainwindow: Add search history. Allow going up/down with arrow keys

This commit is contained in:
2022-08-21 17:28:04 +02:00
parent c0f4087937
commit 2885e40a3a
2 changed files with 69 additions and 1 deletions

View File

@@ -64,7 +64,11 @@ class MainWindow : public QMainWindow
void initSettingsTabs();
int currentSelectedScale();
void processShortcut(int key);
private slots:
bool eventFilter(QObject *object, QEvent *event);
QVector<QString> searchHistory;
int currentSearchHistoryIndex = 0;
QString currentSavedSearchText;
private slots:
void lineEditReturnPressed();
void treeSearchItemActivated(QTreeWidgetItem *item, int i);
void showSearchResultsContextMenu(const QPoint &point);