Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QQuickDesignerSupport Class Reference

#include <qquickdesignersupport_p.h>

+ Collaboration diagram for QQuickDesignerSupport:

Public Types

enum  DirtyType {
  TransformOrigin = 0x00000001 , Transform = 0x00000002 , BasicTransform = 0x00000004 , Position = 0x00000008 ,
  Size = 0x00000010 , ZValue = 0x00000020 , Content = 0x00000040 , Smooth = 0x00000080 ,
  OpacityValue = 0x00000100 , ChildrenChanged = 0x00000200 , ChildrenStackingChanged = 0x00000400 , ParentChanged = 0x00000800 ,
  Clip = 0x00001000 , Window = 0x00002000 , EffectReference = 0x00008000 , Visible = 0x00010000 ,
  HideReference = 0x00020000 , TransformUpdateMask = TransformOrigin | Transform | BasicTransform | Position | Size | Window , ComplexTransformUpdateMask = Transform | Window , ContentUpdateMask = Size | Content | Smooth | Window ,
  ChildrenUpdateMask = ChildrenChanged | ChildrenStackingChanged | EffectReference | Window , AllMask = TransformUpdateMask | ContentUpdateMask | ChildrenUpdateMask
}
 
typedef QByteArray PropertyName
 
typedef QList< PropertyNamePropertyNameList
 
typedef QByteArray TypeName
 

Public Member Functions

 QQuickDesignerSupport ()
 
 ~QQuickDesignerSupport ()
 
void refFromEffectItem (QQuickItem *referencedItem, bool hide=true)
 
void derefFromEffectItem (QQuickItem *referencedItem, bool unhide=true)
 
QImage renderImageForItem (QQuickItem *referencedItem, const QRectF &boundingRect, const QSize &imageSize)
 

Static Public Member Functions

static bool isDirty (QQuickItem *referencedItem, DirtyType dirtyType)
 
static void addDirty (QQuickItem *referencedItem, DirtyType dirtyType)
 
static void resetDirty (QQuickItem *referencedItem)
 
static QTransform windowTransform (QQuickItem *referencedItem)
 
static QTransform parentTransform (QQuickItem *referencedItem)
 
static bool isAnchoredTo (QQuickItem *fromItem, QQuickItem *toItem)
 
static bool areChildrenAnchoredTo (QQuickItem *fromItem, QQuickItem *toItem)
 
static bool hasAnchor (QQuickItem *item, const QString &name)
 
static QQuickItemanchorFillTargetItem (QQuickItem *item)
 
static QQuickItemanchorCenterInTargetItem (QQuickItem *item)
 
static QPair< QString, QObject * > anchorLineTarget (QQuickItem *item, const QString &name, QQmlContext *context)
 
static void resetAnchor (QQuickItem *item, const QString &name)
 
static void emitComponentCompleteSignalForAttachedProperty (QObject *item)
 
static QList< QObject * > statesForItem (QQuickItem *item)
 
static bool isComponentComplete (QQuickItem *item)
 
static int borderWidth (QQuickItem *item)
 
static void refreshExpressions (QQmlContext *context)
 
static void setRootItem (QQuickView *view, QQuickItem *item)
 
static bool isValidWidth (QQuickItem *item)
 
static bool isValidHeight (QQuickItem *item)
 
static void updateDirtyNode (QQuickItem *item)
 
static void activateDesignerMode ()
 
static void disableComponentComplete ()
 
static void enableComponentComplete ()
 
static void polishItems (QQuickWindow *window)
 

Detailed Description

Definition at line 35 of file qquickdesignersupport_p.h.

Member Typedef Documentation

◆ PropertyName

◆ PropertyNameList

◆ TypeName

Member Enumeration Documentation

◆ DirtyType

Enumerator
TransformOrigin 
Transform 
BasicTransform 
Position 
Size 
ZValue 
Content 
Smooth 
OpacityValue 
ChildrenChanged 
ChildrenStackingChanged 
ParentChanged 
Clip 
Window 
EffectReference 
Visible 
HideReference 
TransformUpdateMask 
ComplexTransformUpdateMask 
ContentUpdateMask 
ChildrenUpdateMask 
AllMask 

Definition at line 42 of file qquickdesignersupport_p.h.

Constructor & Destructor Documentation

◆ QQuickDesignerSupport()

QT_BEGIN_NAMESPACE QQuickDesignerSupport::QQuickDesignerSupport ( )

Definition at line 23 of file qquickdesignersupport.cpp.

◆ ~QQuickDesignerSupport()

QQuickDesignerSupport::~QQuickDesignerSupport ( )

Definition at line 27 of file qquickdesignersupport.cpp.

References QHash< Key, T >::begin(), QHash< Key, T >::end(), QQuickItemPrivate::get(), and item.

