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
QGraphicsWidgetPrivate Class Reference

#include <qgraphicswidget_p.h>

+ Inheritance diagram for QGraphicsWidgetPrivate:
+ Collaboration diagram for QGraphicsWidgetPrivate:

Classes

struct  WindowData
 

Public Member Functions

 QGraphicsWidgetPrivate ()
 
virtual ~QGraphicsWidgetPrivate ()
 
void init (QGraphicsItem *parentItem, Qt::WindowFlags wFlags)
 
qreal titleBarHeight (const QStyleOptionTitleBar &options) const
 
void ensureMargins () const
 
void fixFocusChainBeforeReparenting (QGraphicsWidget *newParent, QGraphicsScene *oldScene, QGraphicsScene *newScene=nullptr)
 
void setLayout_helper (QGraphicsLayout *l)
 
void setLayoutDirection_helper (Qt::LayoutDirection direction)
 
void resolveLayoutDirection ()
 
void setPalette_helper (const QPalette &palette)
 
void resolvePalette (uint inheritedMask) override
 
void updatePalette (const QPalette &palette)
 
QPalette naturalWidgetPalette () const
 
void setFont_helper (const QFont &font)
 
void resolveFont (uint inheritedMask) override
 
void updateFont (const QFont &font)
 
QFont naturalWidgetFont () const
 
void initStyleOptionTitleBar (QStyleOptionTitleBar *option)
 
void adjustWindowFlags (Qt::WindowFlags *wFlags)
 
void windowFrameMouseReleaseEvent (QGraphicsSceneMouseEvent *event)
 
void windowFrameMousePressEvent (QGraphicsSceneMouseEvent *event)
 
void windowFrameMouseMoveEvent (QGraphicsSceneMouseEvent *event)
 
void windowFrameHoverMoveEvent (QGraphicsSceneHoverEvent *event)
 
void windowFrameHoverLeaveEvent (QGraphicsSceneHoverEvent *event)
 
bool hasDecoration () const
 
qreal width () const override
 
void setWidth (qreal) override
 
void resetWidth () override
 
qreal height () const override
 
void setHeight (qreal) override
 
void resetHeight () override
 
void setGeometryFromSetPos ()
 
int attributeToBitIndex (Qt::WidgetAttribute att) const
 
void setAttribute (Qt::WidgetAttribute att, bool value)
 
bool testAttribute (Qt::WidgetAttribute att) const
 
void ensureWindowData ()
 
void ensureWindowFrameMargins () const
 
- Public Member Functions inherited from QGraphicsItemPrivate
 QGraphicsItemPrivate ()
 
virtual ~QGraphicsItemPrivate ()
 
void updateChildWithGraphicsEffectFlagRecursively ()
 Returns a pointer to this item's effect if it has one; otherwise \nullptr.
 
void updateAncestorFlag (QGraphicsItem::GraphicsItemFlag childFlag, AncestorFlag flag=NoFlag, bool enabled=false, bool root=true)
 
void updateAncestorFlags ()
 
void setIsMemberOfGroup (bool enabled)
 
void remapItemPos (QEvent *event, QGraphicsItem *item)
 
QTransform genericMapFromSceneTransform (const QWidget *viewport=nullptr) const
 
QPointF genericMapFromScene (const QPointF &pos, const QWidget *viewport) const
 
bool itemIsUntransformable () const
 
void combineTransformToParent (QTransform *x, const QTransform *viewTransform=nullptr) const
 
void combineTransformFromParent (QTransform *x, const QTransform *viewTransform=nullptr) const
 
virtual void updateSceneTransformFromParent ()
 
virtual void setPosHelper (const QPointF &pos)
 
void setTransformHelper (const QTransform &transform)
 
void prependGraphicsTransform (QGraphicsTransform *t)
 
void appendGraphicsTransform (QGraphicsTransform *t)
 
void setVisibleHelper (bool newVisible, bool explicitly, bool update=true, bool hiddenByPanel=false)
 
void setEnabledHelper (bool newEnabled, bool explicitly, bool update=true)
 
bool discardUpdateRequest (bool ignoreVisibleBit=false, bool ignoreDirtyBit=false, bool ignoreOpacity=false) const
 
virtual void transformChanged ()
 
int depth () const
 
