Fixed zoom fit when opening an element.

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@1583 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
xavier
2012-03-17 22:36:58 +00:00
parent cb37bc1d44
commit def111cb3f

View File

@@ -1117,11 +1117,11 @@ void QETElementEditor::closeEvent(QCloseEvent *qce) {
} }
/** /**
Executed the first time the window editor is displayed.
*/ */
void QETElementEditor::firstActivation(QEvent *event) { void QETElementEditor::firstActivation(QEvent *event) {
Q_UNUSED(event) Q_UNUSED(event)
if (ce_view) ce_view -> zoomFit(); QTimer::singleShot(250, ce_view, SLOT(zoomFit()));
} }
/** /**