DolphinQt: Make Ctrl+F show the game list search and select the search text if already open. Escape closes.

This commit is contained in:
Jordan Woyak
2019-03-17 16:08:59 -05:00
parent 8713a752f3
commit 94c4975b5d
5 changed files with 40 additions and 12 deletions

View File

@ -15,7 +15,9 @@ class SearchBar : public QWidget
public:
explicit SearchBar(QWidget* parent = nullptr);
void Toggle();
void Show();
void Hide();
signals:
void Search(const QString& serach);
@ -23,6 +25,8 @@ private:
void CreateWidgets();
void ConnectWidgets();
bool eventFilter(QObject* object, QEvent* event) final override;
QLineEdit* m_search_edit;
QPushButton* m_close_button;
};