mirror of
https://gitlab.com/comunic/comunicmessages
synced 2024-12-04 19:24:11 +00:00
Added exit action
This commit is contained in:
parent
23fb569e5e
commit
3a1cc0f211
@ -60,3 +60,8 @@ void MainWindow::on_actionLogout_triggered()
|
||||
//Close this widget
|
||||
close();
|
||||
}
|
||||
|
||||
void MainWindow::on_actionExit_triggered()
|
||||
{
|
||||
QCoreApplication::exit(0);
|
||||
}
|
||||
|
@ -44,6 +44,8 @@ private slots:
|
||||
|
||||
void on_actionLogout_triggered();
|
||||
|
||||
void on_actionExit_triggered();
|
||||
|
||||
private:
|
||||
Ui::MainWindow *ui;
|
||||
ConversationsListWidget *mConversationsListWidget;
|
||||
|
@ -63,6 +63,13 @@
|
||||
<addaction name="actionAbout_this_App"/>
|
||||
<addaction name="actionAbout_Qt"/>
|
||||
</widget>
|
||||
<widget class="QMenu" name="menuFile">
|
||||
<property name="title">
|
||||
<string>File</string>
|
||||
</property>
|
||||
<addaction name="actionExit"/>
|
||||
</widget>
|
||||
<addaction name="menuFile"/>
|
||||
<addaction name="menuAccount"/>
|
||||
<addaction name="menuHelp"/>
|
||||
</widget>
|
||||
@ -82,6 +89,11 @@
|
||||
<string>Logout</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionExit">
|
||||
<property name="text">
|
||||
<string>Exit</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<resources>
|
||||
<include location="../res/ressources.qrc"/>
|
||||
|
Loading…
Reference in New Issue
Block a user