aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core-utils/lumina-config/mainWindow.cpp
diff options
context:
space:
mode:
authorq5sys <jt@obs-sec.com>2017-01-05 12:41:18 -0500
committerq5sys <jt@obs-sec.com>2017-01-05 12:41:18 -0500
commite555ea9b7f21f1fe5ee03258c1ff8fd58cf7efbd (patch)
treeaeacc1c57fa26354e6b5e72462117cb9ea470340 /src-qt5/core-utils/lumina-config/mainWindow.cpp
parentMerge remote-tracking branch 'origin/master' (diff)
downloadlumina-e555ea9b7f21f1fe5ee03258c1ff8fd58cf7efbd.tar.gz
lumina-e555ea9b7f21f1fe5ee03258c1ff8fd58cf7efbd.tar.bz2
lumina-e555ea9b7f21f1fe5ee03258c1ff8fd58cf7efbd.zip
add quit keyboard shortcut
Diffstat (limited to 'src-qt5/core-utils/lumina-config/mainWindow.cpp')
-rw-r--r--src-qt5/core-utils/lumina-config/mainWindow.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src-qt5/core-utils/lumina-config/mainWindow.cpp b/src-qt5/core-utils/lumina-config/mainWindow.cpp
index 595d69f6..d3d864fe 100644
--- a/src-qt5/core-utils/lumina-config/mainWindow.cpp
+++ b/src-qt5/core-utils/lumina-config/mainWindow.cpp
@@ -25,6 +25,8 @@ mainWindow::mainWindow() : QMainWindow(), ui(new Ui::mainWindow()){
ui->toolBar->insertWidget(ui->actionSave, tmp); //after the save button
backShortcut = new QShortcut(Qt::Key_Escape, this);
connect(backShortcut, SIGNAL(activated()), this, SLOT(on_actionBack_triggered()) );
+ quitShortcut = new QShortcut(Qt::CTRL + Qt::Key_Q, this);
+ connect(quitShortcut, SIGNAL(activated()), this, SLOT(on_quitShortcut_Triggered()) );
setupIcons();
loadMonitors();
//changePage(""); //load the default main page
@@ -145,6 +147,10 @@ void mainWindow::on_actionBack_triggered(){
else{ page_change(""); } //Use the interactive wrapper (check for save state, etc).
}
+void mainWindow::on_quitShortcut_Triggered(){
+ QApplication::quit();
+}
+
void mainWindow::changeMonitor(QAction *act){
QString oldWT = ui->actionMonitor->whatsThis();
//Update the current selection shown on the button
bgstack15