소스 검색

Fix check indicator on ctkCheckablePushButton.

Under QCleanLooksStyle the check indicator was hided.
Benjamin Long 13 년 전
부모
커밋
4eb743f87c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Libs/Widgets/ctkCheckablePushButton.cpp

+ 1 - 1
Libs/Widgets/ctkCheckablePushButton.cpp

@@ -340,7 +340,7 @@ void ctkCheckablePushButton::paintEvent(QPaintEvent * _event)
   int indicatorSpacing = this->style()->pixelMetric(QStyle::PM_CheckBoxLabelSpacing, &opt, this);
   int buttonMargin = this->style()->pixelMetric(QStyle::PM_ButtonMargin, &opt, this);
   // Draw Indicator
-  QStyleOption indicatorOpt;
+  QStyleOptionButton indicatorOpt;
   indicatorOpt.init(this);
   if (!(d->CheckBoxFlags & Qt::ItemIsUserCheckable))
     {