diff options
Diffstat (limited to 'tools')
-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: |