+ Here is the call graph for this function:

Member Function Documentation

◆ activateDesignerMode()

void QQuickDesignerSupport::activateDesignerMode ( )
static

Definition at line 407 of file qquickdesignersupport.cpp.

References QQmlEnginePrivate::activateDesignerMode().

+ Here is the call graph for this function:

◆ addDirty()

void QQuickDesignerSupport::addDirty ( QQuickItem * referencedItem,
QQuickDesignerSupport::DirtyType dirtyType )
static

Definition at line 110 of file qquickdesignersupport.cpp.

References QQuickItemPrivate::get().

+ Here is the call graph for this function:

◆ anchorCenterInTargetItem()

QQuickItem * QQuickDesignerSupport::anchorCenterInTargetItem ( QQuickItem * item)
static

Definition at line 282 of file qquickdesignersupport.cpp.

References anchors(), QQuickAnchors::centerIn, and item.

+ Here is the call graph for this function:

◆ anchorFillTargetItem()

QQuickItem * QQuickDesignerSupport::anchorFillTargetItem ( QQuickItem * item)
static

Definition at line 277 of file qquickdesignersupport.cpp.

References anchors(), QQuickAnchors::fill, and item.

+ Here is the call graph for this function:

◆ anchorLineTarget()

QPair< QString, QObject * > QQuickDesignerSupport::anchorLineTarget ( QQuickItem * item,
const QString & name,
QQmlContext * context )
static

Definition at line 289 of file qquickdesignersupport.cpp.

References QQuickAnchorLine::anchorLine, anchors(), QQuickAnchors::centerIn, context, QQuickAnchors::fill, QQuickAnchors::InvalidAnchor, QQmlProperty::isValid(), item, QQuickAnchorLine::item, propertyNameForAnchorLine(), QQmlProperty::read(), and QVariant::value().

+ Here is the call graph for this function:

◆ areChildrenAnchoredTo()

bool QQuickDesignerSupport::areChildrenAnchoredTo ( QQuickItem * fromItem,
QQuickItem * toItem )
static

Definition at line 192 of file qquickdesignersupport.cpp.

References areChildrenAnchoredTo(), and isAnchoredTo().

Referenced by areChildrenAnchoredTo().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ borderWidth()

int QQuickDesignerSupport::borderWidth ( QQuickItem * item)
static

Definition at line 372 of file qquickdesignersupport.cpp.

References QQuickRectangle::border, item, and QQuickPen::width.

◆ derefFromEffectItem()

void QQuickDesignerSupport::derefFromEffectItem ( QQuickItem * referencedItem,
bool unhide = true )

Definition at line 66 of file qquickdesignersupport.cpp.

References QQuickItemPrivate::get(), and QHash< Key, T >::take().

+ Here is the call graph for this function:

◆ disableComponentComplete()

void QQuickDesignerSupport::disableComponentComplete ( )
static

Definition at line 412 of file qquickdesignersupport.cpp.

References QQmlVME::disableComponentComplete().

Referenced by ComponentCompleteDisabler::ComponentCompleteDisabler().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ emitComponentCompleteSignalForAttachedProperty()

void QQuickDesignerSupport::emitComponentCompleteSignalForAttachedProperty ( QObject * item)
static

Definition at line 337 of file qquickdesignersupport.cpp.

References QQmlComponentAttached::completed(), emit, QQmlData::get(), QQmlComponentAttached::next(), and QObject::parent().

+ Here is the call graph for this function:

◆ enableComponentComplete()

void QQuickDesignerSupport::enableComponentComplete ( )
static

Definition at line 417 of file qquickdesignersupport.cpp.

References QQmlVME::enableComponentComplete().

Referenced by ComponentCompleteDisabler::~ComponentCompleteDisabler().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ hasAnchor()

bool QQuickDesignerSupport::hasAnchor ( QQuickItem * item,
const QString & name )
static

◆ isAnchoredTo()

bool QQuickDesignerSupport::isAnchoredTo ( QQuickItem * fromItem,
QQuickItem * toItem )
static

Definition at line 177 of file qquickdesignersupport.cpp.

References anchors(), QQuickAnchors::baseline, QQuickAnchors::bottom, QQuickAnchors::centerIn, QQuickAnchors::fill, QQuickItemPrivate::get(), QQuickAnchors::horizontalCenter, QQuickAnchorLine::item, QQuickAnchors::left, QQuickAnchors::right, QQuickAnchors::top, and QQuickAnchors::verticalCenter.

Referenced by areChildrenAnchoredTo().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isComponentComplete()

bool QQuickDesignerSupport::isComponentComplete ( QQuickItem * item)
static

Definition at line 367 of file qquickdesignersupport.cpp.

