Explorar o código

Change arrows to point right when closed, down when open

The collapsible button arrows are now more conventional in their
indication of the open/closed state of the box.
Steve Pieper %!s(int64=14) %!d(string=hai) anos
pai
achega
952d5dc9de
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      Libs/Widgets/ctkCollapsibleButton.cpp

+ 2 - 2
Libs/Widgets/ctkCollapsibleButton.cpp

@@ -565,11 +565,11 @@ void ctkCollapsibleButton::paintEvent(QPaintEvent * _event)
     }
   if (d->Collapsed)
     {
-    style()->drawPrimitive(QStyle::PE_IndicatorArrowDown, &indicatorOpt, &p, this);
+    style()->drawPrimitive(QStyle::PE_IndicatorArrowRight, &indicatorOpt, &p, this);
     }
   else
     {
-    style()->drawPrimitive(QStyle::PE_IndicatorArrowUp, &indicatorOpt, &p, this);
+    style()->drawPrimitive(QStyle::PE_IndicatorArrowDown, &indicatorOpt, &p, this);
     }
 
   // Draw Text