mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-30 14:15:35 +08:00
Added "About Qt" help menu item
This commit is contained in:
committed by
Mathew Sutcliffe
parent
380da41544
commit
c4db854fad
@@ -529,11 +529,18 @@ namespace BlackGui
|
|||||||
const QWidget *w = mainApplicationWindow();
|
const QWidget *w = mainApplicationWindow();
|
||||||
if (!w) { return; }
|
if (!w) { return; }
|
||||||
QAction *a = menu.addAction(w->style()->standardIcon(QStyle::SP_TitleBarContextHelpButton), "Online help");
|
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();
|
this->showHelp();
|
||||||
});
|
});
|
||||||
Q_ASSERT_X(c, Q_FUNC_INFO, "Connect failed");
|
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);
|
Q_UNUSED(c);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user