File tree Expand file tree Collapse file tree
plugins/robots/common/twoDModel/src/engine/view/parts Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ QWidget *ColorItemPopup::initSpinBox()
147147 spinBox->setPalette (spinBoxPalette);
148148 connect (spinBox, &PopupMetricWidget::valueChanged, this , [=](qreal value) {
149149 setPropertyMassively (" thickness" , value);
150- if (qAbs (mLastThickness - value) >= epsilon ) {
150+ if (qAbs (mLastThickness - value) > epsilon103 ) {
151151 mLastThickness = value;
152152 Q_EMIT userPenChanged (pen ());
153153 }
@@ -174,6 +174,6 @@ void ColorItemPopup::setBrushPickerColor(const QColor &color)
174174QPen ColorItemPopup::pen () const
175175{
176176 QPen pen (mLastColor );
177- pen.setWidth (mLastThickness );
177+ pen.setWidthF (mLastThickness );
178178 return pen;
179179}
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ private Q_SLOTS:
7676 PopupMetricWidget *mSpinBox {}; // Takes ownership
7777 QColor mLastColor ;
7878 bool mLastFilled {};
79- int mLastThickness { -1 };
79+ qreal mLastThickness { -1 };
8080};
8181
8282}
You can’t perform that action at this time.
0 commit comments