Преглед на файлове

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