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

ctkPopupWidget::setAutoHide is now a slot

It can be conveniently connected with a button toggled signal.
Julien Finet 14 роки тому
батько
коміт
c47a3bfe2e
1 змінених файлів з 7 додано та 1 видалено
  1. 7 1
      Libs/Widgets/ctkPopupWidget.h

+ 7 - 1
Libs/Widgets/ctkPopupWidget.h

@@ -87,7 +87,6 @@ public:
   void setAutoShow(bool);
 
   bool autoHide()const;
-  void setAutoHide(bool);
   
   enum AnimationEffect
   {
@@ -129,6 +128,13 @@ public slots:
   /// Show/hide the popup. It can be conveniently linked to a QPushButton
   /// signal.
   inline void showPopup(bool show);
+  
+  /// Don't automatically close the popup when leaving the widget.
+  /// It's a slot so you can easily connect a checkable PushPin button checked
+  /// signal with it.
+  /// Calling setAutoHide automatically updates the state (open/closed)
+  /// of the popup.
+  void setAutoHide(bool autoHide);
 
 protected slots:
   void updatePopup();