소스 검색

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.