37 m_d->normalTemplate = normalTemplate;
38 m_d->mixedTemplate = mixedTemplate;
44 static const qreal
eps = 1e-3;
50 const qreal newValue =
value();
52 if (qAbs(commonValue - newValue) <
eps) {
56 if(!blockUpdateSignal) {
57 m_d->signalCompressor->start();
63 emit(valueChanged(
value()));
float value(const T *src, size_t ch)
connect(this, SIGNAL(optionsChanged()), this, SLOT(saveOptions()))
This class is a spinbox in which you can click and drag to set the value. A slider like bar is displa...
void setValue(qreal newValue)
void setPrivateValue(qreal newValue)
const QScopedPointer< Private > m_d
KisSelectionPropertySliderBase(QWidget *parent=0)
~KisSelectionPropertySliderBase() override
void slotCompressedUpdate()
virtual bool hasSelection() const =0
virtual qreal getCommonValue() const =0
void setTextTemplates(const QString &normalTemplate, const QString &mixedTemplate)
void setInternalValue(qreal value, bool blockUpdateSignal) override
void setSelectionValue(qreal commonValue, bool mixed)
KisShapePropertySlider(QWidget *parent=nullptr)
void setText(QSpinBox *spinBox, const QStringView textTemplate)
Private(KisSelectionPropertySliderBase *q)