[qet] [1583] Fixed zoom fit when opening an element.

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


Revision: 1583
Author:   xavier
Date:     2012-03-17 23:36:58 +0100 (Sat, 17 Mar 2012)
Log Message:
-----------
Fixed zoom fit when opening an element.

Modified Paths:
--------------
    branches/0.3/sources/editor/qetelementeditor.cpp

Modified: branches/0.3/sources/editor/qetelementeditor.cpp
===================================================================
--- branches/0.3/sources/editor/qetelementeditor.cpp	2012-03-17 21:17:50 UTC (rev 1582)
+++ branches/0.3/sources/editor/qetelementeditor.cpp	2012-03-17 22:36:58 UTC (rev 1583)
@@ -1117,11 +1117,11 @@
 }
 
 /**
-	
+	Executed the first time the window editor is displayed.
 */
 void QETElementEditor::firstActivation(QEvent *event) {
 	Q_UNUSED(event)
-	if (ce_view) ce_view -> zoomFit();
+	QTimer::singleShot(250, ce_view, SLOT(zoomFit()));
 }
 
 /**


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