40 #include <QtCore/qmath.h>
49 if (actionIface->actionNames().contains(actionName)) {
50 actionIface->doAction(actionName);
61 actions = actionIface->actionNames();
76 if (performAction(iface, actionName))
95 stepSize = (max - min) / 10;
96 const int typ = currentVariant.
userType();
99 stepSize =
qCeil(stepSize);
102 const double current = currentVariant.
toDouble(&success);
106 stepSize = -stepSize;
The QAccessibleActionInterface class implements support for invocable actions in the interface.
static const QString & decreaseAction()
static const QString & increaseAction()
The QAccessibleInterface class defines an interface that exposes information about accessible objects...
QAccessibleValueInterface * valueInterface()
QAccessibleActionInterface * actionInterface()
The QAccessibleValueInterface class implements support for objects that manipulate a value.
virtual QVariant minimumStepSize() const =0
virtual QVariant minimumValue() const =0
virtual void setCurrentValue(const QVariant &value)=0
virtual QVariant maximumValue() const =0
virtual QVariant currentValue() const =0
The QString class provides a Unicode character string.
The QStringList class provides a list of strings.
The QVariant class acts like a union for the most common Qt data types.
double toDouble(bool *ok=nullptr) const
QStringList effectiveActionNames(QAccessibleInterface *iface)
bool performEffectiveAction(QAccessibleInterface *iface, const QString &actionName)
bool qFuzzyIsNull(qfloat16 f) noexcept