Преглед изворни кода

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))
     {