void invalidateDepthRecursively ()
 
void resolveDepth ()
 
void addChild (QGraphicsItem *child)
 
void removeChild (QGraphicsItem *child)
 
void setParentItemHelper (QGraphicsItem *parent, const QVariant *newParentVariant, const QVariant *thisPointerVariant)
 
void childrenBoundingRectHelper (QTransform *x, QRectF *rect, QGraphicsItem *topMostEffectItem)
 
void initStyleOption (QStyleOptionGraphicsItem *option, const QTransform &worldTransform, const QRegion &exposedRegion, bool allItems=false) const
 
QRectF effectiveBoundingRect (QGraphicsItem *topMostEffectItem=nullptr) const
 
QRectF sceneEffectiveBoundingRect () const
 
QRectF effectiveBoundingRect (const QRectF &rect) const
 
virtual bool isProxyWidget () const
 
QVariant extra (Extra type) const
 
void setExtra (Extra type, const QVariant &value)
 
void unsetExtra (Extra type)
 
QGraphicsItemCachemaybeExtraItemCache () const
 
QGraphicsItemCacheextraItemCache () const
 
void removeExtraItemCache ()
 
void updatePaintedViewBoundingRects (bool updateChildren)
 
void ensureSceneTransformRecursive (QGraphicsItem **topMostDirtyItem)
 
void ensureSceneTransform ()
 
bool hasTranslateOnlySceneTransform ()
 
void invalidateChildrenSceneTransform ()
 
qreal calcEffectiveOpacity () const
 
bool isOpacityNull () const
 
bool isFullyTransparent () const
 
qreal effectiveOpacity () const
 
qreal combineOpacityFromParent (qreal parentOpacity) const
 
bool childrenCombineOpacity () const
 
bool childrenClippedToShape () const
 
bool isInvisible () const
 
void markParentDirty (bool updateBoundingRect=false)
 
void setFocusHelper (Qt::FocusReason focusReason, bool climb, bool focusFromHide)
 
void clearFocusHelper (bool giveFocusToParent, bool hiddenByParentPanel)
 
void setSubFocus (QGraphicsItem *rootItem=nullptr, QGraphicsItem *stopItem=nullptr)
 
void clearSubFocus (QGraphicsItem *rootItem=nullptr, QGraphicsItem *stopItem=nullptr)
 
void resetFocusProxy ()
 
virtual void subFocusItemChange ()
 
virtual void focusScopeItemChange (bool isSubFocusItem)
 
QTransform transformToParent () const
 
void ensureSortedChildren ()
 
void ensureSequentialSiblingIndex ()
 
void sendScenePosChange ()
 
virtual void siblingOrderChange ()
 

Public Attributes

std::unique_ptr< QMarginsFmargins
 
QGraphicsLayoutlayout
 
QPalette palette
 
uint inheritedPaletteResolveMask
 
QFont font
 
uint inheritedFontResolveMask
 
quint32 attributes: 10
 
quint32 inSetGeometry: 1
 
quint32 polished: 1
 
quint32 inSetPos: 1
 
quint32 autoFillBackground: 1
 
Qt::FocusPolicy focusPolicy
 
QGraphicsWidgetfocusNext
 
QGraphicsWidgetfocusPrev
 
Qt::WindowFlags windowFlags
 
std::unique_ptr< WindowDatawindowData
 
bool setWindowFrameMargins
 
std::unique_ptr< QMarginsFwindowFrameMargins
 
QList< QAction * > actions
 
- Public Attributes inherited from QGraphicsItemPrivate
QList< ExtraStructextras
 
QRectF childrenBoundingRect
 
QRectF needsRepaint
 
QHash< QWidget *, QRectpaintedViewBoundingRects
 
QPointF pos
 
qreal z
 
qreal opacity
 
QGraphicsScenescene
 
QGraphicsItemparent
 
QList< QGraphicsItem * > children
 
TransformDatatransformData
 
QGraphicsEffectgraphicsEffect
 
QTransform sceneTransform
 
int index
 
int siblingIndex
 
int itemDepth
 
QGraphicsItemfocusProxy
 
QList< QGraphicsItem ** > focusProxyRefs
 
QGraphicsItemsubFocusItem
 
QGraphicsItemfocusScopeItem
 
Qt::InputMethodHints imHints
 
QGraphicsItem::PanelModality panelModality
 
QMap< Qt::GestureType, Qt::GestureFlags > gestureContext
 
quint32 acceptedMouseButtons: 5
 
quint32 visible: 1
 
quint32 explicitlyHidden: 1
 
quint32 enabled: 1
 
quint32 explicitlyDisabled: 1
 
quint32 selected: 1
 
quint32 acceptsHover: 1
 
quint32 acceptDrops: 1
 
quint32 isMemberOfGroup: 1
 
quint32 handlesChildEvents: 1
 
quint32 itemDiscovered: 1
 
quint32 hasCursor: 1
 
quint32 ancestorFlags: 5
 
quint32 cacheMode: 2
 
quint32 hasBoundingRegionGranularity: 1
 
quint32 isWidget: 1
 
quint32 dirty: 1
 
quint32 dirtyChildren: 1
 
quint32 localCollisionHack: 1
 
quint32 inSetPosHelper: 1
 
quint32 needSortChildren: 1
 
quint32 allChildrenDirty: 1
 
quint32 fullUpdatePending: 1
 
quint32 flags: 20
 
quint32 paintedViewBoundingRectsNeedRepaint: 1
 
quint32 dirtySceneTransform: 1
 
quint32 geometryChanged: 1
 
quint32 inDestructor: 1
 
quint32 isObject: 1
 
quint32 ignoreVisible: 1
 
quint32 ignoreOpacity: 1
 
quint32 acceptTouchEvents: 1
 
quint32 acceptedTouchBeginEvent: 1
 
quint32 filtersDescendantEvents: 1
 
quint32 sceneTransformTranslateOnly: 1
 
quint32 notifyBoundingRectChanged: 1
 
quint32 notifyInvalidated: 1
 
quint32 mouseSetsFocus: 1
 
quint32 explicitActivate: 1
 
quint32 wantsActive: 1
 
quint32 holesInSiblingIndex: 1
 
quint32 sequentialOrdering: 1
 
quint32 updateDueToGraphicsEffect: 1
 
quint32 scenePosDescendants: 1
 
quint32 pendingPolish: 1
 
quint32 mayHaveChildWithGraphicsEffect: 1
 
quint32 sendParentChangeNotification: 1
 
quint32 dirtyChildrenBoundingRect: 1
 
quint32 padding: 20
 
int globalStackingOrder
 
QGraphicsItemq_ptr
 

Additional Inherited Members

- Public Types inherited from QGraphicsItemPrivate
enum  Extra {
  ExtraToolTip , ExtraCursor , ExtraCacheData , ExtraMaxDeviceCoordCacheSize ,
  ExtraBoundingRegionGranularity
}
 
enum  AncestorFlag {
  NoFlag = 0 , AncestorHandlesChildEvents = 0x1 , AncestorClipsChildren = 0x2 , AncestorIgnoresTransformations = 0x4 ,
  AncestorFiltersChildEvents = 0x8 , AncestorContainsChildren = 0x10
}
 
- Static Public Member Functions inherited from QGraphicsItemPrivate
static const QGraphicsItemPrivateget (const QGraphicsItem *item)
 
static QGraphicsItemPrivateget (QGraphicsItem *item)
 
static bool movableAncestorIsSelected (const QGraphicsItem *item)
 
static bool isOpacityNull (qreal opacity)
 
static bool insertionOrder (QGraphicsItem *a, QGraphicsItem *b)
 

Detailed Description

Definition at line 36 of file qgraphicswidget_p.h.

Constructor & Destructor Documentation

◆ QGraphicsWidgetPrivate()

QGraphicsWidgetPrivate::QGraphicsWidgetPrivate ( )

Definition at line 54 of file qgraphicswidget_p.cpp.

◆ ~QGraphicsWidgetPrivate()

QGraphicsWidgetPrivate::~QGraphicsWidgetPrivate ( )
virtual

Definition at line 73 of file qgraphicswidget_p.cpp.

Member Function Documentation

◆ adjustWindowFlags()

void QGraphicsWidgetPrivate::adjustWindowFlags ( Qt::WindowFlags * wFlags)

Definition at line 292 of file qgraphicswidget_p.cpp.

