aboutsummaryrefslogtreecommitdiff
path: root/src/subwindow/subwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/subwindow/subwindow.cpp')
-rw-r--r--src/subwindow/subwindow.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/subwindow/subwindow.cpp b/src/subwindow/subwindow.cpp
index 7f2ae05..c6e156e 100644
--- a/src/subwindow/subwindow.cpp
+++ b/src/subwindow/subwindow.cpp
@@ -35,8 +35,11 @@ SubWindow::SubWindow(QWidget *parent, Qt::WindowFlags flags)
m_profile = WebProfile::defaultProfile();
Configuration config;
- auto *fullScreen_shortcut = new QShortcut(QKeySequence(config.value<QString>("shortcuts.subwindow.fullscreen").value()), this);
- connect(fullScreen_shortcut, &QShortcut::activated, this, [=]() {
+
+ QKeySequence fullscreen_shortcut;
+ config.shortcut<QKeySequence>(fullscreen_shortcut, "shortcuts.subwindow.fullscreen");
+ auto *fullScreen_shortcut = new QShortcut(fullscreen_shortcut, this);
+ connect(fullScreen_shortcut, &QShortcut::activated, this, [this]() {
auto *w = this->window();
if(w->isFullScreen())
w->showNormal();