![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qgraphicswidget_p.h>
Classes | |
struct | WindowData |
Additional Inherited Members | |
![]() | |
enum | Extra { ExtraToolTip , ExtraCursor , ExtraCacheData , ExtraMaxDeviceCoordCacheSize , ExtraBoundingRegionGranularity } |
enum | AncestorFlag { NoFlag = 0 , AncestorHandlesChildEvents = 0x1 , AncestorClipsChildren = 0x2 , AncestorIgnoresTransformations = 0x4 , AncestorFiltersChildEvents = 0x8 , AncestorContainsChildren = 0x10 } |
![]() | |
static const QGraphicsItemPrivate * | get (const QGraphicsItem *item) |
static QGraphicsItemPrivate * | get (QGraphicsItem *item) |
static bool | movableAncestorIsSelected (const QGraphicsItem *item) |
static bool | isOpacityNull (qreal opacity) |
static bool | insertionOrder (QGraphicsItem *a, QGraphicsItem *b) |
Definition at line 36 of file qgraphicswidget_p.h.
QGraphicsWidgetPrivate::QGraphicsWidgetPrivate | ( | ) |
Definition at line 54 of file qgraphicswidget_p.cpp.
References focusNext, focusPrev, inheritedFontResolveMask, inheritedPaletteResolveMask, layout, and setWindowFrameMargins.
|
virtual |
Definition at line 73 of file qgraphicswidget_p.cpp.
void QGraphicsWidgetPrivate::adjustWindowFlags | ( | Qt::WindowFlags * | wFlags | ) |
Definition at line 292 of file qgraphicswidget_p.cpp.
|
inline |
Definition at line 93 of file qgraphicswidget_p.h.
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.
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.
Referenced by initStyleOptionTitleBar(), windowFrameHoverLeaveEvent(), windowFrameHoverMoveEvent(), windowFrameMouseMoveEvent(), windowFrameMousePressEvent(), and windowFrameMouseReleaseEvent().
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.
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.
bool QGraphicsWidgetPrivate::hasDecoration | ( | ) | const |
Definition at line 710 of file qgraphicswidget_p.cpp.
Referenced by windowFrameHoverLeaveEvent(), and windowFrameHoverMoveEvent().
|
overridevirtual |
Returns the height of the item Reimplemented by QGraphicsWidget
Reimplemented from QGraphicsItemPrivate.
Definition at line 811 of file qgraphicswidget_p.cpp.
QT_BEGIN_NAMESPACE void QGraphicsWidgetPrivate::init | ( | QGraphicsItem * | parentItem, |
Qt::WindowFlags | wFlags ) |
Definition at line 20 of file qgraphicswidget_p.cpp.
References resolveLayoutDirection().
void QGraphicsWidgetPrivate::initStyleOptionTitleBar | ( | QStyleOptionTitleBar * | option | ) |
Definition at line 269 of file qgraphicswidget_p.cpp.
References ensureWindowData().
Referenced by windowFrameHoverMoveEvent(), and windowFrameMouseReleaseEvent().
QFont QGraphicsWidgetPrivate::naturalWidgetFont | ( | ) | const |
Definition at line 256 of file qgraphicswidget_p.cpp.
QPalette QGraphicsWidgetPrivate::naturalWidgetPalette | ( | ) | const |
Definition at line 195 of file qgraphicswidget_p.cpp.
|
overridevirtual |
Reset the height of the item Reimplemented by QGraphicsWidget
Reimplemented from QGraphicsItemPrivate.
Definition at line 828 of file qgraphicswidget_p.cpp.
|
overridevirtual |
Reset the width of the item Reimplemented by QGraphicsWidget
Reimplemented from QGraphicsItemPrivate.
Definition at line 805 of file qgraphicswidget_p.cpp.
Reimplemented from QGraphicsItemPrivate.
Definition at line 215 of file qgraphicswidget_p.cpp.
References inheritedFontResolveMask, and updateFont().
void QGraphicsWidgetPrivate::resolveLayoutDirection | ( | ) |
Definition at line 178 of file qgraphicswidget_p.cpp.
Referenced by init().
Reimplemented from QGraphicsItemPrivate.
Definition at line 120 of file qgraphicswidget_p.cpp.
References inheritedPaletteResolveMask.
|
inline |
Definition at line 111 of file qgraphicswidget_p.h.
Definition at line 208 of file qgraphicswidget_p.cpp.
References updateFont().
void QGraphicsWidgetPrivate::setGeometryFromSetPos | ( | ) |
Definition at line 834 of file qgraphicswidget_p.cpp.
Set the height of the item Reimplemented by QGraphicsWidget
Reimplemented from QGraphicsItemPrivate.
Definition at line 817 of file qgraphicswidget_p.cpp.
void QGraphicsWidgetPrivate::setLayout_helper | ( | QGraphicsLayout * | l | ) |
Definition at line 778 of file qgraphicswidget_p.cpp.
References layout.
void QGraphicsWidgetPrivate::setLayoutDirection_helper | ( | Qt::LayoutDirection | direction | ) |
Definition at line 156 of file qgraphicswidget_p.cpp.
Definition at line 113 of file qgraphicswidget_p.cpp.
Set the width of the item Reimplemented by QGraphicsWidget
Reimplemented from QGraphicsItemPrivate.
Definition at line 794 of file qgraphicswidget_p.cpp.
|
inline |
Definition at line 123 of file qgraphicswidget_p.h.
qreal QGraphicsWidgetPrivate::titleBarHeight | ( | const QStyleOptionTitleBar & | options | ) | const |
Definition at line 44 of file qgraphicswidget_p.cpp.
Definition at line 226 of file qgraphicswidget_p.cpp.
References inheritedFontResolveMask.
Referenced by resolveFont(), and setFont_helper().
Definition at line 128 of file qgraphicswidget_p.cpp.
References inheritedPaletteResolveMask.
|
overridevirtual |
Returns the width of the item Reimplemented by QGraphicsWidget
Reimplemented from QGraphicsItemPrivate.
Definition at line 788 of file qgraphicswidget_p.cpp.
void QGraphicsWidgetPrivate::windowFrameHoverLeaveEvent | ( | QGraphicsSceneHoverEvent * | event | ) |
Definition at line 684 of file qgraphicswidget_p.cpp.
References ensureWindowData(), and hasDecoration().
Referenced by windowFrameHoverMoveEvent().
void QGraphicsWidgetPrivate::windowFrameHoverMoveEvent | ( | QGraphicsSceneHoverEvent * | event | ) |
Definition at line 604 of file qgraphicswidget_p.cpp.
References ensureWindowData(), hasDecoration(), initStyleOptionTitleBar(), and windowFrameHoverLeaveEvent().
void QGraphicsWidgetPrivate::windowFrameMouseMoveEvent | ( | QGraphicsSceneMouseEvent * | event | ) |
Definition at line 534 of file qgraphicswidget_p.cpp.
References ensureWindowData().
void QGraphicsWidgetPrivate::windowFrameMousePressEvent | ( | QGraphicsSceneMouseEvent * | event | ) |
Definition at line 345 of file qgraphicswidget_p.cpp.
References ensureWindowData().
void QGraphicsWidgetPrivate::windowFrameMouseReleaseEvent | ( | QGraphicsSceneMouseEvent * | event | ) |
Definition at line 314 of file qgraphicswidget_p.cpp.
References ensureWindowData(), and initStyleOptionTitleBar().
Definition at line 166 of file qgraphicswidget_p.h.
quint32 QGraphicsWidgetPrivate::attributes |
Definition at line 130 of file qgraphicswidget_p.h.
quint32 QGraphicsWidgetPrivate::autoFillBackground |
Definition at line 134 of file qgraphicswidget_p.h.
QGraphicsWidget* QGraphicsWidgetPrivate::focusNext |
Definition at line 138 of file qgraphicswidget_p.h.
Referenced by QGraphicsWidgetPrivate().
Qt::FocusPolicy QGraphicsWidgetPrivate::focusPolicy |
Definition at line 137 of file qgraphicswidget_p.h.
QGraphicsWidget* QGraphicsWidgetPrivate::focusPrev |
Definition at line 139 of file qgraphicswidget_p.h.
Referenced by QGraphicsWidgetPrivate().
QFont QGraphicsWidgetPrivate::font |
Definition at line 65 of file qgraphicswidget_p.h.
uint QGraphicsWidgetPrivate::inheritedFontResolveMask |
Definition at line 66 of file qgraphicswidget_p.h.
Referenced by QGraphicsWidgetPrivate(), resolveFont(), and updateFont().
uint QGraphicsWidgetPrivate::inheritedPaletteResolveMask |
Definition at line 60 of file qgraphicswidget_p.h.
Referenced by QGraphicsWidgetPrivate(), resolvePalette(), and updatePalette().
quint32 QGraphicsWidgetPrivate::inSetGeometry |
Definition at line 131 of file qgraphicswidget_p.h.
quint32 QGraphicsWidgetPrivate::inSetPos |
Definition at line 133 of file qgraphicswidget_p.h.
QGraphicsLayout* QGraphicsWidgetPrivate::layout |
Definition at line 54 of file qgraphicswidget_p.h.
Referenced by QGraphicsWidgetPrivate(), and setLayout_helper().
|
mutable |
Definition at line 47 of file qgraphicswidget_p.h.
QPalette QGraphicsWidgetPrivate::palette |
Definition at line 59 of file qgraphicswidget_p.h.
quint32 QGraphicsWidgetPrivate::polished |
Definition at line 132 of file qgraphicswidget_p.h.
bool QGraphicsWidgetPrivate::setWindowFrameMargins |
Definition at line 161 of file qgraphicswidget_p.h.
Referenced by QGraphicsWidgetPrivate().
std::unique_ptr<WindowData> QGraphicsWidgetPrivate::windowData |
Definition at line 158 of file qgraphicswidget_p.h.
Qt::WindowFlags QGraphicsWidgetPrivate::windowFlags |
Definition at line 142 of file qgraphicswidget_p.h.
|
mutable |
Definition at line 162 of file qgraphicswidget_p.h.