References Qt::CustomizeWindowHint, Qt::Dialog, Qt::FramelessWindowHint, Qt::Sheet, Qt::SubWindow, Qt::Tool, Qt::Window, Qt::WindowContextHelpButtonHint, Qt::WindowMaximizeButtonHint, Qt::WindowMinimizeButtonHint, Qt::WindowSystemMenuHint, Qt::WindowTitleHint, and Qt::WindowType_Mask.

Referenced by init().

+ Here is the caller graph for this function:

◆ attributeToBitIndex()

int QGraphicsWidgetPrivate::attributeToBitIndex ( Qt::WidgetAttribute att) const
inline

Definition at line 93 of file qgraphicswidget_p.h.

References Qt::WA_DeleteOnClose, Qt::WA_NoSystemBackground, Qt::WA_OpaquePaintEvent, Qt::WA_Resized, Qt::WA_RightToLeft, Qt::WA_SetFont, Qt::WA_SetLayoutDirection, Qt::WA_SetPalette, Qt::WA_SetStyle, and Qt::WA_WindowPropagation.

Referenced by setAttribute(), and testAttribute().

+ Here is the caller graph for this function:

◆ ensureMargins()

void QGraphicsWidgetPrivate::ensureMargins ( ) const

Ensures that margins is allocated. This function must be called before any dereferencing.

Definition at line 83 of file qgraphicswidget_p.cpp.

References margins.

◆ ensureWindowData()

void QGraphicsWidgetPrivate::ensureWindowData ( )

Ensures that windowData is allocated. This function must be called before any dereferencing.

Definition at line 107 of file qgraphicswidget_p.cpp.

References windowData.

Referenced by initStyleOptionTitleBar(), windowFrameHoverLeaveEvent(), windowFrameHoverMoveEvent(), windowFrameMouseMoveEvent(), windowFrameMousePressEvent(), and windowFrameMouseReleaseEvent().

+ Here is the caller graph for this function:

◆ ensureWindowFrameMargins()

void QGraphicsWidgetPrivate::ensureWindowFrameMargins ( ) const

Ensures that windowFrameMargins is allocated. This function must be called before any dereferencing.

Definition at line 95 of file qgraphicswidget_p.cpp.

References windowFrameMargins.

◆ fixFocusChainBeforeReparenting()

void QGraphicsWidgetPrivate::fixFocusChainBeforeReparenting ( QGraphicsWidget * newParent,
QGraphicsScene * oldScene,
QGraphicsScene * newScene = nullptr )

is called after a reparent has taken place to fix up the focus chain(s)

Definition at line 718 of file qgraphicswidget_p.cpp.

References focusNext, focusPrev, QGraphicsItem::isAncestorOf(), QGraphicsItem::isPanel(), QGraphicsItemPrivate::parent, Q_ASSERT, and QGraphicsItemPrivate::q_ptr.

+ Here is the call graph for this function:

◆ hasDecoration()

bool QGraphicsWidgetPrivate::hasDecoration ( ) const

Definition at line 710 of file qgraphicswidget_p.cpp.

References Qt::Window, windowFlags, and Qt::WindowTitleHint.

Referenced by windowFrameHoverLeaveEvent(), and windowFrameHoverMoveEvent().

+ Here is the caller graph for this function:

◆ height()

qreal QGraphicsWidgetPrivate::height ( ) const
overridevirtual

Returns the height of the item Reimplemented by QGraphicsWidget

Reimplemented from QGraphicsItemPrivate.

Definition at line 811 of file qgraphicswidget_p.cpp.

Referenced by titleBarHeight().

+ Here is the caller graph for this function:

◆ init()

QT_BEGIN_NAMESPACE void QGraphicsWidgetPrivate::init ( QGraphicsItem * parentItem,
Qt::WindowFlags wFlags )

Definition at line 20 of file qgraphicswidget_p.cpp.

References adjustWindowFlags(), attributes, QSizePolicy::DefaultType, focusNext, focusPolicy, focusPrev, QGraphicsItemPrivate::isWidget, QGraphicsItem::ItemIsPanel, QGraphicsItem::ItemSendsGeometryChanges, QGraphicsItem::ItemUsesExtendedStyleOption, Qt::NoFocus, QSizePolicy::Preferred, resolveLayoutDirection(), Qt::Window, and windowFlags.

