diff options
author | Thomas Hartmann <Thomas.Hartmann@nokia.com> | 2012-08-17 11:21:43 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-08-17 11:26:56 +0200 |
commit | 2c235ea44bb3faf34592e6fe8871cb4370b88972 (patch) | |
tree | e7673e1e646c12f44410c3785d902c68364c7577 | |
parent | 13ae2db97e6d7714fecffc4d65bb785a734fcd35 (diff) |
Fixing easing curve editor
Explicitly close the Qt Quick window.
Change-Id: I9f3ed6155577b6d066ab00c407ce99f31b1263aa
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
-rw-r--r-- | tools/easingcurveeditor/mainwindow.cpp | 6 | ||||
-rw-r--r-- | tools/easingcurveeditor/mainwindow.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/tools/easingcurveeditor/mainwindow.cpp b/tools/easingcurveeditor/mainwindow.cpp index 3bd5b3e88f..903c56cab0 100644 --- a/tools/easingcurveeditor/mainwindow.cpp +++ b/tools/easingcurveeditor/mainwindow.cpp @@ -98,6 +98,7 @@ MainWindow::MainWindow(QWidget *parent) : groupBoxLayout->addWidget(splineEditor->pointListWidget()); m_splineEditor = splineEditor; connect(ui_properties.plainTextEdit, SIGNAL(textChanged()), this, SLOT(textEditTextChanged())); + connect(this, SIGNAL(close()), this, SLOT(doClose())); initQml(); } @@ -134,3 +135,8 @@ void MainWindow::initQml() quickView.setSource(QUrl("qrc:/preview.qml")); quickView.show(); } + +void MainWindow::closeEvent(QCloseEvent *) +{ + quickView.close(); +} diff --git a/tools/easingcurveeditor/mainwindow.h b/tools/easingcurveeditor/mainwindow.h index 44591d33cc..406000973c 100644 --- a/tools/easingcurveeditor/mainwindow.h +++ b/tools/easingcurveeditor/mainwindow.h @@ -64,6 +64,7 @@ public slots: protected: virtual void moveEvent(QMoveEvent *event); virtual void resizeEvent(QResizeEvent *event); + virtual void closeEvent(QCloseEvent *event); void initQml(); private: |