diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-03-23 22:50:05 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-03-23 22:50:05 +0200 |
commit | a6a80f4bf83eaa1894b83755ec8785af5ed4559f (patch) | |
tree | 4635fba7cff12dc8848b19f26d8540d79cb35716 /src/subwindow | |
parent | lib/configuration improvements (diff) | |
download | smolbote-a6a80f4bf83eaa1894b83755ec8785af5ed4559f.tar.xz |
Fix various compiler warnings
Diffstat (limited to 'src/subwindow')
-rw-r--r-- | src/subwindow/subwindow.cpp | 7 |
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(); |