Changeset View
Changeset View
Standalone View
Standalone View
libs/ui/widgets/kis_multi_integer_filter_widget.cc
Show All 21 Lines | |||||
22 | #include <QTimer> | 22 | #include <QTimer> | ||
23 | #include <QSpinBox> | 23 | #include <QSpinBox> | ||
24 | #include <QGridLayout> | 24 | #include <QGridLayout> | ||
25 | 25 | | |||
26 | #include <filter/kis_filter_configuration.h> | 26 | #include <filter/kis_filter_configuration.h> | ||
27 | #include <klocalizedstring.h> | 27 | #include <klocalizedstring.h> | ||
28 | 28 | | |||
29 | KisDelayedActionIntegerInput::KisDelayedActionIntegerInput(QWidget * parent, const QString & name) | 29 | KisDelayedActionIntegerInput::KisDelayedActionIntegerInput(QWidget * parent, const QString & name) | ||
30 | : QSpinBox(parent) | 30 | : KisIntParseSpinBox(parent) | ||
31 | { | 31 | { | ||
32 | setObjectName(name); | 32 | setObjectName(name); | ||
33 | m_timer = new QTimer(this); | 33 | m_timer = new QTimer(this); | ||
34 | m_timer->setObjectName(name); | 34 | m_timer->setObjectName(name); | ||
35 | m_timer->setSingleShot(true); | 35 | m_timer->setSingleShot(true); | ||
36 | connect(m_timer, SIGNAL(timeout()), SLOT(slotValueChanged())); | 36 | connect(m_timer, SIGNAL(timeout()), SLOT(slotValueChanged())); | ||
37 | connect(this, SIGNAL(valueChanged(int)), SLOT(slotTimeToUpdate())); | 37 | connect(this, SIGNAL(valueChanged(int)), SLOT(slotTimeToUpdate())); | ||
38 | } | 38 | } | ||
▲ Show 20 Lines • Show All 117 Lines • Show Last 20 Lines |