5#include <QtQuick/private/qquickvaluetypes_p.h>
6#include <QtQuick/private/qquickapplication_p.h>
7#include <QtQuick/private/qquickstate_p.h>
8#include <QtQuick/private/qquickpropertychanges_p.h>
9#include <QtQuick/private/qquickitemsmodule_p.h>
10#if QT_CONFIG(accessibility)
11# include <QtQuick/private/qquickaccessiblefactory_p.h>
13#include <QtGui/QGuiApplication>
14#include <QtGui/qdesktopservices.h>
15#include <QtGui/qfontdatabase.h>
16#include <QtGui/qstylehints.h>
18#include <QtQml/private/qqmlbinding_p.h>
19#include <QtQml/private/qqmldebugserviceinterfaces_p.h>
20#include <QtQml/private/qqmldebugstatesdelegate_p.h>
21#include <QtQml/private/qqmlglobal_p.h>
22#include <QtQml/private/qv4engine_p.h>
23#include <QtQml/private/qv4object_p.h>
24#include <QtQml/private/qqmlanybinding_p.h>
26#include <QtCore/qiterable.h>
30# pragma warning( disable : 4189 )
35#if QT_CONFIG(qml_debug)
40 QQmlQtQuick2DebugStatesDelegate();
41 ~QQmlQtQuick2DebugStatesDelegate();
45 const QVariant &expression,
bool isLiteralValue,
47 bool *isBaseState)
override;
48 bool setBindingForInvalidProperty(
QObject *
object,
51 bool isLiteralValue)
override;
52 void resetBindingForInvalidProperty(
QObject *
object,
53 const QString &propertyName)
override;
61QQmlQtQuick2DebugStatesDelegate::QQmlQtQuick2DebugStatesDelegate()
65QQmlQtQuick2DebugStatesDelegate::~QQmlQtQuick2DebugStatesDelegate()
69void QQmlQtQuick2DebugStatesDelegate::buildStatesList(
bool cleanList,
76 for (
int ii = 0; ii < instances.size(); ++ii) {
77 buildStatesList(instances.at(ii));
81void QQmlQtQuick2DebugStatesDelegate::buildStatesList(
QObject *
obj)
84 m_allStates.append(
state);
88 for (
int ii = 0; ii < children.
size(); ++ii) {
89 buildStatesList(children.
at(ii));
95 const QVariant &expression,
bool isLiteralValue,
101 QObject *
object =
property.object();
102 QString propertyName =
property.name();
103 for (
const QuickStatePointer& statePointer :
std::as_const(m_allStates)) {
106 if (
state->isStateActive() &&
state->containsPropertyInRevertList(
object, propertyName)) {
107 *inBaseState =
false;
110 if (!isLiteralValue) {
116 state->changeBindingInRevertList(
object, propertyName, newBinding);
119 state->changeValueInRevertList(
object, propertyName, expression);
125bool QQmlQtQuick2DebugStatesDelegate::setBindingForInvalidProperty(
QObject *
object,
132 propertyChanges->changeValue(propertyName, expression);
134 propertyChanges->changeExpression(propertyName, expression.
toString());
141void QQmlQtQuick2DebugStatesDelegate::resetBindingForInvalidProperty(
QObject *
object,
const QString &propertyName)
144 propertyChanges->removeProperty(propertyName);
150 return new QQmlQtQuick2DebugStatesDelegate;
232 int tintAlpha = tintColor.
alpha();
233 if (tintAlpha == 0xFF) {
235 }
else if (tintAlpha == 0x00) {
283#ifndef QT_NO_DESKTOPSERVICES
312 qRegisterMetaType<QVector<QVector<QPointF>>>();
319#if QT_CONFIG(accessibility)
320 QAccessible::installFactory(&qQuickAccessibleFactory);
323#if QT_CONFIG(qml_debug)
The QColor class provides colors based on RGB, HSV or CMYK values.
static QColor fromHslF(float h, float s, float l, float a=1.0)
This is an overloaded member function, provided for convenience. It differs from the above function o...
float greenF() const noexcept
Returns the green color component of this color.
static QColor fromRgba(QRgb rgba) noexcept
Static convenience function that returns a QColor constructed from the given QRgb value rgba.
int alpha() const noexcept
Returns the alpha color component of this color.
static QColor fromString(QAnyStringView name) noexcept
float redF() const noexcept
Returns the red color component of this color.
static QColor fromHsvF(float h, float s, float v, float a=1.0)
This is an overloaded member function, provided for convenience. It differs from the above function o...
float alphaF() const noexcept
Returns the alpha color component of this color.
float blueF() const noexcept
Returns the blue color component of this color.
static QColor fromRgbF(float r, float g, float b, float a=1.0)
Static convenience function that returns a QColor constructed from the RGB color values,...
static bool openUrl(const QUrl &url)
Opens the given url in the appropriate Web browser for the user's desktop environment,...
static QStringList families(WritingSystem writingSystem=Any)
Returns a sorted list of the available font families which support the writingSystem.
QString platformName
The name of the underlying platform plugin.
static void setObjectOwnership(QObject *, ObjectOwnership)
Sets the ownership of object.
qsizetype size() const noexcept
const_reference at(qsizetype i) const noexcept
QQmlAnyBinding is an abstraction over the various bindings in QML.
static QQmlAnyBinding createFromCodeString(const QQmlProperty &prop, const QString &code, QObject *obj, const QQmlRefPointer< QQmlContextData > &ctxt, const QString &url, quint16 lineNumber)
static QQmlRefPointer< QQmlContextData > get(QQmlContext *context)
The QQmlContext class defines a context within a QML engine.
static void setStatesDelegateFactory(QQmlDebugStatesDelegate *(*)())
virtual QObject * inputMethod()
The QQmlProperty class abstracts accessing properties on objects created from QML.
QVariant lighter(const QVariant &var, qreal factor) override
QVariant fromRgbF(double r, double g, double b, double a) override
QString stringFromRgba(unsigned rgba)
QVariant tint(const QVariant &baseVar, const QVariant &tintVar) override
QVariant fromHsvF(double h, double s, double v, double a) override
unsigned rgbaFromString(const QString &s, bool *ok) override
QVariant darker(const QVariant &var, qreal factor) override
QVariant fromHslF(double h, double s, double l, double a) override
QVariant colorFromString(const QString &s, bool *ok) override
QVariant alpha(const QVariant &var, qreal value) override
QQuickApplication * application(QObject *parent) override
bool openUrlExternally(const QUrl &url) override
QString pluginName() const override
QStyleHints * styleHints() override
QStringList fontFamilies() override
static void defineModule()
\macro QT_RESTRICTED_CAST_FROM_ASCII
The QStyleHints class contains platform specific hints and settings. \inmodule QtGui.
QString toString() const
Returns the variant as a QString if the variant has a userType() including, but not limited to:
static auto fromValue(T &&value) noexcept(std::is_nothrow_copy_constructible_v< T > &&Private::CanUseInternalSpace< T >) -> std::enable_if_t< std::conjunction_v< std::is_copy_constructible< T >, std::is_destructible< T > >, QVariant >
Combined button and popup list for selecting options.
Q_CONSTRUCTOR_FUNCTION(initializeStandardUserDefaults)
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
int qRound(qfloat16 d) noexcept
GLboolean GLboolean GLboolean b
GLsizei const GLfloat * v
[13]
GLboolean GLboolean GLboolean GLboolean a
[7]
GLfloat GLfloat GLfloat GLfloat h
GLenum GLenum GLsizei void GLsizei void * column
static QQmlDebugStatesDelegate *(* statesDelegateFactory)()
static QQmlGuiProvider * guiProvider
Q_QML_PRIVATE_EXPORT QQmlColorProvider * QQml_setColorProvider(QQmlColorProvider *newProvider)
static QQmlColorProvider * colorProvider
Q_QML_PRIVATE_EXPORT QQmlGuiProvider * QQml_setGuiProvider(QQmlGuiProvider *newProvider)
static QQuickColorProvider * getColorProvider()
static QQuickGuiProvider * getGuiProvider()
void QQuick_initializeModule()
QUrl url("example.com")
[constructor-url-reference]
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent