Ask for confirmation (general setting) only after changing some of the settings
[mdictionary] / trunk / src / base / gui / SettingsWidget.h
index 3f56d10..a4cde9c 100644 (file)
@@ -52,6 +52,7 @@ public:
       */
     explicit SettingsWidget(GUIInterface *parent = 0);
 
+
 protected:
     void showEvent(QShowEvent *);
     void hideEvent(QHideEvent *);
@@ -68,15 +69,19 @@ private:
 
     GUIInterface* guiInterface;
     Settings* settings;
+    bool _changed;
     #ifndef Q_WS_MAEMO_5
         QPushButton* closeButton;
         QHBoxLayout* footerLayout;
         bool _save;
 
-        public Q_SLOTS:
+        private Q_SLOTS:
             void save();
     #endif
 
+private Q_SLOTS:
+    void changed();
+
 };
 
 #endif // SETTINGSWIDGET_H