Explorar o código

ctkSettings - resetSettings() and restoreDefaultSettings() are now virtual

Having these methods virtual will ease the implementation of
specific behavior.
Jean-Christophe Fillion-Robin %!s(int64=14) %!d(string=hai) anos
pai
achega
8c4bcabd6c
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      Libs/Widgets/ctkSettingsPanel.h

+ 2 - 2
Libs/Widgets/ctkSettingsPanel.h

@@ -75,11 +75,11 @@ public slots:
 
   /// Restore all the properties with their values when applySettings() was
   /// called last (or their original values if applySettings was never called).
-  void resetSettings();
+  virtual void resetSettings();
 
   /// Restore all the properties with their original values; the current values
   /// of the properties when they were registered using registerProperty().
-  void restoreDefaultSettings();
+  virtual void restoreDefaultSettings();
 
 signals:
   /// Fired anytime a property is modified.