[qet] [1695] Main windows: added a "What's this?" action.

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 1695
Author:   xavier
Date:     2012-04-28 18:45:10 +0200 (Sat, 28 Apr 2012)
Log Message:
-----------
Main windows: added a "What's this?" action.

Modified Paths:
--------------
    branches/0.3/sources/qetmainwindow.cpp
    branches/0.3/sources/qetmainwindow.h

Modified: branches/0.3/sources/qetmainwindow.cpp
===================================================================
--- branches/0.3/sources/qetmainwindow.cpp	2012-04-28 14:34:28 UTC (rev 1694)
+++ branches/0.3/sources/qetmainwindow.cpp	2012-04-28 16:45:10 UTC (rev 1695)
@@ -51,6 +51,8 @@
 	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 @@
 	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_);
 	

Modified: branches/0.3/sources/qetmainwindow.h
===================================================================
--- branches/0.3/sources/qetmainwindow.h	2012-04-28 14:34:28 UTC (rev 1694)
+++ branches/0.3/sources/qetmainwindow.h	2012-04-28 16:45:10 UTC (rev 1695)
@@ -52,6 +52,7 @@
 	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


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/