summaryrefslogtreecommitdiffstats
path: root/ksysv/SpinBox.h
blob: 00369d3b0fc456ca7622b5edc63363e565d66225 (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
33
// (c) 2000 Peter Putzer

#ifndef KSV_SPINBOX_H
#define KSV_SPINBOX_H

#include <tqspinbox.h>

#include <kcompletion.h>

class KSVSpinBox : public TQSpinBox, public TDECompletionBase
{
  Q_OBJECT
  

public:
  KSVSpinBox (TQWidget* parent, const char* name = 0L);
  virtual ~KSVSpinBox ();
  
  virtual bool eventFilter (TQObject*, TQEvent*);
  virtual void setCompletedText (const TQString&);
  virtual void setCompletedItems (const TQStringList&);

protected:
  virtual TQString mapValueToText (int value);

private slots:
  void handleMatch (const TQString&);

private:
  bool mClearedSelection;
};

#endif // KSV_SPINBOX_H