References QQuickItemPrivate::get(), and item.

+ Here is the call graph for this function:

◆ isDirty()

bool QQuickDesignerSupport::isDirty ( QQuickItem * referencedItem,
DirtyType dirtyType )
static

Definition at line 102 of file qquickdesignersupport.cpp.

References QQuickItemPrivate::get().

+ Here is the call graph for this function:

◆ isValidHeight()

bool QQuickDesignerSupport::isValidHeight ( QQuickItem * item)
static

Definition at line 396 of file qquickdesignersupport.cpp.

References QQuickItemPrivate::get(), and item.

+ Here is the call graph for this function:

◆ isValidWidth()

bool QQuickDesignerSupport::isValidWidth ( QQuickItem * item)
static

Definition at line 391 of file qquickdesignersupport.cpp.

References QQuickItemPrivate::get(), and item.

+ Here is the call graph for this function:

◆ parentTransform()

QTransform QQuickDesignerSupport::parentTransform ( QQuickItem * referencedItem)
static

Definition at line 135 of file qquickdesignersupport.cpp.

References QQuickItemPrivate::get(), and parentTransform().

Referenced by parentTransform().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ polishItems()

void QQuickDesignerSupport::polishItems ( QQuickWindow * window)
static

Definition at line 422 of file qquickdesignersupport.cpp.

References QQuickWindowPrivate::get(), and window().

+ Here is the call graph for this function:

◆ refFromEffectItem()

void QQuickDesignerSupport::refFromEffectItem ( QQuickItem * referencedItem,
bool hide = true )

Definition at line 39 of file qquickdesignersupport.cpp.

References QHash< Key, T >::contains(), QSGContext::createLayer(), QQuickItemPrivate::get(), QQuickWindowPrivate::get(), hide(), QHash< Key, T >::insert(), Q_ASSERT, QSGLayer::RGBA8, QSGRenderContext::sceneGraphContext(), and QSizeF::toSize().

+ Here is the call graph for this function:

◆ refreshExpressions()

void QQuickDesignerSupport::refreshExpressions ( QQmlContext * context)
static

Definition at line 381 of file qquickdesignersupport.cpp.

References context, and QQmlContextData::get().

+ Here is the call graph for this function:

◆ renderImageForItem()

QImage QQuickDesignerSupport::renderImageForItem ( QQuickItem * referencedItem,
const QRectF & boundingRect,
const QSize & imageSize )

Definition at line 75 of file qquickdesignersupport.cpp.

References boundingRect(), QQuickItemPrivate::get(), QImage::mirrored(), Q_ASSERT, qDebug, and QHash< Key, T >::value().

+ Here is the call graph for this function:

◆ resetAnchor()

void QQuickDesignerSupport::resetAnchor ( QQuickItem * item,
const QString & name )
static

Definition at line 314 of file qquickdesignersupport.cpp.

References anchors(), item, QQuickAnchors::resetBaseline(), QQuickAnchors::resetBottom(), QQuickAnchors::resetCenterIn(), QQuickAnchors::resetFill(), QQuickAnchors::resetHorizontalCenter(), QQuickAnchors::resetLeft(), QQuickAnchors::resetRight(), QQuickAnchors::resetTop(), and QQuickAnchors::resetVerticalCenter().

+ Here is the call graph for this function:

◆ resetDirty()

void QQuickDesignerSupport::resetDirty ( QQuickItem * referencedItem)
static

Definition at line 118 of file qquickdesignersupport.cpp.

References QQuickItemPrivate::get().

+ Here is the call graph for this function:

◆ setRootItem()

void QQuickDesignerSupport::setRootItem ( QQuickView * view,
QQuickItem * item )
static

Definition at line 386 of file qquickdesignersupport.cpp.

References QQuickViewPrivate::get(), item, and view.

+ Here is the call graph for this function:

◆ statesForItem()

QList< QObject * > QQuickDesignerSupport::statesForItem ( QQuickItem * item)
static

Definition at line 355 of file qquickdesignersupport.cpp.

References QQuickItemPrivate::get(), item, and state.

+ Here is the call graph for this function:

◆ updateDirtyNode()

void QQuickDesignerSupport::updateDirtyNode ( QQuickItem * item)
static

Definition at line 401 of file qquickdesignersupport.cpp.

References QQuickWindowPrivate::get(), item, and QGraphicsItem::window().

+ Here is the call graph for this function:

◆ windowTransform()

QTransform QQuickDesignerSupport::windowTransform ( QQuickItem * referencedItem)
static

Definition at line 127 of file qquickdesignersupport.cpp.

References QQuickItemPrivate::get().

+ Here is the call graph for this function:

The documentation for this class was generated from the following files: