4#ifndef QABSTRACTSPINBOX_P_H
5#define QABSTRACTSPINBOX_P_H
18#include <QtWidgets/private/qtwidgetsglobal_p.h>
19#include "QtWidgets/qabstractspinbox.h"
21#include "QtWidgets/qlineedit.h"
22#include "QtWidgets/qstyleoption.h"
23#include "QtGui/qvalidator.h"
24#include "QtCore/qbasictimer.h"
25#include "QtCore/qdatetime.h"
26#include "QtCore/qvariant.h"
27#include "private/qwidget_p.h"
33QVariant operator+(
const QVariant &arg1,
const QVariant &arg2);
36double operator/(
const QVariant &arg1,
const QVariant &arg2);
57 Q_DECLARE_PUBLIC(QAbstractSpinBox)
64 void updateState(
bool up,
bool fromKeyboard =
false);
68 virtual void setRange(
const QVariant &min,
const QVariant &max);
70 virtual QVariant bound(
const QVariant &val,
const QVariant &old = QVariant(),
int steps = 0)
const;
87 static int variantCompare(
const QVariant &arg1,
const QVariant &arg2);
135 void fixup(QString &)
const override;
137 QAbstractSpinBox *qptr;
virtual QVariant valueFromText(const QString &input) const
virtual void emitSignals(EmitPolicy ep, const QVariant &old)
virtual QStyle::SubControl newHoverControl(const QPoint &pos)
static QVariant variantBound(const QVariant &min, const QVariant &value, const QVariant &max)
int spinClickTimerInterval
virtual QVariant getZeroVariant() const
virtual void editorCursorPositionChanged(int oldpos, int newpos)
virtual void setRange(const QVariant &min, const QVariant &max)
QSpinBoxValidator * validator
bool specialValue() const
static int variantCompare(const QVariant &arg1, const QVariant &arg2)
QString stripped(const QString &text, int *pos=nullptr) const
Qt::KeyboardModifier stepModifier
virtual void updateEdit()
uint ignoreCursorPositionChanged
Qt::KeyboardModifiers keyboardModifiers
void editorTextChanged(const QString &)
virtual void interpret(EmitPolicy ep)
QStyle::SubControl hoverControl
virtual void updateEditFieldGeometry()
QSize cachedMinimumSizeHint
virtual QString textFromValue(const QVariant &n) const
void updateState(bool up, bool fromKeyboard=false)
virtual QVariant bound(const QVariant &val, const QVariant &old=QVariant(), int steps=0) const
virtual void clearCache() const
QValidator::State cachedState
void setValue(const QVariant &val, EmitPolicy ep, bool updateEdit=true)
bool updateHoverControl(const QPoint &pos)
QBasicTimer spinClickThresholdTimer
qreal effectiveSpinRepeatRate
QBasicTimer spinClickTimer
int spinClickThresholdTimerInterval
~QAbstractSpinBoxPrivate()
virtual QVariant calculateAdaptiveDecimalStep(int steps) const
void fixup(QString &) const override
QSpinBoxValidator(QAbstractSpinBox *qptr, QAbstractSpinBoxPrivate *dptr)
QValidator::State validate(QString &input, int &) const override
QT_REQUIRE_CONFIG(spinbox)
QDoubleMatrix4x4 operator*(const QDoubleMatrix4x4 &matrix, double factor)
constexpr QRect operator-(const QRect &lhs, const QMargins &rhs) noexcept