+ Here is the call graph for this function:

◆ initStyleOptionTitleBar()

void QGraphicsWidgetPrivate::initStyleOptionTitleBar ( QStyleOptionTitleBar * option)

Definition at line 269 of file qgraphicswidget_p.cpp.

References QStyle::CC_TitleBar, QFontMetrics::elidedText(), Qt::ElideRight, ensureWindowData(), QApplication::font(), isActive, QStyle::SC_TitleBarCloseButton, QStyle::SC_TitleBarLabel, QStyle::SC_TitleBarSysMenu, QStyle::State_Active, textRect, titleBarHeight(), QRect::width(), Qt::WindowActive, windowData, windowFlags, and Qt::WindowNoState.

Referenced by windowFrameHoverMoveEvent(), and windowFrameMouseReleaseEvent().

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

◆ naturalWidgetFont()

QFont QGraphicsWidgetPrivate::naturalWidgetFont ( ) const

Definition at line 256 of file qgraphicswidget_p.cpp.

References QGraphicsScene::font, QGraphicsItemPrivate::parent, QGraphicsItem::parentWidget(), QGraphicsItemPrivate::scene, and QFont::setResolveMask().

Referenced by resolveFont().

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

◆ naturalWidgetPalette()

QPalette QGraphicsWidgetPrivate::naturalWidgetPalette ( ) const

Definition at line 195 of file qgraphicswidget_p.cpp.

References QGraphicsScene::palette, palette, QGraphicsItemPrivate::parent, QGraphicsItem::parentWidget(), QGraphicsItemPrivate::scene, and QPalette::setResolveMask().

Referenced by resolvePalette().

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

◆ resetHeight()

void QGraphicsWidgetPrivate::resetHeight ( )
overridevirtual

Reset the height of the item Reimplemented by QGraphicsWidget

Reimplemented from QGraphicsItemPrivate.

Definition at line 828 of file qgraphicswidget_p.cpp.

◆ resetWidth()

void QGraphicsWidgetPrivate::resetWidth ( )
overridevirtual

Reset the width of the item Reimplemented by QGraphicsWidget

Reimplemented from QGraphicsItemPrivate.

Definition at line 805 of file qgraphicswidget_p.cpp.

◆ resolveFont()

void QGraphicsWidgetPrivate::resolveFont ( uint inheritedMask)
overridevirtual

Reimplemented from QGraphicsItemPrivate.

Definition at line 215 of file qgraphicswidget_p.cpp.

References font, inheritedFontResolveMask, naturalWidgetFont(), QGraphicsItem::parentWidget(), QFont::resolve(), and updateFont().

Referenced by QGraphicsProxyWidgetPrivate::setWidget_helper().

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

◆ resolveLayoutDirection()

void QGraphicsWidgetPrivate::resolveLayoutDirection ( )

Definition at line 178 of file qgraphicswidget_p.cpp.

References QGuiApplication::layoutDirection, QGraphicsItem::parentWidget(), QGraphicsItemPrivate::scene, setLayoutDirection_helper(), and Qt::WA_SetLayoutDirection.

Referenced by init().

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

◆ resolvePalette()

void QGraphicsWidgetPrivate::resolvePalette ( uint inheritedMask)
overridevirtual

Reimplemented from QGraphicsItemPrivate.

Definition at line 120 of file qgraphicswidget_p.cpp.

References inheritedPaletteResolveMask, naturalWidgetPalette(), palette, QPalette::resolve(), and updatePalette().

Referenced by QGraphicsProxyWidgetPrivate::setWidget_helper().

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

◆ setAttribute()

void QGraphicsWidgetPrivate::setAttribute ( Qt::WidgetAttribute att,
bool value )
inline

Definition at line 111 of file qgraphicswidget_p.h.

References attributes, attributeToBitIndex(), and qWarning.

+ Here is the call graph for this function:

◆ setFont_helper()

void QGraphicsWidgetPrivate::setFont_helper ( const QFont & font)

Definition at line 208 of file qgraphicswidget_p.cpp.

References font, QFont::resolveMask(), and updateFont().

+ Here is the call graph for this function:

◆ setGeometryFromSetPos()

void QGraphicsWidgetPrivate::setGeometryFromSetPos ( )

Definition at line 834 of file qgraphicswidget_p.cpp.

