Wed, 15 Jun 2022 13:03:33 +0300
Add About Qt menu entry
src/main.cpp | file | annotate | diff | comparison | revisions | |
src/mainwindow.ui | file | annotate | diff | comparison | revisions |
--- a/src/main.cpp Wed Jun 15 13:03:20 2022 +0300 +++ b/src/main.cpp Wed Jun 15 13:03:33 2022 +0300 @@ -598,6 +598,7 @@ } } }); + QObject::connect(ui.actionAboutQt, &QAction::triggered, &app, &QApplication::aboutQt); mainWindow.setWindowTitle(title()); mainWindow.restoreGeometry(setting<Setting::MainWindowGeometry>()); restoreSettings();
--- a/src/mainwindow.ui Wed Jun 15 13:03:20 2022 +0300 +++ b/src/mainwindow.ui Wed Jun 15 13:03:33 2022 +0300 @@ -39,7 +39,7 @@ <x>0</x> <y>0</y> <width>800</width> - <height>28</height> + <height>29</height> </rect> </property> <widget class="QMenu" name="menuFile"> @@ -85,9 +85,16 @@ <addaction name="actionGridMedium"/> <addaction name="actionGridCoarse"/> </widget> + <widget class="QMenu" name="menuHelp"> + <property name="title"> + <string>Help</string> + </property> + <addaction name="actionAboutQt"/> + </widget> <addaction name="menuFile"/> <addaction name="menuView"/> <addaction name="menuEdit"/> + <addaction name="menuHelp"/> </widget> <widget class="QStatusBar" name="statusbar"/> <widget class="QToolBar" name="fileToolBar"> @@ -389,6 +396,11 @@ <string>Invert</string> </property> </action> + <action name="actionAboutQt"> + <property name="text"> + <string>About Qt</string> + </property> + </action> </widget> <resources> <include location="../ldforge.qrc"/>