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