70{
71 const QString prefix = QString(
"%1: ").arg(
property->name());
72 QVBoxLayout *
layout =
new QVBoxLayout(
this);
73
77
80
85 slider->
setRange(
static_cast<qreal
>(sliderProperty->
min()),
static_cast<qreal
>(sliderProperty->
max()));
87
88 slider->
setAngle(
static_cast<qreal
>(sliderProperty->
value().toInt()));
90
92 } else {
96 slider->setSingleStep(sliderProperty->
singleStep());
98 slider->setPrefix(prefix);
99 slider->setSuffix(sliderProperty->
suffix());
101
104
106 }
107
109}
connect(this, SIGNAL(optionsChanged()), this, SLOT(saveOptions()))
A widget with several options to select an angle.
@ FlipOptionsMode_MenuButton
The flip options are shown as a menu accessible via a options button.
void setPrefix(const QString &newPrefix)
Sets the prefix shown in the spin box.
void setFlipOptionsMode(FlipOptionsMode newMode)
Sets the mode in which the flip options should be shown.
void setAngle(qreal newAngle)
Sets the current angle.
void setRange(qreal newMinimum, qreal newMaximum)
Sets the minimum and maximum values for the angle.
void setDecimals(int newNumberOfDecimals)
Sets the number of decimals (precision) used by the angle.
void angleChanged(qreal angle)
qreal exponentRatio() const
This class is a spinbox in which you can click and drag to set the value. A slider like bar is displa...
void setBlockUpdateSignalOnDrag(bool newBlockUpdateSignalOnDrag)
Set if the spinbox should not Q_EMIT signals when dragging the slider.
void setExponentRatio(qreal newExponentRatio)
Set the exponent used by a power function to modify the values as a function of the horizontal positi...
void setValue(int newValue)
void setRange(int newMinimum, int newMaximum, bool computeNewFastSliderStep=true)
Set the minimum and the maximum values of the range, computing a new "fast slider step" based on the ...
void setPageStep(int newPageStep)
Does nothing currently.
#define KIS_ASSERT_RECOVER_RETURN(cond)