References inSetGeometry, inSetPos, and QGraphicsItemPrivate::pos.

◆ setHeight()

void QGraphicsWidgetPrivate::setHeight ( qreal h)
overridevirtual

Set the height of the item Reimplemented by QGraphicsWidget

Reimplemented from QGraphicsItemPrivate.

Definition at line 817 of file qgraphicswidget_p.cpp.

References qIsNaN().

+ Here is the call graph for this function:

◆ setLayout_helper()

void QGraphicsWidgetPrivate::setLayout_helper ( QGraphicsLayout * l)

Definition at line 778 of file qgraphicswidget_p.cpp.

References layout.

◆ setLayoutDirection_helper()

void QGraphicsWidgetPrivate::setLayoutDirection_helper ( Qt::LayoutDirection direction)

Definition at line 156 of file qgraphicswidget_p.cpp.

References QList< T >::at(), QGraphicsItemPrivate::children, direction, i, QGraphicsItem::isWidget(), item, QEvent::LayoutDirectionChange, QWidget::parentWidget(), Qt::RightToLeft, QCoreApplication::sendEvent(), QList< T >::size(), testAttribute(), QWidget::testAttribute(), Qt::WA_RightToLeft, Qt::WA_SetLayoutDirection, and widget.

Referenced by resolveLayoutDirection().

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

◆ setPalette_helper()

void QGraphicsWidgetPrivate::setPalette_helper ( const QPalette & palette)

Definition at line 113 of file qgraphicswidget_p.cpp.

References palette, QPalette::resolveMask(), and updatePalette().

+ Here is the call graph for this function:

◆ setWidth()

void QGraphicsWidgetPrivate::setWidth ( qreal w)
overridevirtual

Set the width of the item Reimplemented by QGraphicsWidget

Reimplemented from QGraphicsItemPrivate.

Definition at line 794 of file qgraphicswidget_p.cpp.

References qIsNaN().

+ Here is the call graph for this function:

◆ testAttribute()

bool QGraphicsWidgetPrivate::testAttribute ( Qt::WidgetAttribute att) const
inline

Definition at line 123 of file qgraphicswidget_p.h.

References attributes, and attributeToBitIndex().

Referenced by setLayoutDirection_helper().

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

◆ titleBarHeight()

qreal QGraphicsWidgetPrivate::titleBarHeight ( const QStyleOptionTitleBar & options) const

Definition at line 44 of file qgraphicswidget_p.cpp.

References height(), and QStyle::PM_TitleBarHeight.

Referenced by initStyleOptionTitleBar(), and windowFrameHoverMoveEvent().

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

◆ updateFont()

void QGraphicsWidgetPrivate::updateFont ( const QFont & font)

Definition at line 226 of file qgraphicswidget_p.cpp.

References QList< T >::at(), QGraphicsItemPrivate::children, QGraphicsItem::d_ptr, font, QEvent::FontChange, i, inheritedFontResolveMask, QGraphicsItem::isWidget(), item, polished, QGraphicsItemPrivate::resolveFont(), QFont::resolveMask(), QCoreApplication::sendEvent(), QList< T >::size(), and Qt::WA_WindowPropagation.

Referenced by resolveFont(), and setFont_helper().

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

◆ updatePalette()

void QGraphicsWidgetPrivate::updatePalette ( const QPalette & palette)

Definition at line 128 of file qgraphicswidget_p.cpp.

References QList< T >::at(), QGraphicsItemPrivate::children, QGraphicsItem::d_ptr, i, inheritedPaletteResolveMask, QGraphicsItem::isWidget(), item, palette, QEvent::PaletteChange, QPalette::resolveMask(), QGraphicsItemPrivate::resolvePalette(), QCoreApplication::sendEvent(), QList< T >::size(), and Qt::WA_WindowPropagation.

Referenced by resolvePalette(), and setPalette_helper().

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

◆ width()

qreal QGraphicsWidgetPrivate::width ( ) const
overridevirtual

Returns the width of the item Reimplemented by QGraphicsWidget

Reimplemented from QGraphicsItemPrivate.

Definition at line 788 of file qgraphicswidget_p.cpp.

◆ windowFrameHoverLeaveEvent()

