You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
setFocusPolicy(Qt::StrongFocus); // catch keyboard and mouse in priority
31
35
32
36
// Populate combo lists
@@ -69,6 +73,15 @@ MainWindow::~MainWindow()
69
73
70
74
/////////////////// GUI //////////////////////
71
75
76
+
voidMainWindow::on_button_quit_clicked()
77
+
{
78
+
int quit = QMessageBox::question(this, "Quit this wonderful program", "Are you sure you want to quit?", QMessageBox::Yes|QMessageBox::No); // quit, are you sure ?
79
+
if (quit == QMessageBox::No) // don't quit !
80
+
return;
81
+
82
+
QCoreApplication::quit();
83
+
}
84
+
72
85
voidMainWindow::on_Tabs_currentChanged(int) // when a tab is clicked
0 commit comments