diff options
Diffstat (limited to 'tools/easingcurveeditor/mainwindow.cpp')
-rw-r--r-- | tools/easingcurveeditor/mainwindow.cpp | 6 |
1 files changed, 6 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(); +} |