void QGraphicsWidgetPrivate::windowFrameHoverLeaveEvent ( QGraphicsSceneHoverEvent * event)

Definition at line 684 of file qgraphicswidget_p.cpp.

References ensureWindowData(), hasDecoration(), Q_UNUSED, QStyle::SC_None, QStyle::SC_TitleBarCloseButton, and windowData.

Referenced by windowFrameHoverMoveEvent().

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

◆ windowFrameHoverMoveEvent()

◆ windowFrameMouseMoveEvent()

void QGraphicsWidgetPrivate::windowFrameMouseMoveEvent ( QGraphicsSceneMouseEvent * event)

◆ windowFrameMousePressEvent()

void QGraphicsWidgetPrivate::windowFrameMousePressEvent ( QGraphicsSceneMouseEvent * event)

Definition at line 345 of file qgraphicswidget_p.cpp.

References ensureWindowData(), Qt::LeftButton, Qt::NoSection, QStyle::SC_TitleBarCloseButton, Qt::TitleBarArea, and windowData.

+ Here is the call graph for this function:

◆ windowFrameMouseReleaseEvent()

void QGraphicsWidgetPrivate::windowFrameMouseReleaseEvent ( QGraphicsSceneMouseEvent * event)

Member Data Documentation

◆ actions

QList<QAction *> QGraphicsWidgetPrivate::actions

Definition at line 166 of file qgraphicswidget_p.h.

◆ attributes

quint32 QGraphicsWidgetPrivate::attributes

Definition at line 130 of file qgraphicswidget_p.h.

Referenced by init(), setAttribute(), and testAttribute().

◆ autoFillBackground

quint32 QGraphicsWidgetPrivate::autoFillBackground

Definition at line 134 of file qgraphicswidget_p.h.

◆ focusNext

QGraphicsWidget* QGraphicsWidgetPrivate::focusNext

◆ focusPolicy

Qt::FocusPolicy QGraphicsWidgetPrivate::focusPolicy

Definition at line 137 of file qgraphicswidget_p.h.

Referenced by init().

◆ focusPrev

QGraphicsWidget* QGraphicsWidgetPrivate::focusPrev

Definition at line 139 of file qgraphicswidget_p.h.

Referenced by fixFocusChainBeforeReparenting(), and init().

◆ font

QFont QGraphicsWidgetPrivate::font

Definition at line 65 of file qgraphicswidget_p.h.

Referenced by resolveFont(), setFont_helper(), and updateFont().

◆ inheritedFontResolveMask

uint QGraphicsWidgetPrivate::inheritedFontResolveMask

◆ inheritedPaletteResolveMask

uint QGraphicsWidgetPrivate::inheritedPaletteResolveMask

◆ inSetGeometry

quint32 QGraphicsWidgetPrivate::inSetGeometry

Definition at line 131 of file qgraphicswidget_p.h.

Referenced by setGeometryFromSetPos().

◆ inSetPos

quint32 QGraphicsWidgetPrivate::inSetPos

Definition at line 133 of file qgraphicswidget_p.h.

Referenced by setGeometryFromSetPos().

◆ layout

QGraphicsLayout* QGraphicsWidgetPrivate::layout

Definition at line 54 of file qgraphicswidget_p.h.

Referenced by QGraphicsWidget::setGeometry(), and setLayout_helper().

◆ margins

std::unique_ptr<QMarginsF> QGraphicsWidgetPrivate::margins
mutable

Definition at line 47 of file qgraphicswidget_p.h.

Referenced by ensureMargins().

◆ palette

QPalette QGraphicsWidgetPrivate::palette

◆ polished

quint32 QGraphicsWidgetPrivate::polished

Definition at line 132 of file qgraphicswidget_p.h.

Referenced by updateFont().

◆ setWindowFrameMargins

bool QGraphicsWidgetPrivate::setWindowFrameMargins

Definition at line 161 of file qgraphicswidget_p.h.

◆ windowData

◆ windowFlags

Qt::WindowFlags QGraphicsWidgetPrivate::windowFlags

Definition at line 142 of file qgraphicswidget_p.h.

Referenced by hasDecoration(), init(), and initStyleOptionTitleBar().

◆ windowFrameMargins

std::unique_ptr<QMarginsF> QGraphicsWidgetPrivate::windowFrameMargins
mutable

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