mirror of
https://github.com/rizinorg/cutter.git
synced 2025-02-28 09:24:44 +00:00
adding a quit menu entry
Without titlebar buttons, e. g. in i3, there was no easy way to quit.
This commit is contained in:
parent
a68d22f608
commit
1d953822bc
@ -1107,3 +1107,8 @@ void MainWindow::on_actionReset_settings_triggered()
|
|||||||
settings.clear();
|
settings.clear();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void MainWindow::on_actionQuit_triggered()
|
||||||
|
{
|
||||||
|
close();
|
||||||
|
}
|
||||||
|
@ -186,6 +186,8 @@ private slots:
|
|||||||
|
|
||||||
void on_actionReset_settings_triggered();
|
void on_actionReset_settings_triggered();
|
||||||
|
|
||||||
|
void on_actionQuit_triggered();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void refreshFlagspaces();
|
void refreshFlagspaces();
|
||||||
bool doLock;
|
bool doLock;
|
||||||
|
@ -347,6 +347,7 @@ QToolButton { /* all types of tool button */
|
|||||||
<addaction name="separator"/>
|
<addaction name="separator"/>
|
||||||
<addaction name="actionRun_Script"/>
|
<addaction name="actionRun_Script"/>
|
||||||
<addaction name="separator"/>
|
<addaction name="separator"/>
|
||||||
|
<addaction name="actionQuit"/>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QMenu" name="menuTools">
|
<widget class="QMenu" name="menuTools">
|
||||||
<property name="title">
|
<property name="title">
|
||||||
@ -1087,6 +1088,14 @@ background: rgb(64, 64, 64);</string>
|
|||||||
<string>Reset settings</string>
|
<string>Reset settings</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
|
<action name="actionQuit">
|
||||||
|
<property name="text">
|
||||||
|
<string>Quit</string>
|
||||||
|
</property>
|
||||||
|
<property name="shortcut">
|
||||||
|
<string>Ctrl+Q</string>
|
||||||
|
</property>
|
||||||
|
</action>
|
||||||
</widget>
|
</widget>
|
||||||
<layoutdefault spacing="6" margin="11"/>
|
<layoutdefault spacing="6" margin="11"/>
|
||||||
<resources>
|
<resources>
|
||||||
|
Loading…
Reference in New Issue
Block a user