Commit 55f89d2d authored by Scott Petrovic's avatar Scott Petrovic

add unit of measurement to brush size

parent 0d2123b5
......@@ -50,9 +50,11 @@ KisAutoBrushWidget::KisAutoBrushWidget(QWidget *parent, const char* name)
connect((QObject*)comboBoxShape, SIGNAL(activated(int)), this, SLOT(paramChanged()));
inputRadius->setRange(0.0, 1000.0, 2);
inputRadius->setRange(0, 1000, 0);
inputRadius->setExponentRatio(3.0);
inputRadius->setValue(5.0);
inputRadius->setSingleStep(1);
inputRadius->setValue(5);
inputRadius->setSuffix(" px");
connect(inputRadius, SIGNAL(valueChanged(qreal)), this, SLOT(spinBoxRadiusChanged(qreal)));
inputRatio->setRange(0.0, 1.0, 2);
......
......@@ -102,8 +102,12 @@ KisBrushChooser::KisBrushChooser(QWidget *parent, const char *name)
m_lbSize = new QLabel(i18n("Size:"), this);
m_slSize = new KisDoubleSliderSpinBox(this);
m_slSize->setRange(0.0, 1000.0, 2);
m_slSize->setValue(5.0);
m_slSize->setRange(0, 1000, 0);
m_slSize->setValue(5);
m_slSize->setExponentRatio(3.0);
m_slSize->setSuffix(" px");
m_slSize->setExponentRatio(3.0);
QObject::connect(m_slSize, SIGNAL(valueChanged(qreal)), this, SLOT(slotSetItemSize(qreal)));
......
......@@ -163,11 +163,12 @@ KisPaintopBox::KisPaintopBox(KisView2 *view, QWidget *parent, const char *name)
slFlow->setSingleStep(0.05);
slFlow->setMinimumWidth(120);
slSize->setRange(0.0, 1000.0, 2);
slSize->setValue(100.0);
slSize->setRange(0, 1000, 0);
slSize->setValue(100);
slSize->setSingleStep(1);
slSize->setExponentRatio(3.0);
slSize->setMinimumWidth(120);
slSize->setSuffix(" px");
m_sliderChooser[i]->chooseWidget(cfg.toolbarSlider(i + 1));
}
......
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