mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 12:55:33 +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();
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user