[qet] [3054] update recentfiles but isn't perfect

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


Revision: 3054
Author:   scorpio810
Date:     2014-05-04 18:47:55 +0200 (Sun, 04 May 2014)
Log Message:
-----------
update recentfiles but isn't perfect

Modified Paths:
--------------
    trunk/sources/qetdiagrameditor.cpp
    trunk/sources/recentfiles.cpp

Modified: trunk/sources/qetdiagrameditor.cpp
===================================================================
--- trunk/sources/qetdiagrameditor.cpp	2014-05-04 15:49:57 UTC (rev 3053)
+++ trunk/sources/qetdiagrameditor.cpp	2014-05-04 16:47:55 UTC (rev 3054)
@@ -457,7 +457,7 @@
 	// menu Fichier
 	menu_fichier -> addAction(new_file);
 	menu_fichier -> addAction(open_file);
-	menu_fichier -> addMenu(tr("&R\351cemment ouvert(s)")) -> addMenu(QETApp::projectsRecentFiles() -> menu());
+	menu_fichier -> addMenu(QET::Icons::DocumentOpenRecent, tr("&R\351cemment ouvert(s)")) -> addMenu(QETApp:: projectsRecentFiles() -> menu());
 	connect(QETApp::projectsRecentFiles(), SIGNAL(fileOpeningRequested(const QString &)), this, SLOT(openRecentFile(const QString &)));
 	menu_fichier -> addAction(save_file);
 	menu_fichier -> addAction(save_file_as);

Modified: trunk/sources/recentfiles.cpp
===================================================================
--- trunk/sources/recentfiles.cpp	2014-05-04 15:49:57 UTC (rev 3053)
+++ trunk/sources/recentfiles.cpp	2014-05-04 16:47:55 UTC (rev 3054)
@@ -160,7 +160,6 @@
 	// reinitialise le menu
 	if (!menu_) {
 		menu_ = new QMenu;
-		menu_ -> setIcon(QET::Icons::DocumentOpenRecent);
 	} else {
 		menu_ -> clear();
 	}


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