Переглянути джерело

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

Having these methods virtual will ease the implementation of
specific behavior.
Jean-Christophe Fillion-Robin 14 роки тому
батько
коміт
8c4bcabd6c
1 змінених файлів з 2 додано та 2 видалено
  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.