![]() |
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 | |
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 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 37 of file qgraphicswidget_p.h.
QGraphicsWidgetPrivate::QGraphicsWidgetPrivate | ( | ) |
Definition at line 55 of file qgraphicswidget_p.cpp.
References focusNext, focusPrev, inheritedFontResolveMask, inheritedPaletteResolveMask, layout, and setWindowFrameMargins.
|
virtual |
Definition at line 74 of file qgraphicswidget_p.cpp.
void QGraphicsWidgetPrivate::adjustWindowFlags | ( | Qt::WindowFlags * | wFlags | ) |
Definition at line 293 of file qgraphicswidget_p.cpp.
|
inline |
Definition at line 94 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 84 of file qgraphicswidget_p.cpp.
void QGraphicsWidgetPrivate::ensureWindowData | ( | ) |
Ensures that windowData is allocated. This function must be called before any dereferencing.
Definition at line 108 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 96 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 719 of file qgraphicswidget_p.cpp.
bool QGraphicsWidgetPrivate::hasDecoration | ( | ) | const |
Definition at line 711 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 812 of file qgraphicswidget_p.cpp.
QT_BEGIN_NAMESPACE void QGraphicsWidgetPrivate::init | ( | QGraphicsItem * | parentItem, |
Qt::WindowFlags | wFlags ) |
Definition at line 21 of file qgraphicswidget_p.cpp.
References resolveLayoutDirection().
void QGraphicsWidgetPrivate::initStyleOptionTitleBar | ( | QStyleOptionTitleBar * | option | ) |
Definition at line 270 of file qgraphicswidget_p.cpp.
References ensureWindowData().
Referenced by windowFrameHoverMoveEvent(), and windowFrameMouseReleaseEvent().
QFont QGraphicsWidgetPrivate::naturalWidgetFont | ( | ) | const |
Definition at line 257 of file qgraphicswidget_p.cpp.
QPalette QGraphicsWidgetPrivate::naturalWidgetPalette | ( | ) | const |
Definition at line 196 of file qgraphicswidget_p.cpp.
|
overridevirtual |
Reset the height of the item Reimplemented by QGraphicsWidget
Reimplemented from QGraphicsItemPrivate.
Definition at line 829 of file qgraphicswidget_p.cpp.
|
overridevirtual |
Reset the width of the item Reimplemented by QGraphicsWidget
Reimplemented from QGraphicsItemPrivate.
Definition at line 806 of file qgraphicswidget_p.cpp.
Reimplemented from QGraphicsItemPrivate.
Definition at line 216 of file qgraphicswidget_p.cpp.
References inheritedFontResolveMask, and updateFont().
void QGraphicsWidgetPrivate::resolveLayoutDirection | ( | ) |
Definition at line 179 of file qgraphicswidget_p.cpp.
Referenced by init().
Reimplemented from QGraphicsItemPrivate.
Definition at line 121 of file qgraphicswidget_p.cpp.
References inheritedPaletteResolveMask.
|
inline |
Definition at line 112 of file qgraphicswidget_p.h.
Definition at line 209 of file qgraphicswidget_p.cpp.
References updateFont().
void QGraphicsWidgetPrivate::setGeometryFromSetPos | ( | ) |
Definition at line 835 of file qgraphicswidget_p.cpp.
Set the height of the item Reimplemented by QGraphicsWidget
Reimplemented from QGraphicsItemPrivate.
Definition at line 818 of file qgraphicswidget_p.cpp.
void QGraphicsWidgetPrivate::setLayout_helper | ( | QGraphicsLayout * | l | ) |
Definition at line 779 of file qgraphicswidget_p.cpp.
References layout.
void QGraphicsWidgetPrivate::setLayoutDirection_helper | ( | Qt::LayoutDirection | direction | ) |
Definition at line 157 of file qgraphicswidget_p.cpp.
Definition at line 114 of file qgraphicswidget_p.cpp.
Set the width of the item Reimplemented by QGraphicsWidget
Reimplemented from QGraphicsItemPrivate.
Definition at line 795 of file qgraphicswidget_p.cpp.
|
inline |
Definition at line 124 of file qgraphicswidget_p.h.
qreal QGraphicsWidgetPrivate::titleBarHeight | ( | const QStyleOptionTitleBar & | options | ) | const |
Definition at line 45 of file qgraphicswidget_p.cpp.
Definition at line 227 of file qgraphicswidget_p.cpp.
References inheritedFontResolveMask.
Referenced by resolveFont(), and setFont_helper().
Definition at line 129 of file qgraphicswidget_p.cpp.
References inheritedPaletteResolveMask.
|
overridevirtual |
Returns the width of the item Reimplemented by QGraphicsWidget
Reimplemented from QGraphicsItemPrivate.
Definition at line 789 of file qgraphicswidget_p.cpp.
void QGraphicsWidgetPrivate::windowFrameHoverLeaveEvent | ( | QGraphicsSceneHoverEvent * | event | ) |
Definition at line 685 of file qgraphicswidget_p.cpp.
References ensureWindowData(), and hasDecoration().
Referenced by windowFrameHoverMoveEvent().
void QGraphicsWidgetPrivate::windowFrameHoverMoveEvent | ( | QGraphicsSceneHoverEvent * | event | ) |
Definition at line 605 of file qgraphicswidget_p.cpp.
References ensureWindowData(), hasDecoration(), initStyleOptionTitleBar(), and windowFrameHoverLeaveEvent().
void QGraphicsWidgetPrivate::windowFrameMouseMoveEvent | ( | QGraphicsSceneMouseEvent * | event | ) |
Definition at line 535 of file qgraphicswidget_p.cpp.
References ensureWindowData().
void QGraphicsWidgetPrivate::windowFrameMousePressEvent | ( | QGraphicsSceneMouseEvent * | event | ) |
Definition at line 346 of file qgraphicswidget_p.cpp.
References ensureWindowData().
void QGraphicsWidgetPrivate::windowFrameMouseReleaseEvent | ( | QGraphicsSceneMouseEvent * | event | ) |
Definition at line 315 of file qgraphicswidget_p.cpp.
References ensureWindowData(), and initStyleOptionTitleBar().
Definition at line 167 of file qgraphicswidget_p.h.
quint32 QGraphicsWidgetPrivate::attributes |
Definition at line 131 of file qgraphicswidget_p.h.
quint32 QGraphicsWidgetPrivate::autoFillBackground |
Definition at line 135 of file qgraphicswidget_p.h.
QGraphicsWidget* QGraphicsWidgetPrivate::focusNext |
Definition at line 139 of file qgraphicswidget_p.h.
Referenced by QGraphicsWidgetPrivate().
Qt::FocusPolicy QGraphicsWidgetPrivate::focusPolicy |
Definition at line 138 of file qgraphicswidget_p.h.
QGraphicsWidget* QGraphicsWidgetPrivate::focusPrev |
Definition at line 140 of file qgraphicswidget_p.h.
Referenced by QGraphicsWidgetPrivate().
QFont QGraphicsWidgetPrivate::font |
Definition at line 66 of file qgraphicswidget_p.h.
uint QGraphicsWidgetPrivate::inheritedFontResolveMask |
Definition at line 67 of file qgraphicswidget_p.h.
Referenced by QGraphicsWidgetPrivate(), resolveFont(), and updateFont().
uint QGraphicsWidgetPrivate::inheritedPaletteResolveMask |
Definition at line 61 of file qgraphicswidget_p.h.
Referenced by QGraphicsWidgetPrivate(), resolvePalette(), and updatePalette().
quint32 QGraphicsWidgetPrivate::inSetGeometry |
Definition at line 132 of file qgraphicswidget_p.h.
quint32 QGraphicsWidgetPrivate::inSetPos |
Definition at line 134 of file qgraphicswidget_p.h.
QGraphicsLayout* QGraphicsWidgetPrivate::layout |
Definition at line 55 of file qgraphicswidget_p.h.
Referenced by QGraphicsWidgetPrivate(), and setLayout_helper().
|
mutable |
Definition at line 48 of file qgraphicswidget_p.h.
QPalette QGraphicsWidgetPrivate::palette |
Definition at line 60 of file qgraphicswidget_p.h.
quint32 QGraphicsWidgetPrivate::polished |
Definition at line 133 of file qgraphicswidget_p.h.
bool QGraphicsWidgetPrivate::setWindowFrameMargins |
Definition at line 162 of file qgraphicswidget_p.h.
Referenced by QGraphicsWidgetPrivate().
std::unique_ptr<WindowData> QGraphicsWidgetPrivate::windowData |
Definition at line 159 of file qgraphicswidget_p.h.
Qt::WindowFlags QGraphicsWidgetPrivate::windowFlags |
Definition at line 143 of file qgraphicswidget_p.h.
|
mutable |
Definition at line 163 of file qgraphicswidget_p.h.