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

make multibrush angle use a decimal instead of just integers

parent 4e8a29ee
...@@ -281,9 +281,10 @@ QWidget* KisToolMultihand::createOptionWidget() ...@@ -281,9 +281,10 @@ QWidget* KisToolMultihand::createOptionWidget()
customUI->axisRotationSpinbox->setSuffix(QChar(Qt::Key_degree)); // origin rotation 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)); 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) ...@@ -353,7 +354,7 @@ void KisToolMultihand::slotSetHandsCount(int count)
m_configGroup.writeEntry("handsCount", count); m_configGroup.writeEntry("handsCount", count);
} }
void KisToolMultihand::slotSetAxesAngle(int angle) void KisToolMultihand::slotSetAxesAngle(qreal angle)
{ {
//negative so axes rotates counter clockwise //negative so axes rotates counter clockwise
m_angle = -angle*M_PI/180; m_angle = -angle*M_PI/180;
......
...@@ -57,7 +57,7 @@ private Q_SLOTS: ...@@ -57,7 +57,7 @@ private Q_SLOTS:
void activateAxesPointModeSetup(); void activateAxesPointModeSetup();
void resetAxes(); void resetAxes();
void slotSetHandsCount(int count); void slotSetHandsCount(int count);
void slotSetAxesAngle(int angle); void slotSetAxesAngle(qreal angle);
void slotSetTransformMode(int qcomboboxIndex); void slotSetTransformMode(int qcomboboxIndex);
void slotSetAxesVisible(bool vis); void slotSetAxesVisible(bool vis);
void slotSetMirrorVertically(bool mirror); void slotSetMirrorVertically(bool mirror);
......
...@@ -123,7 +123,7 @@ ...@@ -123,7 +123,7 @@
</widget> </widget>
</item> </item>
<item row="2" column="1"> <item row="2" column="1">
<widget class="KisSliderSpinBox" name="axisRotationSpinbox" native="true"> <widget class="KisDoubleSliderSpinBox" name="axisRotationSpinbox" native="true">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed"> <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch> <horstretch>0</horstretch>
...@@ -252,6 +252,12 @@ ...@@ -252,6 +252,12 @@
<header>kis_slider_spin_box.h</header> <header>kis_slider_spin_box.h</header>
<container>1</container> <container>1</container>
</customwidget> </customwidget>
<customwidget>
<class>KisDoubleSliderSpinBox</class>
<extends>QWidget</extends>
<header>kis_slider_spin_box.h</header>
<container>1</container>
</customwidget>
</customwidgets> </customwidgets>
<resources/> <resources/>
<connections/> <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