src/MainWindow.cpp

changeset 16
a5d8e783a7b0
parent 15
c58b82549713
child 19
c94edc758a5b
equal deleted inserted replaced
15:c58b82549713 16:a5d8e783a7b0
80 void MainWindow::on_actionSetup_triggered() 80 void MainWindow::on_actionSetup_triggered()
81 { 81 {
82 qDebug() << Q_FUNC_INFO; 82 qDebug() << Q_FUNC_INFO;
83 SetupWindow = new Setup(this); 83 SetupWindow = new Setup(this);
84 QObject::connect(SetupWindow, SIGNAL(firstWindow()), this, SLOT(fromSetup())); 84 QObject::connect(SetupWindow, SIGNAL(firstWindow()), this, SLOT(fromSetup()));
85 this->hide(); // Close the main window 85 this->hide(); // Close the main window
86 SetupWindow->show(); // Show a second window 86 SetupWindow->show(); // Show a setup window
87 } 87 }
88 88
89 89
90 void MainWindow::on_actionAbout_triggered() 90 void MainWindow::on_actionAbout_triggered()
91 { 91 {
92 qDebug() << Q_FUNC_INFO;
93 AboutDialog dialog(this); 92 AboutDialog dialog(this);
94 dialog.setModal(true); 93 dialog.setModal(true);
95 dialog.exec(); 94 dialog.exec();
96 } 95 }
97 96

mercurial