Selaa lähdekoodia

Fix arrows on collapsible group box to match button

Arrow now points right when box is closed, and down
when box is open.
Steve Pieper 14 vuotta sitten
vanhempi
commit
ce90461cb3
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      Libs/Widgets/ctkCollapsibleGroupBox.cpp

+ 1 - 1
Libs/Widgets/ctkCollapsibleGroupBox.cpp

@@ -44,7 +44,7 @@ class ctkCollapsibleGroupBoxStyle:public QProxyStyle
       const QGroupBox* groupBox= qobject_cast<const QGroupBox*>(widget);
       if (groupBox)
         {
-        this->QProxyStyle::drawPrimitive(groupBox->isChecked() ? QStyle::PE_IndicatorArrowUp : QStyle::PE_IndicatorArrowDown, opt, p, widget);
+        this->QProxyStyle::drawPrimitive(groupBox->isChecked() ? QStyle::PE_IndicatorArrowDown : QStyle::PE_IndicatorArrowRight, opt, p, widget);
         return;
         }
       }