diff options
Diffstat (limited to 'ksysv/SpinBox.h')
-rw-r--r-- | ksysv/SpinBox.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/ksysv/SpinBox.h b/ksysv/SpinBox.h new file mode 100644 index 0000000..147fc88 --- /dev/null +++ b/ksysv/SpinBox.h @@ -0,0 +1,32 @@ +// (c) 2000 Peter Putzer + +#ifndef KSV_SPINBOX_H +#define KSV_SPINBOX_H + +#include <qspinbox.h> + +#include <kcompletion.h> + +class KSVSpinBox : public QSpinBox, public KCompletionBase +{ + Q_OBJECT + +public: + KSVSpinBox (QWidget* parent, const char* name = 0L); + virtual ~KSVSpinBox (); + + virtual bool eventFilter (QObject*, QEvent*); + virtual void setCompletedText (const QString&); + virtual void setCompletedItems (const QStringList&); + +protected: + virtual QString mapValueToText (int value); + +private slots: + void handleMatch (const QString&); + +private: + bool mClearedSelection; +}; + +#endif // KSV_SPINBOX_H |