You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
613 B
33 lines
613 B
15 years ago
|
// (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
|