clear search field when reopening settings
This commit is contained in:
@@ -285,6 +285,11 @@ void SettingsDialog::themeChangedEvent()
|
||||
this->setPalette(palette);
|
||||
}
|
||||
|
||||
void SettingsDialog::showEvent(QShowEvent *)
|
||||
{
|
||||
this->ui_.search->setText("");
|
||||
}
|
||||
|
||||
///// Widget creation helpers
|
||||
void SettingsDialog::onOkClicked()
|
||||
{
|
||||
|
||||
@@ -39,6 +39,7 @@ public:
|
||||
protected:
|
||||
virtual void scaleChangedEvent(float newDpi) override;
|
||||
virtual void themeChangedEvent() override;
|
||||
virtual void showEvent(QShowEvent *) override;
|
||||
|
||||
private:
|
||||
static SettingsDialog *handle;
|
||||
|
||||
Reference in New Issue
Block a user