1 /***************************************************************************
3 display special spinbox
5 -----------------------------------------------------------------------
7 begin : Sat Oct 21 18:02:16 1999
9 copyright : (C) 1999-2001 Ewald Arnold <kvoctrain@ewald-arnold.de>
10 (C) 2001 The KDE-EDU team
11 (C) 2005 Peter Hedlund <peter@peterandlinda.com>
13 -----------------------------------------------------------------------
15 ***************************************************************************/
17 /***************************************************************************
19 * This program is free software; you can redistribute it and/or modify *
20 * it under the terms of the GNU General Public License as published by *
21 * the Free Software Foundation; either version 2 of the License, or *
22 * (at your option) any later version. *
24 ***************************************************************************/
26 #ifndef MySpinbox_included
27 #define MySpinbox_included
33 class MySpinBox
: public QSpinBox
36 MySpinBox (QWidget
* parent
= 0, const char* name
= 0);
38 void setSpecial(const QString
&str
);
39 void setData (QStringList
*names
, int minValue
, int maxValue
);
40 virtual QString
mapValueToText( int value
);
41 virtual int mapTextToValue( bool* ok
);
44 QStringList
*spin_names
;
48 #endif // MySpinbox_included