diff --git a/sources/qetmainwindow.cpp b/sources/qetmainwindow.cpp index 233dc0ae8..d5b6ba39e 100644 --- a/sources/qetmainwindow.cpp +++ b/sources/qetmainwindow.cpp @@ -51,6 +51,8 @@ void QETMainWindow::initCommonActions() { updateFullScreenAction(); connect(fullscreen_action_, SIGNAL(triggered()), this, SLOT(toggleFullScreen())); + whatsthis_action_ = QWhatsThis::createAction(this); + about_qet_ = new QAction(QET::Icons::QETLogo, tr("\300 &propos de QElectroTech"), this); about_qet_ -> setStatusTip(tr("Affiche des informations sur QElectroTech", "status bar tip")); connect(about_qet_, SIGNAL(triggered()), qet_app, SLOT(aboutQET())); @@ -69,7 +71,10 @@ void QETMainWindow::initCommonMenus() { settings_menu_ -> addAction(configure_action_); connect(settings_menu_, SIGNAL(aboutToShow()), this, SLOT(checkToolbarsmenu())); + help_menu_ = new QMenu(tr("&Aide", "window menu")); + help_menu_ -> addAction(whatsthis_action_); + help_menu_ -> addSeparator(); help_menu_ -> addAction(about_qet_); help_menu_ -> addAction(about_qt_); diff --git a/sources/qetmainwindow.h b/sources/qetmainwindow.h index 340ce5eaa..2c36cb95e 100644 --- a/sources/qetmainwindow.h +++ b/sources/qetmainwindow.h @@ -52,6 +52,7 @@ class QETMainWindow : public QMainWindow { protected: QAction *configure_action_; ///< Launch the QElectroTech configuration dialog QAction *fullscreen_action_; ///< Toggle full screen + QAction *whatsthis_action_; ///< Toggle "What's this" mode QAction *about_qet_; ///< Launch the "About QElectroTech" dialog QAction *about_qt_; ///< launch the "About Qt" dialog QMenu *settings_menu_; ///< Settings menu