소스 검색

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 14 년 전
부모
커밋
952d5dc9de
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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