mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 05:40:01 -06:00
DolphinQt: Make Ctrl+F show the game list search and select the search text if already open. Escape closes.
This commit is contained in:
@ -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;
|
||||
};
|
||||
|
Reference in New Issue
Block a user