[qet] [2400] Element editor: disable action reload temporarily, elements after reload action are not editable.

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


Revision: 2400
Author:   scorpio810
Date:     2013-07-28 16:42:24 +0200 (Sun, 28 Jul 2013)
Log Message:
-----------
Element editor: disable action reload temporarily, elements after reload action are not editable.

Modified Paths:
--------------
    trunk/sources/editor/qetelementeditor.cpp

Modified: trunk/sources/editor/qetelementeditor.cpp
===================================================================
--- trunk/sources/editor/qetelementeditor.cpp	2013-07-28 13:09:17 UTC (rev 2399)
+++ trunk/sources/editor/qetelementeditor.cpp	2013-07-28 14:42:24 UTC (rev 2400)
@@ -184,7 +184,7 @@
 	open_file         -> setShortcut(tr("Ctrl+Shift+O"));
 	save              -> setShortcut(QKeySequence::Save);
 	save_as_file      -> setShortcut(tr("Ctrl+Shift+S"));
-	reload            -> setShortcut(Qt::Key_F5);
+	//reload            -> setShortcut(Qt::Key_F5);
 	quit              -> setShortcut(QKeySequence(tr("Ctrl+Q")));
 	selectall         -> setShortcut(QKeySequence::SelectAll);
 	deselectall       -> setShortcut(QKeySequence(tr("Ctrl+Shift+A")));
@@ -313,7 +313,7 @@
 	main_toolbar -> addAction(open);
 	main_toolbar -> addAction(save);
 	main_toolbar -> addAction(save_as);
-	main_toolbar -> addAction(reload);
+	//main_toolbar -> addAction(reload);
 	main_toolbar -> addSeparator();
 	main_toolbar -> addAction(undo);
 	main_toolbar -> addAction(redo);
@@ -373,7 +373,7 @@
 	file_menu    -> addAction(save_as);
 	file_menu    -> addAction(save_as_file);
 	file_menu    -> addSeparator();
-	file_menu    -> addAction(reload);
+	//file_menu    -> addAction(reload);
 	file_menu    -> addSeparator();
 	file_menu    -> addAction(quit);
 	
@@ -953,6 +953,7 @@
 	}
 	
 	// recharge l'element
+	//TODO disable reload action because after action element is not editable next
 	if (opened_from_file) {
 		// l'element a ete ouvert a partir d'un chemin de fichier
 		ce_scene -> reset();


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