adding a quit menu entry

Without titlebar buttons, e. g. in i3, there was no easy way to quit.
This commit is contained in:
ballessay 2017-03-31 23:54:06 +02:00
parent a68d22f608
commit 1d953822bc
3 changed files with 16 additions and 0 deletions

View File

@ -1107,3 +1107,8 @@ void MainWindow::on_actionReset_settings_triggered()
settings.clear();
}
}
void MainWindow::on_actionQuit_triggered()
{
close();
}

View File

@ -186,6 +186,8 @@ private slots:
void on_actionReset_settings_triggered();
void on_actionQuit_triggered();
private:
void refreshFlagspaces();
bool doLock;

View File

@ -347,6 +347,7 @@ QToolButton { /* all types of tool button */
<addaction name="separator"/>
<addaction name="actionRun_Script"/>
<addaction name="separator"/>
<addaction name="actionQuit"/>
</widget>
<widget class="QMenu" name="menuTools">
<property name="title">
@ -1087,6 +1088,14 @@ background: rgb(64, 64, 64);</string>
<string>Reset settings</string>
</property>
</action>
<action name="actionQuit">
<property name="text">
<string>Quit</string>
</property>
<property name="shortcut">
<string>Ctrl+Q</string>
</property>
</action>
</widget>
<layoutdefault spacing="6" margin="11"/>
<resources>