22 , m_xValueSuffix(m_rangeModel->xValueSuffix())
23 , m_yValueSuffix(m_rangeModel->yValueSuffix())
29 yLimitSlider->setPrefix(i18n(
"Y limit: "));
31 m_yValueSuffix.bind(std::bind(&KisDoubleSliderSpinBox::setSuffix, yLimitSlider, std::placeholders::_1));
35 xMin->setPrefix(i18n(
"X min: "));
36 m_xValueSuffix.bind(std::bind(&KisDoubleSliderSpinBox::setSuffix, xMin, std::placeholders::_1));
37 connectControlState(xMin,
m_rangeModel,
"xMinState",
"xMin");
40 xMax->setPrefix(i18n(
"X max: "));
41 m_xValueSuffix.bind(std::bind(&KisDoubleSliderSpinBox::setSuffix, xMax, std::placeholders::_1));
42 connectControlState(xMax,
m_rangeModel,
"xMaxState",
"xMax");
44 QHBoxLayout *xRangeLayout =
new QHBoxLayout();
45 xRangeLayout->addWidget(xMin);
46 xRangeLayout->addWidget(xMax);
48 QVBoxLayout *layout =
new QVBoxLayout(rangeControlsPlaceholder);
49 layout->addWidget(yLimitSlider);
50 layout->addLayout(xRangeLayout);
void setRange(qreal newMinimum, qreal newMaximum, int newNumberOfDecimals=0, bool computeNewFastSliderStep=true)
Set the minimum and the maximum values of the range.