QtGui/qspinbox.h Source File
Go to the documentation of this file.
55 class QSpinBoxPrivate;
65 Q_PROPERTY(
int singleStep READ singleStep WRITE setSingleStep)
73 const char *
name = 0);
79 void setPrefix(
const QString &prefix);
82 void setSuffix(
const QString &suffix);
86 int singleStep()
const;
87 void setSingleStep(
int val);
90 void setMinimum(
int min);
93 void setMaximum(
int max);
95 void setRange(
int min,
int max);
98 inline QT3_SUPPORT
void setLineStep(
int step) { setSingleStep(step); }
99 inline QT3_SUPPORT
void setMaxValue(
int val) { setMaximum(val); }
100 inline QT3_SUPPORT
void setMinValue(
int val) { setMinimum(val); }
101 inline QT3_SUPPORT
int maxValue()
const {
return maximum(); }
102 inline QT3_SUPPORT
int minValue()
const {
return minimum(); }
108 virtual int valueFromText(
const QString &text)
const;
109 virtual QString textFromValue(
int val)
const;
114 void setValue(
int val);
117 void valueChanged(
int);
118 void valueChanged(
const QString &);
125 class QDoubleSpinBoxPrivate;
136 Q_PROPERTY(
double singleStep READ singleStep WRITE setSingleStep)
141 double value() const;
144 void setPrefix(const
QString &prefix);
147 void setSuffix(const
QString &suffix);
151 double singleStep() const;
152 void setSingleStep(
double val);
154 double minimum() const;
155 void setMinimum(
double min);
157 double maximum() const;
158 void setMaximum(
double max);
160 void setRange(
double min,
double max);
162 int decimals() const;
163 void setDecimals(
int prec);
166 virtual
double valueFromText(const
QString &text) const;
167 virtual
QString textFromValue(
double val) const;
168 virtual
void fixup(
QString &str) const;
171 void setValue(
double val);
174 void valueChanged(
double);
175 void valueChanged(const
QString &);
182 #endif // QT_NO_SPINBOX
GLenum GLenum GLenum input
State
The state the media producing object is in at the moment.
virtual void fixup(QString &input) const
virtual QValidator::State validate(QString &input, int &pos) const
bool event(QEvent *event)
#define QT_BEGIN_NAMESPACE
GLsizei const GLfloat * value
GLuint const GLchar * name