Used way proposed in MainWindow class.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2015-11-28 19:02:21 +02:00
parent 211b68b920
commit a781d16cd4
2 changed files with 8 additions and 1 deletions

View File

@ -697,6 +697,12 @@ void TMainWindow::AboutApplication()
aboutDialog->show();
}
//---------------------------------------------------------------------------------------------------------------------
void TMainWindow::AboutQt()
{
QMessageBox::aboutQt(this, tr("About Qt"));
}
//---------------------------------------------------------------------------------------------------------------------
void TMainWindow::SaveGivenName()
{
@ -1706,7 +1712,7 @@ void TMainWindow::SetupMenu()
AboutToShowWindowMenu();
// Help
connect(ui->actionAboutQt, &QAction::triggered, qApp, &MApplication::aboutQt);
connect(ui->actionAboutQt, &QAction::triggered, this, &TMainWindow::AboutQt);
connect(ui->actionAboutTape, &QAction::triggered, this, &TMainWindow::AboutApplication);
}

View File

@ -81,6 +81,7 @@ private slots:
void AboutToShowWindowMenu();
void ShowWindow();
void AboutApplication();
void AboutQt();
void SaveGivenName();
void SaveFamilyName();