mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-21 00:30:53 +01:00
Main windows: added a "What's this?" action.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@1695 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -51,6 +51,8 @@ void QETMainWindow::initCommonActions() {
|
|||||||
updateFullScreenAction();
|
updateFullScreenAction();
|
||||||
connect(fullscreen_action_, SIGNAL(triggered()), this, SLOT(toggleFullScreen()));
|
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_ = new QAction(QET::Icons::QETLogo, tr("\300 &propos de QElectroTech"), this);
|
||||||
about_qet_ -> setStatusTip(tr("Affiche des informations sur QElectroTech", "status bar tip"));
|
about_qet_ -> setStatusTip(tr("Affiche des informations sur QElectroTech", "status bar tip"));
|
||||||
connect(about_qet_, SIGNAL(triggered()), qet_app, SLOT(aboutQET()));
|
connect(about_qet_, SIGNAL(triggered()), qet_app, SLOT(aboutQET()));
|
||||||
@@ -69,7 +71,10 @@ void QETMainWindow::initCommonMenus() {
|
|||||||
settings_menu_ -> addAction(configure_action_);
|
settings_menu_ -> addAction(configure_action_);
|
||||||
connect(settings_menu_, SIGNAL(aboutToShow()), this, SLOT(checkToolbarsmenu()));
|
connect(settings_menu_, SIGNAL(aboutToShow()), this, SLOT(checkToolbarsmenu()));
|
||||||
|
|
||||||
|
|
||||||
help_menu_ = new QMenu(tr("&Aide", "window menu"));
|
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_qet_);
|
||||||
help_menu_ -> addAction(about_qt_);
|
help_menu_ -> addAction(about_qt_);
|
||||||
|
|
||||||
|
|||||||
@@ -52,6 +52,7 @@ class QETMainWindow : public QMainWindow {
|
|||||||
protected:
|
protected:
|
||||||
QAction *configure_action_; ///< Launch the QElectroTech configuration dialog
|
QAction *configure_action_; ///< Launch the QElectroTech configuration dialog
|
||||||
QAction *fullscreen_action_; ///< Toggle full screen
|
QAction *fullscreen_action_; ///< Toggle full screen
|
||||||
|
QAction *whatsthis_action_; ///< Toggle "What's this" mode
|
||||||
QAction *about_qet_; ///< Launch the "About QElectroTech" dialog
|
QAction *about_qet_; ///< Launch the "About QElectroTech" dialog
|
||||||
QAction *about_qt_; ///< launch the "About Qt" dialog
|
QAction *about_qt_; ///< launch the "About Qt" dialog
|
||||||
QMenu *settings_menu_; ///< Settings menu
|
QMenu *settings_menu_; ///< Settings menu
|
||||||
|
|||||||
Reference in New Issue
Block a user