Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 0e0e4f9a authored by Scott Petrovic's avatar Scott Petrovic

make multibrush angle use a decimal instead of just integers

parent 4e8a29ee
......@@ -281,9 +281,10 @@ QWidget* KisToolMultihand::createOptionWidget()
customUI->axisRotationSpinbox->setSuffix(QChar(Qt::Key_degree)); // origin rotation
customUI->axisRotationSpinbox->setRange(0.0, 90.0);
customUI->axisRotationSpinbox->setSingleStep(0.5);
customUI->axisRotationSpinbox->setRange(0.0, 90.0, 1);
customUI->axisRotationSpinbox->setValue(m_configGroup.readEntry("axesAngle", 0.0));
connect( customUI->axisRotationSpinbox, SIGNAL(valueChanged(int)),this, SLOT(slotSetAxesAngle(int)));
connect( customUI->axisRotationSpinbox, SIGNAL(valueChanged(qreal)),this, SLOT(slotSetAxesAngle(qreal)));
......@@ -353,7 +354,7 @@ void KisToolMultihand::slotSetHandsCount(int count)
m_configGroup.writeEntry("handsCount", count);
}
void KisToolMultihand::slotSetAxesAngle(int angle)
void KisToolMultihand::slotSetAxesAngle(qreal angle)
{
//negative so axes rotates counter clockwise
m_angle = -angle*M_PI/180;
......
......@@ -57,7 +57,7 @@ private Q_SLOTS:
void activateAxesPointModeSetup();
void resetAxes();
void slotSetHandsCount(int count);
void slotSetAxesAngle(int angle);
void slotSetAxesAngle(qreal angle);
void slotSetTransformMode(int qcomboboxIndex);
void slotSetAxesVisible(bool vis);
void slotSetMirrorVertically(bool mirror);
......
......@@ -123,7 +123,7 @@
</widget>
</item>
<item row="2" column="1">
<widget class="KisSliderSpinBox" name="axisRotationSpinbox" native="true">
<widget class="KisDoubleSliderSpinBox" name="axisRotationSpinbox" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
......@@ -252,6 +252,12 @@
<header>kis_slider_spin_box.h</header>
<container>1</container>
</customwidget>
<customwidget>
<class>KisDoubleSliderSpinBox</class>
<extends>QWidget</extends>
<header>kis_slider_spin_box.h</header>
<container>1</container>
</customwidget>
</customwidgets>
<resources/>
<connections/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment