#include <rnuminput.h>
Definition at line 54 of file rnuminput.cpp.
◆ RIntNumInput()
| KDcrawIface::RIntNumInput::RIntNumInput |
( |
QWidget *const | parent = 0 | ) |
|
Definition at line 73 of file rnuminput.cpp.
74 : QWidget(parent),
76{
77 QHBoxLayout* const hlay = new QHBoxLayout(this);
78 d->input =
new RSliderSpinBox(
this);
79 d->resetButton =
new QToolButton(
this);
80 d->resetButton->setAutoRaise(
true);
81 d->resetButton->setFocusPolicy(Qt::NoFocus);
83 d->resetButton->setToolTip(i18nc(
"@info:tooltip",
"Reset to default value"));
84
85 hlay->addWidget(
d->input);
86 hlay->addWidget(
d->resetButton);
87 hlay->setContentsMargins(QMargins());
88 hlay->setStretchFactor(
d->input, 10);
89 hlay->setSpacing(QApplication::style()->pixelMetric(QStyle::PM_LayoutHorizontalSpacing));
90
91
92
93 connect(
d->resetButton, &QToolButton::clicked,
95
98}
connect(this, SIGNAL(optionsChanged()), this, SLOT(saveOptions()))
void valueChanged(int value)
QIcon loadIcon(const QString &name)
References connect(), d, KisIconUtils::loadIcon(), slotReset(), slotValueChanged(), and KDcrawIface::RSliderSpinBox::valueChanged().
◆ ~RIntNumInput()
| KDcrawIface::RIntNumInput::~RIntNumInput |
( |
| ) |
|
|
override |
◆ defaultValue()
| int KDcrawIface::RIntNumInput::defaultValue |
( |
| ) |
const |
◆ Private()
| KDcrawIface::RIntNumInput::Private |
( |
| ) |
|
|
inline |
◆ reset
| void KDcrawIface::RIntNumInput::reset |
( |
| ) |
|
|
signal |
◆ setDefaultValue()
| void KDcrawIface::RIntNumInput::setDefaultValue |
( |
int | d | ) |
|
◆ setRange()
| void KDcrawIface::RIntNumInput::setRange |
( |
int | min, |
|
|
int | max, |
|
|
int | step ) |
Definition at line 105 of file rnuminput.cpp.
106{
107 d->input->setRange(min, max);
108 d->input->setSingleStep(step);
109}
References d.
◆ setSuffix()
| void KDcrawIface::RIntNumInput::setSuffix |
( |
const QString & | suffix | ) |
|
Definition at line 133 of file rnuminput.cpp.
134{
135 d->input->setSuffix(suffix);
136}
References d.
◆ setValue
| void KDcrawIface::RIntNumInput::setValue |
( |
int | d | ) |
|
|
slot |
Definition at line 116 of file rnuminput.cpp.
117{
118 d->input->setValue(
v);
119}
References d, and v.
◆ slotReset
| void KDcrawIface::RIntNumInput::slotReset |
( |
| ) |
|
|
slot |
Definition at line 138 of file rnuminput.cpp.
139{
140 d->input->setValue(
d->defaultValue);
141 d->resetButton->setEnabled(
false);
143}
References d, and reset().
◆ slotValueChanged
| void KDcrawIface::RIntNumInput::slotValueChanged |
( |
int | v | ) |
|
|
privateslot |
◆ value()
| int KDcrawIface::RIntNumInput::value |
( |
| ) |
const |
Definition at line 111 of file rnuminput.cpp.
112{
113 return d->input->value();
114}
References d.
◆ valueChanged
| void KDcrawIface::RIntNumInput::valueChanged |
( |
int | | ) |
|
|
signal |
| Private* const KDcrawIface::RIntNumInput::d |
|
private |
◆ defaultValue
| int KDcrawIface::RIntNumInput::defaultValue |
◆ input
◆ resetButton
| QToolButton* KDcrawIface::RIntNumInput::resetButton |
The documentation for this class was generated from the following files: