Qt: Make 'About Qt' action actually open the about box

This commit is contained in:
Simon McFarlane 2015-05-03 15:05:25 -07:00
parent 406270bcf9
commit 64cf6d167f
2 changed files with 7 additions and 0 deletions

View File

@ -78,6 +78,7 @@ DMainWindow::DMainWindow(QWidget* parent_widget)
connect(m_ui->actionGitHub, SIGNAL(triggered()), this, SLOT(OnOpenGitHub()));
connect(m_ui->actionSystemInfo, SIGNAL(triggered()), this, SLOT(OnOpenSystemInfo()));
connect(m_ui->actionAbout, SIGNAL(triggered()), this, SLOT(OnOpenAbout()));
connect(m_ui->actionAboutQt, SIGNAL(triggered()), this, SLOT(OnOpenAboutQt()));
// Update GUI items
emit CoreStateChanged(Core::CORE_UNINITIALIZED);
@ -362,3 +363,8 @@ void DMainWindow::OnOpenAbout()
DAboutDialog* dlg = new DAboutDialog(this);
dlg->open();
}
void DMainWindow::OnOpenAboutQt()
{
QApplication::aboutQt();
}

View File

@ -58,6 +58,7 @@ private slots:
void OnOpenGitHub();
void OnOpenSystemInfo();
void OnOpenAbout();
void OnOpenAboutQt();
// Misc.
void UpdateIcons();