summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-01-05 12:55:11 +0100
committerStanislaw Halik <sthalik@misaki.pl>2014-01-05 12:55:11 +0100
commitbbe8552db3fb0d7ab2c3a26b058c059e5df21eeb (patch)
tree2a93655c493cf0a7b7486ad7534fc3ba6068d29e
parent359fec379f1618766d7f39be12f3b48b0d771c69 (diff)
decruft
-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;