Added "About Qt" help menu item

This commit is contained in:
Klaus Basan
2017-07-14 03:56:26 +02:00
committed by Mathew Sutcliffe
parent 380da41544
commit c4db854fad

View File

@@ -529,11 +529,18 @@ namespace BlackGui
const QWidget *w = mainApplicationWindow();
if (!w) { return; }
QAction *a = menu.addAction(w->style()->standardIcon(QStyle::SP_TitleBarContextHelpButton), "Online help");
const bool c = connect(a, &QAction::triggered, this, [this]()
bool c = connect(a, &QAction::triggered, this, [this]()
{
this->showHelp();
});
Q_ASSERT_X(c, Q_FUNC_INFO, "Connect failed");
a = menu.addAction("About Qt");
c = connect(a, &QAction::triggered, this, []()
{
QApplication::aboutQt();
});
Q_ASSERT_X(c, Q_FUNC_INFO, "Connect failed");
Q_UNUSED(c);
}