Changeset View
Changeset View
Standalone View
Standalone View
plugins/paintops/libpaintop/kis_spacing_selection_widget.cpp
Context not available. | |||||
52 | m_d(new Private(this)) | 52 | m_d(new Private(this)) | ||
---|---|---|---|---|---|
53 | { | 53 | { | ||
54 | m_d->slider = new KisDoubleSliderSpinBox(this); | 54 | m_d->slider = new KisDoubleSliderSpinBox(this); | ||
55 | m_d->slider->setPrefix(i18n("Spacing: ")); | ||||
55 | m_d->slider->setRange(0.02, 10.0, 2); | 56 | m_d->slider->setRange(0.02, 10.0, 2); | ||
56 | m_d->slider->setExponentRatio(3); | 57 | m_d->slider->setExponentRatio(3); | ||
57 | m_d->slider->setSingleStep(0.01); | 58 | m_d->slider->setSingleStep(0.01); | ||
Context not available. | |||||
66 | m_d->autoButton->setSizePolicy(QSizePolicy(QSizePolicy::Minimum, QSizePolicy::Fixed)); | 67 | m_d->autoButton->setSizePolicy(QSizePolicy(QSizePolicy::Minimum, QSizePolicy::Fixed)); | ||
67 | 68 | | |||
68 | QHBoxLayout *layout = new QHBoxLayout(this); | 69 | QHBoxLayout *layout = new QHBoxLayout(this); | ||
69 | layout->addWidget(m_d->autoButton); | | |||
70 | layout->addWidget(m_d->slider); | 70 | layout->addWidget(m_d->slider); | ||
71 | layout->addWidget(m_d->autoButton); | ||||
71 | layout->setMargin(0); | 72 | layout->setMargin(0); | ||
72 | 73 | | |||
73 | connect(m_d->slider, SIGNAL(valueChanged(qreal)), SLOT(slotSpacingChanged(qreal))); | 74 | connect(m_d->slider, SIGNAL(valueChanged(qreal)), SLOT(slotSpacingChanged(qreal))); | ||
Context not available. |