[SettingDialog] CTRL+F now selects the Find input (#1811)

* Sneakily make SettingsDialog constructor private at the same time 🕵
This commit is contained in:
pajlada
2020-07-18 09:56:33 -04:00
committed by GitHub
parent 6ba9c5ec31
commit 276f3e1d98
3 changed files with 8 additions and 1 deletions
+6
View File
@@ -3,6 +3,7 @@
#include "Application.hpp"
#include "singletons/Resources.hpp"
#include "util/LayoutCreator.hpp"
#include "util/Shortcut.hpp"
#include "widgets/helper/Button.hpp"
#include "widgets/settingspages/AboutPage.hpp"
#include "widgets/settingspages/AccountsPage.hpp"
@@ -32,6 +33,11 @@ SettingsDialog::SettingsDialog()
this->addTabs();
this->overrideBackgroundColor_ = QColor("#111111");
this->scaleChangedEvent(this->scale()); // execute twice to width of item
createWindowShortcut(this, "CTRL+F", [this] {
this->ui_.search->setFocus();
this->ui_.search->selectAll();
});
}
void SettingsDialog::initUi()