Selaa lähdekoodia

STYLE: Add comment to ctkCollapsibleButton

Julien Finet 15 vuotta sitten
vanhempi
commit
e725d28d4e
1 muutettua tiedostoa jossa 5 lisäystä ja 0 poistoa
  1. 5 0
      Libs/Widgets/ctkCollapsibleButton.h

+ 5 - 0
Libs/Widgets/ctkCollapsibleButton.h

@@ -34,6 +34,11 @@ class QStyleOptionButton;
 
 /// Description
 /// A Collapsible widget that show/hide its children depending on its checked/collapsed properties
+/// Warning: As ctkCollapsibleButton forces the Visiblity of its children to
+/// true when it get expanded, any Visibility property is lost. All the widgets
+/// will be visible. To avoid this behavior, use an intermediate widget that
+/// contains all the children (they would become grandchildren and their
+/// will remain relative to their parent: ctkCollapsibleButton's unique child.
 class CTK_WIDGETS_EXPORT ctkCollapsibleButton : public QAbstractButton
 {
   Q_OBJECT