7#include <private/qabstractanimation_p.h>
8#include <private/qobject_p.h>
9#include <private/qquickbehavior_p.h>
10#include <private/qquicktext_p.h>
11#include <private/qquicktextinput_p.h>
12#include <private/qquicktextedit_p.h>
13#include <private/qquicktransition_p.h>
14#include <private/qquickloader_p.h>
16#include <private/qquickanimation_p.h>
17#include <private/qqmlmetatype_p.h>
18#include <private/qqmltimer_p.h>
26 if (
object ==
nullptr)
49 loader->setAsynchronous(
false);
55 if (!
object || objectList.
contains(
object))
63 const int namesIndex =
mo->indexOfClassInfo(
"DeferredPropertyNames");
64 if (namesIndex != -1) {
69 for (
int index = QObject::staticMetaObject.propertyOffset();
70 index <
object->metaObject()->propertyCount();
75 if (deferredPropertyNames.contains(metaProperty.
name()))
93 if (
list.canCount() &&
list.canAt()) {
104 for (
QObject *childObject :
object->children()) {
111 const auto childItems = quickItem->
childItems();
121 for (
QObject* childObject : std::as_const(objectList)) {
187 }
else if (
type.isValid()) {
188 if (
type.isComposite()) {
192 if (
type.typeName() ==
"QQmlComponent") {
195 object =
type.create();
207 qWarning() <<
"QuickDesigner: Cannot create an object of type"
210 <<
"- type isn't known to declarative meta type system";
QList< QByteArray > split(char sep) const
Splits the byte array into subarrays wherever sep occurs, and returns the list of those arrays.
QList< QGraphicsItem * > childItems() const
static void setObjectOwnership(QObject *, ObjectOwnership)
Sets the ownership of object.
const_reference at(qsizetype i) const noexcept
qsizetype count() const noexcept
void append(parameter_type t)
static QObjectPrivate * get(QObject *o)
bool blockSignals(bool b) noexcept
If block is true, signals emitted by this object are blocked (i.e., emitting a signal will not invoke...
The QQmlComponent class encapsulates a QML component definition.
The QQmlContext class defines a context within a QML engine.
The QQmlEngine class provides an environment for instantiating QML components.
static QQmlContext * contextForObject(const QObject *)
Returns the QQmlContext for the object, or nullptr if no context has been set.
static void setContextForObject(QObject *, QQmlContext *)
Sets the QQmlContext for the object to context.
The QQmlError class encapsulates a QML error.
The QQmlListReference class allows the manipulation of QQmlListProperty properties.
void setEnabled(bool enabled)
static void stopUnifiedTimer()
static void registerFixResourcePathsForObjectCallBack(void(*callback)(QObject *))
static void tweakObjects(QObject *object)
static QObject * createComponent(const QUrl &componentUrl, QQmlContext *context)
static void disableBehaivour(QObject *object)
static void disableTextCursor(QQuickItem *item)
static void disableNativeTextRendering(QQuickItem *item)
static void disableTransition(QObject *object)
static QObject * createPrimitive(const QString &typeName, QTypeRevision version, QQmlContext *context)
static bool objectWasDeleted(QObject *object)
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
QList< QQuickItem * > childItems() const
Returns the children of this item.
void setRenderType(RenderType renderType)
void setCursorVisible(bool on)
void setFromState(const QString &)
void setToState(const QString &)
\macro QT_RESTRICTED_CAST_FROM_ASCII
static QString fromLatin1(QByteArrayView ba)
This is an overloaded member function, provided for convenience. It differs from the above function o...
QString arg(qlonglong a, int fieldwidth=0, int base=10, QChar fillChar=u' ') const
constexpr quint8 minorVersion() const
Returns the minor version encoded in the revision.
constexpr quint8 majorVersion() const
Returns the major version encoded in the revision.
void setSlowModeEnabled(bool enabled)
void setSlowdownFactor(qreal factor)
static QUnifiedTimer * instance()
Combined button and popup list for selecting options.
#define QByteArrayLiteral(str)
Q_CORE_EXPORT int qstrcmp(const char *str1, const char *str2)
DBusConnection const char DBusError DBusBusType DBusError return DBusConnection DBusHandleMessageFunction void DBusFreeFunction return DBusConnection return DBusConnection return const char DBusError return DBusConnection DBusMessage dbus_uint32_t return DBusConnection dbus_bool_t DBusConnection DBusAddWatchFunction DBusRemoveWatchFunction DBusWatchToggledFunction void DBusFreeFunction return DBusConnection DBusDispatchStatusFunction void DBusFreeFunction DBusTimeout return DBusTimeout return DBusWatch return DBusWatch unsigned int return DBusError const DBusError return const DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessageIter int const void return DBusMessageIter DBusMessageIter return DBusMessageIter void DBusMessageIter void int return DBusMessage DBusMessageIter return DBusMessageIter return DBusMessageIter DBusMessageIter const char const char const char const char return DBusMessage return DBusMessage const char return DBusMessage dbus_bool_t return DBusMessage dbus_uint32_t return DBusMessage void
DBusConnection const char DBusError * error
static Window createDummyWindow(Display *dpy, XVisualInfo *visualInfo, int screenNumber, Window rootWin)
static qreal component(const QPointF &point, unsigned int i)
static bool isCrashingType(const QQmlType &type)
static void makeLoaderSynchronous(QObject *object)
static void stopAnimation(QObject *object)
static void allSubObjects(QObject *object, QObjectList &objectList)
static bool isWindow(QObject *object)
static QT_BEGIN_NAMESPACE void(* fixResourcePathsForObjectCallBack)(QObject *)
static QObject * createDummyWindow(QQmlEngine *engine)
static bool isWindowMetaObject(const QMetaObject *metaObject)
QQuickItem * qobject_cast< QQuickItem * >(QObject *o)
QLatin1StringView QLatin1String
#define QStringLiteral(str)
obj metaObject() -> className()
QGraphicsWidget * textEdit
bool contains(const AT &t) const noexcept