summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir
diff options
context:
space:
mode:
Diffstat (limited to 'facetracknoir')
-rw-r--r--facetracknoir/curve-config.cpp22
-rw-r--r--facetracknoir/curve-config.h4
2 files changed, 2 insertions, 24 deletions
diff --git a/facetracknoir/curve-config.cpp b/facetracknoir/curve-config.cpp
index d730e4f7..b01c2013 100644
--- a/facetracknoir/curve-config.cpp
+++ b/facetracknoir/curve-config.cpp
@@ -43,29 +43,11 @@ CurveConfigurationDialog::CurveConfigurationDialog(FaceTrackNoIR *ftnoir, QWidge
loadSettings();
}
-//
-// Destructor for server-dialog
-//
-CurveConfigurationDialog::~CurveConfigurationDialog() {
- qDebug() << "~CurveConfigurationDialog() says: started";
-}
-
-//
-// OK clicked on server-dialog
-//
void CurveConfigurationDialog::doOK() {
save();
this->close();
}
-// override show event
-void CurveConfigurationDialog::showEvent ( QShowEvent * ) {
- loadSettings();
-}
-
-//
-// Cancel clicked on server-dialog
-//
void CurveConfigurationDialog::doCancel() {
//
// Ask if changed Settings should be saved
@@ -73,9 +55,7 @@ void CurveConfigurationDialog::doCancel() {
if (settingsDirty || mainApp->s.b->modifiedp()) {
int ret = QMessageBox::question ( this, "Settings have changed", "Do you want to save the settings?", QMessageBox::Save | QMessageBox::Discard | QMessageBox::Cancel, QMessageBox::Discard );
- qDebug() << "doCancel says: answer =" << ret;
-
- switch (ret) {
+ switch (ret) {
case QMessageBox::Save:
save();
this->close();
diff --git a/facetracknoir/curve-config.h b/facetracknoir/curve-config.h
index d2acf371..950f6d14 100644
--- a/facetracknoir/curve-config.h
+++ b/facetracknoir/curve-config.h
@@ -9,9 +9,7 @@ class CurveConfigurationDialog: public QWidget
{
Q_OBJECT
public:
- explicit CurveConfigurationDialog( FaceTrackNoIR *ftnoir, QWidget *parent );
- virtual ~CurveConfigurationDialog();
- void showEvent ( QShowEvent * event );
+ CurveConfigurationDialog( FaceTrackNoIR *ftnoir, QWidget *parent );
void loadSettings();
private:
Ui::UICCurveConfigurationDialog ui;