summaryrefslogtreecommitdiffstats
path: root/ksysv/SpinBox.h
blob: 147fc88c234e72c9d7fc3ae5c3008189003693dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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