42 #ifndef QABSTRACTSPINBOX_P_H 43 #define QABSTRACTSPINBOX_P_H 56 #include "QtGui/qabstractspinbox.h" 60 #include "QtGui/qlineedit.h" 61 #include "QtGui/qstyleoption.h" 62 #include "QtGui/qvalidator.h" 63 #include "QtCore/qdatetime.h" 64 #include "QtCore/qvariant.h" 65 #include "private/qwidget_p.h" 66 #include "private/qdatetime_p.h" 101 void updateState(
bool up,
bool fromKeyboard =
false);
168 #endif // QT_NO_SPINBOX 170 #endif // QABSTRACTSPINBOX_P_H The QVariant class acts like a union for the most common Qt data types.
uint ignoreCursorPositionChanged
virtual QString textFromValue(const QVariant &n) const
Virtual method called that calls the public textFromValue() functions in the subclasses.
virtual QStyle::SubControl newHoverControl(const QPoint &pos)
Returns the hover control at pos.
SubControl
This enum describes the available sub controls.
#define QT_END_NAMESPACE
This macro expands to.
bool updateHoverControl(const QPoint &pos)
Updates the old and new hover control.
void init()
Initialises the QAbstractSpinBoxPrivate object.
static int variantCompare(const QVariant &arg1, const QVariant &arg2)
virtual QVariant valueFromText(const QString &input) const
Virtual method called that calls the public valueFromText() functions in the subclasses.
virtual void updateEditFieldGeometry()
int spinClickThresholdTimerId
The QString class provides a Unicode character string.
ButtonSymbols
This enum type describes the symbols that can be displayed on the buttons in a spin box...
const QByteArray operator+(const QByteArray &a1, const QByteArray &a2)
Returns a byte array that is the result of concatenating byte array a1 and byte array a2...
static QVariant variantBound(const QVariant &min, const QVariant &value, const QVariant &max)
void reset()
Resets the state of the spinbox.
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QValidator class provides validation of input text.
CorrectionMode
This enum type describes the mode the spinbox will use to correct an QValidator::Intermediate value i...
virtual void interpret(EmitPolicy ep)
Interprets text and emits signals.
QStyle::SubControl hoverControl
int effectiveSpinRepeatRate
QValidator::State cachedState
void _q_editorTextChanged(const QString &)
Slot connected to the line edit's textChanged(const QString &) signal.
QAbstractSpinBox::ButtonSymbols buttonSymbols
int spinClickThresholdTimerInterval
void updateState(bool up, bool fromKeyboard=false)
Updates the state of the spinbox.
Type
This enum type defines the types of variable that a QVariant can contain.
The QAbstractSpinBox class provides a spinbox and a line edit to display values.
QString stripped(const QString &text, int *pos=0) const
Strips any prefix/suffix from text.
virtual void setRange(const QVariant &min, const QVariant &max)
Convenience function to set min/max values.
QAbstractSpinBoxPrivate()
QSpinBoxValidator * validator
virtual void updateEdit()
Updates the line edit to reflect the current value of the spin box.
virtual void emitSignals(EmitPolicy ep, const QVariant &old)
#define Q_DECLARE_PUBLIC(Class)
virtual QVariant bound(const QVariant &val, const QVariant &old=QVariant(), int steps=0) const
Bounds val to be within minimum and maximum.
virtual void _q_editorCursorPositionChanged(int oldpos, int newpos)
Virtual slot connected to the line edit's cursorPositionChanged(int, int) signal. ...
int spinClickTimerInterval
QAbstractSpinBox::CorrectionMode correctionMode
virtual void clearCache() const
The QPoint class defines a point in the plane using integer precision.
State
This enum type defines the states in which a validated string can exist.
QGenericMatrix< N, M, T > operator/(const QGenericMatrix< N, M, T > &matrix, T divisor)
Returns the result of dividing all elements of matrix by divisor.
The QRect class defines a rectangle in the plane using integer precision.
void setValue(const QVariant &val, EmitPolicy ep, bool updateEdit=true)
Sets the value of the spin box to val.
The QLineEdit widget is a one-line text editor.
The QSize class defines the size of a two-dimensional object using integer point precision.
QGenericMatrix< M1, M2, T > operator*(const QGenericMatrix< N, M2, T > &m1, const QGenericMatrix< M1, N, T > &m2)
virtual QVariant getZeroVariant() const
Convenience function to get a variant of the right type.
~QAbstractSpinBoxPrivate()
bool specialValue() const
Returns true if a specialValueText has been set and the current value is minimum. ...
QSize cachedMinimumSizeHint
QAbstractSpinBoxPrivate * dptr
QGenericMatrix< N, M, T > operator-(const QGenericMatrix< N, M, T > &m1, const QGenericMatrix< N, M, T > &m2)
Returns the difference of m1 and m2.