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>.
|
#include <qwidget_p.h>
Classes | |
struct | TextureData |
Public Types | |
enum | DrawWidgetFlag { DrawAsRoot = 0x01 , DrawPaintOnScreen = 0x02 , DrawRecursive = 0x04 , DrawInvisible = 0x08 , DontSubtractOpaqueChildren = 0x10 , DontDrawOpaqueChildren = 0x20 , DontDrawNativeChildren = 0x40 , DontSetCompositionMode = 0x80 , UseEffectRegionBounds = 0x100 } |
enum | Direction { DirectionNorth = 0x01 , DirectionEast = 0x10 , DirectionSouth = 0x02 , DirectionWest = 0x20 } |
enum class | WindowHandleMode { Direct , Closest , TopLevel } |
enum | CloseMode { CloseNoEvent , CloseWithEvent , CloseWithSpontaneousEvent } |
enum class | FocusDirection { Previous , Next } |
enum class | FocusChainRemovalRule { EnsureFocusOut = 0x01 , AssertConsistency = 0x02 } |
Public Types inherited from QObjectPrivate | |
typedef void(* | StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **) |
using | ConnectionDataPointer = QExplicitlySharedDataPointer<ConnectionData> |
Static Public Member Functions | |
static QWidgetPrivate * | get (QWidget *w) |
static const QWidgetPrivate * | get (const QWidget *w) |
static void | checkRestoredGeometry (const QRect &availableGeometry, QRect *restoredGeometry, int frameHeight) |
static void | adjustFlags (Qt::WindowFlags &flags, QWidget *w=nullptr) |
static QWidget * | parentGraphicsView (const QWidget *widget) |
static QRect | screenGeometry (const QWidget *widget) |
static QRect | availableScreenGeometry (const QWidget *widget) |
static QScreen * | screen (const QWidget *widget, const QPoint &globalPosition, bool hasPosition=true) |
static QRect | screenGeometry (const QWidget *widget, const QPoint &globalPosition, bool hasPosition=true) |
static QRect | availableScreenGeometry (const QWidget *widget, const QPoint &globalPosition, bool hasPosition=true) |
static void | sendComposeStatus (QWidget *w, bool end) |
static void | setWidgetParentHelper (QObject *widgetAsObject, QObject *newParent) |
static bool | insertIntoFocusChain (const QWidgetList &toBeInserted, FocusDirection direction, QWidget *position) |
static QWidgetList | takeFromFocusChain (QWidget *from, QWidget *to, FocusDirection direction=FocusDirection::Next) |
Static Public Member Functions inherited from QObjectPrivate | |
static bool | removeConnection (Connection *c) |
static QObjectPrivate * | get (QObject *o) |
static const QObjectPrivate * | get (const QObject *o) |
template<typename Func1 , typename Func2 > | |
static QMetaObject::Connection | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection) |
template<typename Func1 , typename Func2 > | |
static bool | disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot) |
static QMetaObject::Connection | connectImpl (const QObject *sender, int signal_index, const QObject *receiver, void **slot, QtPrivate::QSlotObjectBase *slotObj, int type, const int *types, const QMetaObject *senderMetaObject) |
static QMetaObject::Connection | connect (const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
static QMetaObject::Connection | connect (const QObject *sender, int signal_index, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
static bool | disconnect (const QObject *sender, int signal_index, void **slot) |
static bool | disconnect (const QObject *sender, int signal_index, const QObject *receiver, void **slot) |
Static Public Attributes | |
static QWidgetMapper * | mapper = nullptr |
static QWidgetSet * | allWidgets = nullptr |
static int | instanceCounter = 0 |
static int | maxInstances = 0 |
Definition at line 179 of file qwidget_p.h.
Enumerator | |
---|---|
CloseNoEvent | |
CloseWithEvent | |
CloseWithSpontaneousEvent |
Definition at line 337 of file qwidget_p.h.
Enumerator | |
---|---|
DirectionNorth | |
DirectionEast | |
DirectionSouth | |
DirectionWest |
Definition at line 200 of file qwidget_p.h.
Enumerator | |
---|---|
DrawAsRoot | |
DrawPaintOnScreen | |
DrawRecursive | |
DrawInvisible | |
DontSubtractOpaqueChildren | |
DontDrawOpaqueChildren | |
DontDrawNativeChildren | |
DontSetCompositionMode | |
UseEffectRegionBounds |
Definition at line 186 of file qwidget_p.h.
|
strong |
Enumerator | |
---|---|
EnsureFocusOut | |
AssertConsistency |
Definition at line 743 of file qwidget_p.h.
|
strong |
Enumerator | |
---|---|
Previous | |
Next |
Definition at line 738 of file qwidget_p.h.
|
strong |
Enumerator | |
---|---|
Direct | |
Closest | |
TopLevel |
Definition at line 227 of file qwidget_p.h.
|
explicit |
Definition at line 105 of file qwidget.cpp.
References high_attributes, Q_UNLIKELY, Q_UNUSED, qApp, qDebug, qFatal, QObjectPrivateVersion, and QObjectData::willBeWidget.
QWidgetPrivate::~QWidgetPrivate | ( | ) |
Definition at line 185 of file qwidget.cpp.
References deleteExtra(), extra, QWidgetItem::wid, and widgetItem.
QWindow * QWidgetPrivate::_q_closestWindowHandle | ( | ) | const |
Used by clients outside of widgets to get a handle to the closest QWindow without having to link to widgets.
Definition at line 1085 of file qwidget.cpp.
References Closest, and windowHandle().
void QWidgetPrivate::_q_showIfNotHidden | ( | ) |
Definition at line 8383 of file qwidget.cpp.
References isExplicitlyHidden().
|
inlinevirtual |
Definition at line 438 of file qwidget_p.h.
void QWidgetPrivate::activateChildLayoutsRecursively | ( | ) |
Definition at line 7941 of file qwidget.cpp.
References QList< T >::at(), child, QObjectData::children, i, QLayoutItem::layout(), qobject_cast< QWidget * >(), sendPendingMoveAndResizeEvents(), QList< T >::size(), and Qt::WA_WState_Visible.
QSize QWidgetPrivate::adjustedSize | ( | ) | const |
Definition at line 8674 of file qwidget.cpp.
References QLayout::expandingDirections(), extra, QScreen::geometry, QLayoutItem::hasHeightForWidth(), Qt::Horizontal, layout, maybeTopData(), QGuiApplication::primaryScreen, qMax(), qMin(), screen, QGuiApplication::screenAt(), QSize::setHeight(), QRect::setWidth(), QRect::size(), QLayout::totalHeightForWidth(), and Qt::Vertical.
Definition at line 889 of file qwidget.cpp.
References Qt::CustomizeWindowHint, Qt::Dialog, Qt::FramelessWindowHint, Qt::Sheet, Qt::SubWindow, Qt::Tool, Qt::WA_TransparentForMouseEvents, Qt::Widget, Qt::Window, Qt::WindowCloseButtonHint, Qt::WindowContextHelpButtonHint, Qt::WindowFullscreenButtonHint, Qt::WindowMaximizeButtonHint, Qt::WindowMinimizeButtonHint, Qt::WindowMinMaxButtonsHint, Qt::WindowSystemMenuHint, Qt::WindowTitleHint, Qt::WindowTransparentForInput, and Qt::WindowType_Mask.
Referenced by init(), and setParent_sys().
void QWidgetPrivate::adjustQuitOnCloseAttribute | ( | ) |
Definition at line 12347 of file qwidget.cpp.
References Qt::Dialog, Qt::SubWindow, Qt::WA_QuitOnClose, Qt::Widget, and Qt::Window.
Referenced by init(), and setWindowFlags().
QScreen * QWidgetPrivate::associatedScreen | ( | ) | const |
Definition at line 1090 of file qwidget.cpp.
References Closest, window(), and windowHandle().
Definition at line 474 of file qwidget_p.h.
References widget.
Referenced by QFontComboBox::event(), QWidgetResizeHandler::mouseMoveEvent(), QSizeGrip::mousePressEvent(), QComboBoxPrivate::popupGeometry(), and QMenuPrivate::popupGeometry().
|
inlinestatic |
Definition at line 498 of file qwidget_p.h.
References QScreen::availableGeometry, screen, and widget.
|
inlinevirtual |
Reimplemented in QOpenGLWidgetPrivate.
Definition at line 606 of file qwidget_p.h.
Referenced by drawWidget().
|
inlinevirtual |
Reimplemented in QOpenGLWidgetPrivate.
Definition at line 608 of file qwidget_p.h.
Referenced by sendComposeStatus().
|
static |
Check a if restoredGeometry fits into availableGeometry This method is used to verify that a widget is restored to a geometry, which fits into the target screen.
frameHeight | represents the height of the widget's title bar, which is expected to be on its top. |
If the size of restoredGeometry exceeds availableGeometry, its height and width will be resized to be two pixels smaller than availableGeometry. An exact match would be full screen.
If at least one edge of restoredGeometry is outside availableGeometry, restoredGeometry will be moved \list
Definition at line 7383 of file qwidget.cpp.
References QRect::adjusted(), QRect::bottom(), QRect::contains(), QRect::height(), QRect::left(), QRect::right(), QRect::top(), and QRect::width().
Referenced by QWidget::restoreGeometry().
QWidget * QWidgetPrivate::childAt_helper | ( | const QPoint & | p, |
bool | ignoreChildrenInDestructor ) const |
Definition at line 10408 of file qwidget.cpp.
References childAtRecursiveHelper(), QObjectData::children, QList< T >::isEmpty(), and pointInsideRectAndMask().
QWidget * QWidgetPrivate::childAtRecursiveHelper | ( | const QPoint & | p, |
bool | ignoreChildrenInDestructor ) const |
Definition at line 10418 of file qwidget.cpp.
References QList< T >::at(), child, QObjectData::children, i, qobject_cast< QWidget * >(), QList< T >::size(), and Qt::WA_TransparentForMouseEvents.
Referenced by childAt_helper().
QRect QWidgetPrivate::clipRect | ( | ) | const |
Definition at line 1865 of file qwidget.cpp.
References effectiveRectFor().
Referenced by drawWidget(), findTextureWidgetsRecursively(), invalidateBackingStore(), QFocusFrame::paintEvent(), paintOnScreen(), scrollRect(), QWidgetRepaintManager::staticContents(), and subtractOpaqueChildren().
QRegion QWidgetPrivate::clipRegion | ( | ) | const |
Definition at line 1889 of file qwidget.cpp.
References QObjectData::children, i, qRectIntersects(), QList< T >::size(), and QWidget::x.
Definition at line 2104 of file qwidget.cpp.
References QWidgetData::crect, data, extra, graphicsEffect, and QRect::topLeft().
Referenced by paintOnScreen(), and QWidgetRepaintManager::staticContents().
bool QWidgetPrivate::close | ( | ) |
Definition at line 8560 of file qwidget.cpp.
References CloseWithEvent, handleClose(), and windowHandle().
Referenced by QDialogPrivate::close(), QDateTimeEditPrivate::initCalendarPopup(), and show_helper().
QWidget * QWidgetPrivate::closestParentWidgetWithWindowHandle | ( | ) | const |
Returns the closest parent widget that has a QWindow window handle
Definition at line 1046 of file qwidget.cpp.
References QObjectData::parent.
Referenced by setParent_sys().
void QWidgetPrivate::create | ( | ) |
Definition at line 1268 of file qwidget.cpp.
References QTLWExtra::backingStore, QWidget::create(), createTLSysExtra(), Qt::Desktop, QObject::dynamicPropertyNames(), extra, fixPosIncludesFrame(), QBackingStore::handle(), QTLWExtra::initialScreen, Qt::MaximizeUsingFullscreenGeometryHint, QWidget::nativeParentWidget(), QSurface::OpenGLSurface, QGuiApplicationPrivate::platformIntegration(), QTLWExtra::posIncludesFrame, Q_ASSERT, q_createNativeChildrenAndSetParent(), q_evaluateRhiConfig(), qstrncmp(), qt_window_private(), QWidget::resize(), rhiConfig(), QWidget::setGeometry(), setMask_sys(), setNetWmWindowTypes(), QWidget::setParent(), QObject::setProperty(), QPlatformBackingStore::setRhiConfig(), QWidget::setScreen(), setWindowModified_helper(), QWidget::setWindowRole(), setWinId(), QWidget::testAttribute(), topData(), usesRhiFlush, Qt::WA_ContentsMarginsRespectsSafeArea, Qt::WA_MacAlwaysShowToolWindow, Qt::WA_Moved, Qt::WA_NativeWindow, Qt::WA_OutsideWSRange, Qt::WA_PaintOnScreen, Qt::WA_ShowWithoutActivating, Qt::WA_TranslucentBackground, win, Qt::Window, window(), QTLWExtra::window, QWindowPrivate::WindowFrameExclusive, QWindowPrivate::WindowFrameInclusive, QPlatformIntegration::WindowManagement, and QWidget::winId().
void QWidgetPrivate::createExtra | ( | ) |
Creates the widget extra data.
Definition at line 1632 of file qwidget.cpp.
References createSysExtra(), extra, qDebug, and QWIDGETSIZE_MAX.
Referenced by createTLExtra(), QWindowContainerPrivate::markParentChain(), paintOnScreen(), setMaximumSize_helper(), setMinimumSize_helper(), and setStyle_helper().
void QWidgetPrivate::createRecursively | ( | ) |
Definition at line 1019 of file qwidget.cpp.
References QList< T >::at(), child, QObjectData::children, i, qobject_cast< QWidget * >(), QList< T >::size(), and Qt::WA_WState_Created.
Referenced by show_recursive().
void QWidgetPrivate::createSysExtra | ( | ) |
Definition at line 1661 of file qwidget.cpp.
Referenced by createExtra().
void QWidgetPrivate::createTLExtra | ( | ) |
Definition at line 1599 of file qwidget.cpp.
References QTLWExtra::backingStore, createExtra(), extra, and qDebug.
Referenced by QWindowContainer::parentWasChanged(), and topData().
void QWidgetPrivate::createTLSysExtra | ( | ) |
Definition at line 1402 of file qwidget.cpp.
References extra, qt_window_private(), QWIDGETSIZE_MAX, updateIsTranslucent(), and Qt::WA_NativeWindow.
Referenced by create().
void QWidgetPrivate::createWinId | ( | ) |
Definition at line 2370 of file qwidget.cpp.
References QList< T >::at(), QObjectData::children, createWinId(), i, QObjectData::parent, qobject_cast< QWidget * >(), QList< T >::size(), Qt::WA_DontCreateNativeAncestors, Qt::WA_NativeWindow, and Qt::WA_WState_Created.
Referenced by createWinId(), and QMenuPrivate::popup().
void QWidgetPrivate::deactivateWidgetCleanup | ( | ) |
Definition at line 2306 of file qwidget.cpp.
References QApplication::activeWindow(), qt_button_down, and QApplicationPrivate::setActiveWindow().
Referenced by hide_sys().
QWidget * QWidgetPrivate::deepestFocusProxy | ( | ) | const |
A focus proxy can have its own focus proxy, which can have its own proxy, and so on. This helper function returns the widget that sits at the bottom of the proxy chain, and therefore the one that should normally get focus if this widget receives a focus request.
Definition at line 6595 of file qwidget.cpp.
References QWidget::focusProxy().
Referenced by determineLastFocusChild(), and focusObject().
void QWidgetPrivate::deleteExtra | ( | ) |
Deletes the widget extra data.
Definition at line 1670 of file qwidget.cpp.
References deleteSysExtra(), deleteTLSysExtra(), extra, proxy, and qt_styleSheet().
Referenced by ~QWidgetPrivate().
void QWidgetPrivate::deleteSysExtra | ( | ) |
Definition at line 1687 of file qwidget.cpp.
Referenced by deleteExtra().
void QWidgetPrivate::deleteTLSysExtra | ( | ) |
Definition at line 1691 of file qwidget.cpp.
References extra.
Referenced by deleteExtra().
noFurtherThan. |
Definition at line 13554 of file qwidget.cpp.
References deepestFocusProxy(), QWidget::isAncestorOf(), QWidget::nextInFocusChain(), Qt::NoFocus, qobject_cast< QWidget * >(), and QWidget::window().
void QWidgetPrivate::drawWidget | ( | QPaintDevice * | pdev, |
const QRegion & | rgn, | ||
const QPoint & | offset, | ||
DrawWidgetFlags | flags, | ||
QPainter * | sharedPainter = nullptr, | ||
QWidgetRepaintManager * | repaintManager = nullptr ) |
Definition at line 5445 of file qwidget.cpp.
References beginBackingStorePainting(), QRegion::boundingRect(), QObjectData::children, clipRect(), QPainter::CompositionMode_Source, context, QPainter::device(), QPaintDevice::devicePixelRatio(), DontSubtractOpaqueChildren, QGraphicsEffect::draw(), DrawAsRoot, DrawInvisible, DrawPaintOnScreen, DrawRecursive, endBackingStorePainting(), engine, QImage::Format_ARGB32_Premultiplied, QImage::Format_RGB32, grabFramebuffer(), graphicsEffect, QPainter::isActive(), QRegion::isEmpty(), QList< T >::isEmpty(), QGraphicsEffect::isEnabled(), isOpaque, QWidgetRepaintManager::markNeedsFlush(), paintBackground(), QPainter::paintEngine(), QPaintDevice::paintEngine(), paintSiblingsRecursive(), Q_ASSERT, Q_UNLIKELY, qCInfo, qDebug, qWarning, renderToTexture, renderToTextureReallyDirty, QPainter::restore(), restoreRedirected(), QPainter::save(), sendPaintEvent(), QColor::setAlphaF(), setRedirected(), setSystemClip(), sharedPainter(), shouldPaintOnScreen(), QList< T >::size(), QPainter::SmoothPixmapTransform, QGraphicsEffect::source(), QBrush::style(), subtractOpaqueChildren(), QPaintEngine::systemRect(), QBrush::texture(), Qt::TexturePattern, QPainter::translate(), Qt::transparent, UseEffectRegionBounds, Qt::WA_AlwaysStackOnTop, Qt::WA_NoSystemBackground, Qt::WA_OpaquePaintEvent, Qt::WA_StyledBackground, Qt::WA_TintedBackground, Qt::WA_WState_InPaintEvent, QPalette::Window, and QPainter::worldTransform().
Referenced by paintOnScreen(), paintSiblingsRecursive(), and render().
|
inline |
Definition at line 440 of file qwidget_p.h.
Referenced by setEnabled_helper().
Definition at line 545 of file qwidget_p.h.
References rect.
Definition at line 540 of file qwidget_p.h.
References QRegion::boundingRect().
Referenced by clipRect(), invalidateBackingStore_resizeHelper(), lower_sys(), moveRect(), paintSiblingsRecursive(), raise_sys(), and stackUnder_sys().
|
inlinevirtual |
Reimplemented in QOpenGLWidgetPrivate.
Definition at line 607 of file qwidget_p.h.
Referenced by drawWidget().
|
inlinevirtual |
Reimplemented in QOpenGLWidgetPrivate, and QRhiWidgetPrivate.
Definition at line 609 of file qwidget_p.h.
Referenced by sendComposeStatus().
|
inline |
Definition at line 520 of file qwidget_p.h.
References child, i, and Qt::WA_NativeWindow.
|
inline |
Definition at line 856 of file qwidget_p.h.
References extra.
void QWidgetPrivate::fixPosIncludesFrame | ( | ) |
Definition at line 7140 of file qwidget.cpp.
References maybeTopData(), updateFrameStrut(), and Qt::WA_DontShowOnScreen.
Referenced by create(), setConstraints_sys(), and show_sys().
|
overridevirtual |
Reimplemented from QObjectPrivate.
Definition at line 13125 of file qwidget.cpp.
References QObjectPrivate::flagsForDumping(), and QApplication::focusWidget().
|
virtual |
Definition at line 6830 of file qwidget.cpp.
References deepestFocusProxy(), and proxy.
QRect QWidgetPrivate::frameStrut | ( | ) | const |
Definition at line 12072 of file qwidget.cpp.
References Qt::Desktop, QTLWExtra::frameStrut, maybeTopData(), updateFrameStrut(), Qt::WA_DontShowOnScreen, and Qt::WA_WState_Created.
|
inlinestatic |
Definition at line 213 of file qwidget_p.h.
|
inlinestatic |
Definition at line 212 of file qwidget_p.h.
Referenced by QAlphaWidget::QAlphaWidget(), QRollEffect::QRollEffect(), QWidgetWindow::~QWidgetWindow(), QLayout::addChildWidget(), correctWidgetContext(), QAbstractItemView::doAutoScroll(), QOpenGLWidgetPaintDevicePrivate::endPaint(), QOpenGLWidgetPaintDevice::ensureActiveTarget(), QDialogButtonBoxPrivate::ensureFirstAcceptIsDefault(), QRhiWidgetPrivate::ensureRhi(), findAllTextureWidgetsRecursively(), findTextureWidgetsRecursively(), QWidgetWindow::focusObject(), QStatusBar::insertPermanentWidget(), QStatusBar::insertWidget(), QQuickWidgetRenderControlPrivate::isRenderWindow(), QWidgetRepaintManager::markDirty(), QWindowContainerPrivate::markParentChain(), moveRect(), QGraphicsView::paintEvent(), QWindowContainer::parentWasChanged(), QWidgetWindowPrivate::processSafeAreaMarginsChanged(), q_evaluateRhiConfigRecursive(), qSendWindowChangeToTextureChildrenRecursively(), qwindowcontainer_traverse(), QQuickWidgetRenderControl::renderWindow(), QLayoutPrivate::reparentChildWidgets(), reparentWidgetWindowChildren(), QToolBarAreaLayout::restoreState(), scrollRect(), sendChangeRecursively(), sendComposeStatus(), QWidgetAction::setDefaultWidget(), QWidget::setParent(), QGraphicsView::setupViewport(), QWidgetWindowPrivate::setVisible(), QSplitterPrivate::shouldShowWidget(), QToolTip::showText(), topData(), and widgetTexturesFor().
void QWidgetPrivate::getLayoutItemMargins | ( | int * | left, |
int * | top, | ||
int * | right, | ||
int * | bottom ) const |
Definition at line 12295 of file qwidget.cpp.
References bottomLayoutItemMargin, leftLayoutItemMargin, rightLayoutItemMargin, and topLayoutItemMargin.
Referenced by QDialogButtonBoxPrivate::initLayout().
const QRegion & QWidgetPrivate::getOpaqueChildren | ( | ) | const |
Definition at line 1977 of file qwidget.cpp.
References QList< T >::at(), child, QObjectData::children, dirtyOpaqueChildren, QLayoutItem::geometry(), i, opaqueChildren, qobject_cast< QWidget * >(), and QList< T >::size().
Referenced by subtractOpaqueChildren().
|
inlinevirtual |
Reimplemented in QOpenGLWidgetPrivate, QRhiWidgetPrivate, and QQuickWidgetPrivate.
Definition at line 605 of file qwidget_p.h.
Referenced by drawWidget().
bool QWidgetPrivate::handleClose | ( | CloseMode | mode | ) |
For windows, this is called from the QWidgetWindow::handleCloseEvent implementation, which QWidget::close indirectly calls by closing the QWindow. mode will be CloseWithEvent if QWidgetWindow::handleCloseEvent is called indirectly by QWindow::close, and CloseWithSpontaneousEvent if the close event originates from the system (i.e. the user clicked the close button in the title bar).
QDialog calls this method directly in its hide() implementation, which might be called from the QDialog::closeEvent override. mode will be set to CloseNoEvent to prevent recursion.
For non-windows, this is called directly by QWidget::close, and mode will be CloseWithEvent.
The function is also called by the QWidget destructor, with mode set to CloseNoEvent.
Definition at line 8490 of file qwidget.cpp.
References CloseNoEvent, CloseWithSpontaneousEvent, QEvent::isAccepted(), qCDebug, QCoreApplication::sendEvent(), and Qt::WA_DeleteOnClose.
Referenced by close().
Definition at line 562 of file qwidget_p.h.
References QGuiApplication::inputMethod(), qApp, QStyle::RSIP_OnMouseClick, and QStyle::SH_RequestSoftwareInputPanel.
|
inline |
Definition at line 556 of file qwidget_p.h.
References button, and Qt::LeftButton.
bool QWidgetPrivate::hasChildWithFocusPolicy | ( | Qt::FocusPolicy | policy, |
const QWidget * | excludeChildrenOf = nullptr ) const |
true
, if a child withpolicy | exists and isn't a child of |
excludeChildrenOf. | Return false otherwise. |
Definition at line 13195 of file qwidget.cpp.
References child, QObjectData::children, Qt::FindChildrenRecursively, and policy.
Referenced by QDialogButtonBoxPrivate::ensureFirstAcceptIsDefault().
void QWidgetPrivate::hide_helper | ( | ) |
Definition at line 8135 of file qwidget.cpp.
References bypassGraphicsProxyWidget(), QApplication::focusWidget(), hide_sys(), hideChildren(), isEmbedded(), QWidget::isWindow(), maybeRepaintManager(), QWidget::parentWidget(), Qt::Popup, Q_UNUSED, qApp, QCoreApplication::sendEvent(), Qt::WA_Mapped, and Qt::WA_WState_Visible.
Referenced by setVisible().
void QWidgetPrivate::hide_sys | ( | ) |
Definition at line 8188 of file qwidget.cpp.
References deactivateWidgetCleanup(), extra, QGuiApplicationPrivate::hideModalWindow(), invalidateBackingStore(), Qt::NonModal, QWidget::parentWidget(), QT_CONFIG, renderToTexture, Qt::WA_DontShowOnScreen, Qt::WA_Mapped, window(), and windowHandle().
Referenced by hide_helper(), and setGeometry_sys().
void QWidgetPrivate::hideChildren | ( | bool | spontaneous | ) |
Definition at line 8421 of file qwidget.cpp.
References QObjectData::children, i, QWidget::internalWinId(), QWidget::isWindow(), qApp, qCDebug, qobject_cast< QWidget * >(), QCoreApplication::sendEvent(), QWidget::setAttribute(), QWidget::testAttribute(), Qt::WA_DontCreateNativeAncestors, Qt::WA_Mapped, Qt::WA_UnderMouse, Qt::WA_WState_Hidden, Qt::WA_WState_Visible, widget, and QWidget::window().
Referenced by hide_helper().
void QWidgetPrivate::inheritStyle | ( | ) |
Definition at line 2696 of file qwidget.cpp.
References extra, QObjectData::parent, proxy, Q_ASSERT, qApp, qt_styleSheet(), QStyleSheetStyle::ref(), setStyle_helper(), and Qt::WA_SetStyle.
Definition at line 937 of file qwidget.cpp.
References adjustFlags(), adjustQuitOnCloseAttribute(), allWidgets, QEvent::Create, data, Qt::DefaultContextMenu, Qt::Desktop, extraPaintEngine, initFocusChain(), QCoreApplication::instance(), instanceCounter, QBrush::isOpaque(), QObjectData::isWidget, maxInstances, Qt::MSWindowsOwnDC, mustHaveWindowHandle, Qt::NoBrush, Qt::NonModal, QObjectData::parent, QEvent::PolishRequest, QCoreApplication::postEvent(), Q_ASSERT, Q_ASSERT_X, Q_FUNC_INFO, Q_UNLIKELY, qApp, qFatal, resolveLayoutDirection(), QCoreApplication::sendEvent(), setOpaque(), QBrush::style(), Qt::WA_ContentsMarginsRespectsSafeArea, Qt::WA_NativeWindow, Qt::WA_PendingMoveEvent, Qt::WA_PendingResizeEvent, Qt::WA_QuitOnClose, Qt::WA_WState_Hidden, QObjectData::wasWidget, QPalette::Window, and Qt::WindowType_Mask.
void QWidgetPrivate::initFocusChain | ( | ) |
Initialises the focus chain by making the widget point to itself.
Definition at line 13333 of file qwidget.cpp.
References FOCUS_NEXT, FOCUS_PREV, and qCDebug.
Referenced by init(), and removeFromFocusChain().
|
inlinevirtual |
Reimplemented in QOpenGLWidgetPrivate.
Definition at line 626 of file qwidget_p.h.
|
static |
Convenience override to insert a QWidgetList
toBeInserted | into the focus chain before or after |
position,depending | on |
direction. |
true
, if the insertion has changed the focus chain, otherwise false
. toBeInserted | must be a consistent focus chain. |
Definition at line 13437 of file qwidget.cpp.
References direction, FOCUS_NEXT, FOCUS_PREV, Next, position(), Previous, Q_ASSERT, Q_ASSERT_X, Q_FUNC_INFO, and qCDebug.
bool QWidgetPrivate::insertIntoFocusChain | ( | FocusDirection | direction, |
QWidget * | position ) |
Inserts a widget into the focus chain before or after
position,depending | on |
direction. |
true
, if the insertion has changed the focus chain, otherwise false
. Definition at line 13386 of file qwidget.cpp.
References AssertConsistency, direction, FOCUS_NEXT, FOCUS_PREV, isFocusChainConsistent(), next, Next, position(), Previous, Q_ASSERT, qCDebug, and removeFromFocusChain().
Referenced by reparentFocusWidgets(), and QWidget::setTabOrder().
|
inline |
Definition at line 759 of file qwidget_p.h.
References position().
|
inline |
Definition at line 757 of file qwidget_p.h.
References position().
template Q_AUTOTEST_EXPORT void QWidgetPrivate::invalidateBackingStore< QRect > | ( | const T & | ) |
Invalidates the r (in widget's coordinates) of the backing store, i.e. all widgets intersecting with the region will be repainted when the backing store is synced.
Definition at line 115 of file qwidgetrepaintmanager.cpp.
References QWidgetRepaintManager::BufferInvalid, clipRect(), QCoreApplication::closingDown(), extra, graphicsEffect, QWidgetRepaintManager::UpdateLater, and QTLWExtra::window.
Referenced by hide_sys(), invalidateBackingStore_resizeHelper(), moveRect(), scrollRect(), and show_sys().
void QWidgetPrivate::invalidateBackingStore_resizeHelper | ( | const QPoint & | oldPos, |
const QSize & | oldSize ) |
Invalidates the backing store when the widget is resized.
Static areas are never invalidated unless absolutely needed.
Definition at line 1223 of file qwidgetrepaintmanager.cpp.
References dirty, effectiveRectFor(), extra, graphicsEffect, QSize::height(), invalidateBackingStore(), QRegion::isEmpty(), maybeRepaintManager(), moveRect(), Q_ASSERT, qMin(), QWidgetRepaintManager::staticContents(), Qt::WA_StaticContents, QSize::width(), QPoint::x(), QRect::x(), and QPoint::y().
Referenced by setGeometry_sys().
bool QWidgetPrivate::isAboutToShow | ( | ) | const |
The graphicsEffect function returns a pointer to the widget's graphics effect.
If the widget has no graphics effect, \nullptr is returned.
The setGraphicsEffect function is for setting the widget's graphics effect.
Sets effect as the widget's effect. If there already is an effect installed on this widget, QWidget will delete the existing effect before installing the new effect.
If effect is the installed effect on a different widget, setGraphicsEffect() will remove the effect from the widget and install it on this widget.
QWidget takes ownership of effect.
Definition at line 5309 of file qwidget.cpp.
References QObjectData::parent.
Referenced by prepareToRender().
bool QWidgetPrivate::isExplicitlyHidden | ( | ) | const |
Definition at line 8377 of file qwidget.cpp.
References Qt::WA_WState_ExplicitShowHide.
Referenced by _q_showIfNotHidden(), QSizeGripPrivate::_q_showIfNotHidden(), and setParent_sys().
bool QWidgetPrivate::isFocusChainConsistent | ( | ) | const |
A focus chain is consistent, when it is circular: Following the chain in either direction has to return to the beginning. This is why a newly constructed widget points to itself, when the focus chain has been initialized. A newly constructed widget is considered to have a consistent focus chain, while not being part of a focus chain.
The method always returns true
, when the logging category "qt.widgets.focus" is disabled. When it is enabled, the method returns true
early, if a widget is pointing to itself. It returns false
, if one of the following is detected: \list
true
, if none of the above is observed.Definition at line 13632 of file qwidget.cpp.
References QApplication::allWidgets(), FOCUS_NEXT, FOCUS_PREV, i, QLoggingCategory::isDebugEnabled(), isInFocusChain(), position(), and qCDebug.
Referenced by insertIntoFocusChain(), and removeFromFocusChain().
bool QWidgetPrivate::isInFocusChain | ( | ) | const |
true
, if the widget is part of a focus chain and false
otherwise. A widget is considered to be part of a focus chain, neither FOCUS_NEXT, nor FOCUS_PREV are pointing to the widget itself.true
for all of those widgets, even if they represent an inconsistent focus chain. Definition at line 13604 of file qwidget.cpp.
References FOCUS_NEXT, and FOCUS_PREV.
Referenced by isFocusChainConsistent(), and removeFromFocusChain().
|
inline |
Definition at line 359 of file qwidget_p.h.
References rect.
Referenced by moveRect(), and scrollRect().
|
inlinevirtual |
Reimplemented in QOpenGLWidgetPrivate.
Definition at line 636 of file qwidget_p.h.
QFont QWidgetPrivate::localFont | ( | ) | const |
Returns a font suitable for inheritance, where only locally set attributes are considered resolved.
Definition at line 4746 of file qwidget.cpp.
References directFontResolveMask, and QFont::setResolveMask().
Referenced by resolveFont().
void QWidgetPrivate::lower_sys | ( | ) |
Definition at line 11976 of file qwidget.cpp.
References effectiveRectFor(), QWidget::parentWidget(), Q_ASSERT, setDirtyOpaqueRegion(), Qt::WA_NativeWindow, and Qt::WA_WState_Created.
Definition at line 579 of file qwidget_p.h.
Definition at line 585 of file qwidget_p.h.
References QRect::translated().
Definition at line 576 of file qwidget_p.h.
Definition at line 582 of file qwidget_p.h.
References QRect::translated().
|
inline |
Definition at line 893 of file qwidget_p.h.
References QTLWExtra::window.
Referenced by hide_helper(), invalidateBackingStore_resizeHelper(), rhi(), syncBackingStore(), and syncBackingStore().
|
inline |
Definition at line 867 of file qwidget_p.h.
References extra.
Referenced by adjustedSize(), fixPosIncludesFrame(), frameStrut(), shouldDiscardSyncRequest(), updateFrameStrut(), and windowHandle().
Definition at line 382 of file qwidgetrepaintmanager.cpp.
References QWidgetRepaintManager::bltRect(), effectiveRectFor(), extra, get(), hasPlatformWindow(), QRect::intersected(), invalidateBackingStore(), isMoved, isOpaque, isOverlapped(), QRect::isValid(), QWidget::mapTo(), QWidgetRepaintManager::markDirty(), QWidgetRepaintManager::markNeedsFlush(), needsFlush, QWidget::parentWidget(), Q_ASSERT, qEnvironmentVariableIntValue(), rect, textureChildSeen, QRegion::translated(), QRect::translated(), QWidget::updatesEnabled, and QWidget::window().
Referenced by invalidateBackingStore_resizeHelper(), and setGeometry_sys().
|
inline |
Definition at line 535 of file qwidget_p.h.
Definition at line 4700 of file qwidget.cpp.
References Qt::AA_UseStyleSheetPropagationInWidgetStyles, extra, QApplication::font(), QWidget::parentWidget(), QT_CONFIG, QFont::setResolveMask(), QCoreApplication::testAttribute(), Qt::WA_StyleSheet, and Qt::WA_WindowPropagation.
Referenced by resolveFont().
QPalette QWidgetPrivate::naturalWidgetPalette | ( | QPalette::ResolveMask | inheritedMask | ) | const |
Returns the palette that the widget w inherits from its ancestors and QApplication::palette. inheritedMask is the combination of the widget's ancestors palette request masks (i.e., which attributes from the parent widget's palette are implicitly imposed on this widget by the user). Note that this font does not take into account the palette set on w itself.
Definition at line 4553 of file qwidget.cpp.
References Qt::AA_UseStyleSheetPropagationInWidgetStyles, extra, QGuiApplication::palette(), QApplication::palette(), QWidget::parentWidget(), QT_CONFIG, QPalette::setResolveMask(), QCoreApplication::testAttribute(), Qt::WA_StyleSheet, and Qt::WA_WindowPropagation.
Referenced by resolvePalette().
QWidget * QWidgetPrivate::nextPrevElementInFocusChain | ( | FocusDirection | direction | ) | const |
direction,irrespective | of focus proxies or widgets with Qt::NoFocus. |
Definition at line 13285 of file qwidget.cpp.
References direction, FOCUS_NEXT, FOCUS_PREV, and Next.
Definition at line 1704 of file qwidget.cpp.
References QList< T >::at(), QObjectData::children, QWidgetData::crect, data, i, QRegion::intersects(), QWidget::isVisible(), QWidget::isWindow(), QWidget::mask(), qobject_cast< QWidget * >(), qRectIntersects(), rect, QList< T >::size(), QRect::topLeft(), QRegion::translate(), and QRegion::translated().
void QWidgetPrivate::paintBackground | ( | QPainter * | painter, |
const QRegion & | rgn, | ||
DrawWidgetFlags | flags = DrawAsRoot ) const |
Definition at line 2261 of file qwidget.cpp.
References QPainter::compositionMode(), QPainter::CompositionMode_Source, DontSetCompositionMode, DrawAsRoot, fillRegion(), QStyleOption::initFrom(), opt, painter, QStyle::PE_Widget, QPainter::setClipRegion(), QPainter::setCompositionMode(), updateBrushOrigin(), Qt::WA_StyledBackground, and QPalette::Window.
Referenced by drawWidget().
Definition at line 1764 of file qwidget.cpp.
References clipRect(), clipToEffectiveMask(), createExtra(), DrawAsRoot, DrawPaintOnScreen, drawWidget(), engine, extra, QPaintEngine::OpenGL, QPaintEngine::OpenGL2, Q_UNLIKELY, qWarning, shouldDiscardSyncRequest(), usesDoubleBufferedGLContext, and Qt::WA_StaticContents.
Referenced by syncBackingStore(), and syncBackingStore().
void QWidgetPrivate::paintSiblingsRecursive | ( | QPaintDevice * | pdev, |
const QObjectList & | children, | ||
int | index, | ||
const QRegion & | rgn, | ||
const QPoint & | offset, | ||
DrawWidgetFlags | flags, | ||
QPainter * | sharedPainter, | ||
QWidgetRepaintManager * | repaintManager ) |
Definition at line 5714 of file qwidget.cpp.
References QRegion::boundingRect(), boundingRect(), DontDrawNativeChildren, DontDrawOpaqueChildren, drawWidget(), effectiveRectFor(), extra, graphicsEffect, isOpaque, paintSiblingsRecursive(), qobject_cast< QWidget * >(), qRectIntersects(), QT_CONFIG, sharedPainter(), and QRect::translate().
Referenced by drawWidget(), and paintSiblingsRecursive().
Definition at line 451 of file qwidget_p.h.
References bypassGraphicsProxyWidget(), Q_UNUSED, and widget.
|
inline |
Definition at line 886 of file qwidget_p.h.
References extra, and Qt::WA_MouseNoMask.
Referenced by childAt_helper().
QRegion QWidgetPrivate::prepareToRender | ( | const QRegion & | region, |
QWidget::RenderFlags | renderFlags ) |
Definition at line 5323 of file qwidget.cpp.
References QLayout::activate(), QWidget::adjustSize(), QWidget::ensurePolished(), extra, i, QWidget::IgnoreMask, QLayout::invalidate(), isAboutToShow(), QRegion::isEmpty(), QWidget::isHidden(), isVisible(), QWidget::isWindow(), QWidget::layout(), QWidget::parentWidget(), QWidget::setAttribute(), QWidget::testAttribute(), void, Qt::WA_Resized, Qt::WA_WState_Hidden, widget, and QWidget::window().
Referenced by render().
void QWidgetPrivate::propagatePaletteChange | ( | ) |
Propagate this widget's palette to all children, except style sheet widgets, and windows that don't enable window propagation (palettes don't normally propagate to windows).
Definition at line 1829 of file qwidget.cpp.
References Qt::AA_UseStyleSheetPropagationInWidgetStyles, QList< T >::at(), QObjectData::children, directPaletteResolveMask, extra, i, inheritedPaletteResolveMask, QGraphicsWidget::palette, QEvent::PaletteChange, qobject_cast< QWidget * >(), QPalette::resolveMask(), resolvePalette(), QCoreApplication::sendEvent(), QList< T >::size(), QCoreApplication::testAttribute(), Qt::WA_StyleSheet, and Qt::WA_WindowPropagation.
Referenced by setPalette_helper().
void QWidgetPrivate::raise_sys | ( | ) |
Definition at line 11926 of file qwidget.cpp.
References effectiveRectFor(), QWidget::parentWidget(), renderToTexture, setDirtyOpaqueRegion(), and Qt::WA_NativeWindow.
|
inline |
Definition at line 510 of file qwidget_p.h.
Referenced by render().
bool QWidgetPrivate::removeFromFocusChain | ( | FocusChainRemovalRules | rules = FocusChainRemovalRules(), |
FocusDirection | direction = FocusDirection::Next ) |
Removes a widget from the focus chain, respecting the flags set in
rules. | \list
|
direction. |
|
true
if the widget has been removed, otherwise false
. Definition at line 13302 of file qwidget.cpp.
References AssertConsistency, direction, EnsureFocusOut, FOCUS_NEXT, FOCUS_PREV, initFocusChain(), isFocusChainConsistent(), isInFocusChain(), Next, qCDebug, and qFatal.
Referenced by insertIntoFocusChain().
void QWidgetPrivate::render | ( | QPaintDevice * | target, |
const QPoint & | targetOffset, | ||
const QRegion & | sourceRegion, | ||
QWidget::RenderFlags | renderFlags ) |
Definition at line 5642 of file qwidget.cpp.
References DontSetCompositionMode, DontSubtractOpaqueChildren, DrawAsRoot, QWidget::DrawChildren, DrawInvisible, DrawPaintOnScreen, DrawRecursive, drawWidget(), QWidget::DrawWindowBackground, extra, prepareToRender(), Q_UNLIKELY, qWarning, redirected(), QWidget::redirected(), setSharedPainter(), sharedPainter(), QRegion::translated(), and QInternal::Widget.
void QWidgetPrivate::render_helper | ( | QPainter * | painter, |
const QPoint & | targetOffset, | ||
const QRegion & | sourceRegion, | ||
QWidget::RenderFlags | renderFlags ) |
Definition at line 5381 of file qwidget.cpp.
References QPainter::device(), device, QPaintDevice::devicePixelRatio(), deviceRect, QPainter::drawPixmap(), QWidget::DrawWindowBackground, QTransform::fromTranslate(), isOpaque, QTransform::isScaling(), painter, pixmap, Q_ASSERT, rect, QPainter::renderHints(), QPainter::setRenderHints(), QPainter::setTransform(), QRect::size(), QPainter::SmoothPixmapTransform, QRect::topLeft(), QTransform::translate(), Qt::transparent, QPainter::worldTransform(), QRect::x(), and QRect::y().
void QWidgetPrivate::repaint | ( | T | t | ) |
Definition at line 11137 of file qwidget.cpp.
References QWidgetRepaintManager::UpdateNow, and QTLWExtra::window.
void QWidgetPrivate::reparentFocusChildren | ( | FocusDirection | direction | ) |
Reads QWidget children, which are not part of a focus chain yet. Inserts them into the focus chain before or after the widget, depending on
direction | and in the order of their creation. This is used, when QWidget::setParent() causes a widget to change toplevel windows. |
Definition at line 13348 of file qwidget.cpp.
References child, QObjectData::children, direction, Qt::FindDirectChildrenOnly, QWidget::focusPolicy, Next, QWidget::nextInFocusChain(), Qt::NoFocus, QWidget::previousInFocusChain(), widget, and QWidget::window().
Referenced by reparentFocusWidgets().
Moves the relevant subwidgets of this widget from the oldtlw's tab chain to that of the new parent, if there's anything to move and we're really moving
This function is called from QWidget::reparent() after the widget has been reparented.
Definition at line 7070 of file qwidget.cpp.
References QWidget::clearFocus(), focus_child, insertIntoFocusChain(), Next, Previous, and reparentFocusChildren().
Definition at line 10974 of file qwidget.cpp.
References child, QObjectData::children, and get().
Referenced by reparentWidgetWindows(), and setParent_sys().
void QWidgetPrivate::reparentWidgetWindows | ( | QWidget * | parentWithWindow, |
Qt::WindowFlags | windowFlags = {} ) |
Definition at line 10937 of file qwidget.cpp.
References Q_ASSERT, qCDebug, reparentWidgetWindowChildren(), Qt::Window, window(), QWidget::window(), QWidget::windowHandle(), and windowHandle().
Referenced by setParent_sys().
|
inlinevirtual |
Reimplemented in QOpenGLWidgetPrivate.
Definition at line 630 of file qwidget_p.h.
void QWidgetPrivate::resolveFont | ( | ) |
Determine which font is implicitly imposed on this widget by its ancestors and QApplication::font, resolve this against its own font (attributes from the implicit font are copied over). Then propagate this font to this widget's children.
Definition at line 4761 of file qwidget.cpp.
References inheritedFontResolveMask, localFont(), naturalWidgetFont(), QFont::resolve(), and setFont_helper().
Referenced by QGraphicsProxyWidget::event(), and updateFont().
void QWidgetPrivate::resolveLayoutDirection | ( | ) |
Definition at line 4853 of file qwidget.cpp.
References QGuiApplication::layoutDirection, setLayoutDirection_helper(), and Qt::WA_SetLayoutDirection.
Referenced by init().
void QWidgetPrivate::resolveLocale | ( | ) |
Definition at line 5925 of file qwidget.cpp.
References QObjectData::parent, setLocale_helper(), Qt::WA_SetLocale, and Qt::WA_WindowPropagation.
void QWidgetPrivate::resolvePalette | ( | ) |
Determine which palette is inherited from this widget's ancestors and QApplication::palette, resolve this against this widget's palette (attributes from the inherited palette are copied over this widget's palette). Then propagate this palette to this widget's children.
Definition at line 4597 of file qwidget.cpp.
References inheritedPaletteResolveMask, naturalWidgetPalette(), QPalette::resolve(), and setPalette_helper().
Referenced by QGraphicsProxyWidget::event(), and propagatePaletteChange().
|
inlinevirtual |
Reimplemented in QOpenGLWidgetPrivate.
Definition at line 632 of file qwidget_p.h.
Referenced by sendPaintEvent().
|
inline |
Definition at line 517 of file qwidget_p.h.
Referenced by drawWidget().
QRhi * QWidgetPrivate::rhi | ( | ) | const |
Definition at line 1030 of file qwidget.cpp.
References maybeRepaintManager().
Referenced by QRhiWidgetPrivate::ensureRhi(), QOpenGLWidgetPrivate::ensureRhiDependentResources(), QOpenGLWidgetPrivate::initialize(), and QQuickWidgetPrivate::initializeWithRhi().
|
inlinevirtual |
Reimplemented in QOpenGLWidgetPrivate, QRhiWidgetPrivate, and QQuickWidgetPrivate.
Definition at line 590 of file qwidget_p.h.
Referenced by create().
QMargins QWidgetPrivate::safeAreaMargins | ( | ) | const |
Definition at line 7669 of file qwidget.cpp.
References QMargins::bottom(), QLayout::geometry(), QLayout::indexOf(), QMargins::isNull(), QRect::isNull(), QWidget::layout(), layout, QMargins::left(), QLayout::parentWidget(), QWidget::parentWidget(), qMax(), qWarning, QMargins::right(), QPlatformWindow::safeAreaMargins(), safeAreaMargins(), QWidget::testAttribute(), QMargins::top(), Qt::WA_LayoutOnEntireRect, and QWidget::window().
Referenced by safeAreaMargins().
|
inlinestatic |
Definition at line 479 of file qwidget_p.h.
References screen, QWidget::screen(), view, QScreen::virtualSiblingAt(), and widget.
Definition at line 469 of file qwidget_p.h.
References widget.
Referenced by QComboBoxPrivate::popupGeometry(), and QMenuPrivate::popupGeometry().
|
inlinestatic |
Definition at line 493 of file qwidget_p.h.
References QScreen::geometry, screen, and widget.
void QWidgetPrivate::scroll_sys | ( | int | dx, |
int | dy ) |
Definition at line 11027 of file qwidget.cpp.
References scrollChildren(), and scrollRect().
Definition at line 11068 of file qwidget.cpp.
References scrollRect().
void QWidgetPrivate::scrollChildren | ( | int | dx, |
int | dy ) |
Definition at line 197 of file qwidget.cpp.
References QList< T >::at(), i, qobject_cast< QWidget * >(), QCoreApplication::sendEvent(), QList< T >::size(), and Qt::WA_WState_Created.
Referenced by scroll_sys().
Definition at line 459 of file qwidgetrepaintmanager.cpp.
References QWidgetRepaintManager::bltRect(), clipRect(), dirty, get(), inDirtyList, QRegion::intersected(), invalidateBackingStore(), isOpaque, isOverlapped(), isScrolled, QRect::isValid(), QWidgetRepaintManager::markDirty(), QWidgetRepaintManager::markNeedsFlush(), qEnvironmentVariableIntValue(), rect, scrollRect(), subtractOpaqueSiblings(), QRegion::translate(), QRect::translated(), Qt::WA_WState_InPaintEvent, and QWidget::window().
Referenced by QTabBarPrivate::layoutTabs(), QTabBarPrivate::makeVisible(), scroll_sys(), scroll_sys(), scrollRect(), and QTabBarPrivate::scrollTabs().
Definition at line 12360 of file qwidget.cpp.
References QList< T >::at(), beginCompose(), QObjectData::children, endCompose(), get(), i, qobject_cast< QWidget * >(), sendComposeStatus(), QList< T >::size(), and textureChildSeen.
Referenced by sendComposeStatus().
Definition at line 5632 of file qwidget.cpp.
References renderToTexture, and resolveSamples().
Referenced by drawWidget().
void QWidgetPrivate::sendPendingMoveAndResizeEvents | ( | bool | recursive = false, |
bool | disableUpdates = false ) |
Definition at line 7909 of file qwidget.cpp.
References QList< T >::at(), child, QObjectData::children, i, QCoreApplication::sendEvent(), QList< T >::size(), Qt::WA_PendingMoveEvent, Qt::WA_PendingResizeEvent, and Qt::WA_UpdatesDisabled.
Referenced by activateChildLayoutsRecursively(), and show_helper().
void QWidgetPrivate::setConstraints_sys | ( | ) |
Definition at line 3915 of file qwidget.cpp.
References extra, fixPosIncludesFrame(), qt_window_private(), win, and QWidget::windowHandle().
Definition at line 4976 of file qwidget.cpp.
References cursor, Q_UNUSED, and qt_qpa_set_cursor().
void QWidgetPrivate::setDirtyOpaqueRegion | ( | ) |
Definition at line 1954 of file qwidget.cpp.
References dirtyOpaqueChildren, QObjectData::parent, and setDirtyOpaqueRegion().
Referenced by lower_sys(), raise_sys(), setDirtyOpaqueRegion(), stackUnder_sys(), and updateIsOpaque().
void QWidgetPrivate::setEnabled_helper | ( | bool | enable | ) |
Definition at line 3365 of file qwidget.cpp.
References QList< T >::at(), QObjectData::children, effectiveFocusWidget(), QEvent::EnabledChange, i, Qt::ImEnabled, QGuiApplication::inputMethod(), qobject_cast< QWidget * >(), qt_qpa_set_cursor(), QCoreApplication::sendEvent(), QList< T >::size(), QWidget::testAttribute(), updateSystemBackground(), Qt::WA_Disabled, Qt::WA_ForceDisabled, Qt::WA_InputMethodEnabled, and Qt::WA_SetCursor.
void QWidgetPrivate::setFocus_sys | ( | ) |
Definition at line 6615 of file qwidget.cpp.
References Qt::AA_PluginApplication, Qt::ApplicationActive, QGuiApplication::applicationState(), extra, QGuiApplication::focusWindow(), isEmbedded(), nativeWindow(), Qt::Popup, QCoreApplication::testAttribute(), and Qt::WA_WState_Created.
Definition at line 276 of file qwidget_p.h.
References font, and QFont::resolveMask().
Referenced by resolveFont().
void QWidgetPrivate::setGeometry_sys | ( | int | x, |
int | y, | ||
int | w, | ||
int | h, | ||
bool | isMove ) |
Definition at line 7208 of file qwidget.cpp.
References extra, QPlatformIntegration::hasCapability(), hide_sys(), invalidateBackingStore_resizeHelper(), moveRect(), QPlatformIntegration::NonFullScreenWindows, QTLWExtra::normalGeometry, QGuiApplicationPrivate::platformIntegration(), qMax(), qMin(), renderToTexture, QWidget::resize(), QCoreApplication::sendEvent(), QWidget::setGeometry(), show_sys(), topData(), Qt::WA_DontShowOnScreen, Qt::WA_OutsideWSRange, Qt::WA_PendingMoveEvent, Qt::WA_PendingResizeEvent, win, Qt::WindowFullScreen, QWidget::windowHandle(), QPoint::x(), and QPoint::y().
void QWidgetPrivate::setLayoutDirection_helper | ( | Qt::LayoutDirection | direction | ) |
Definition at line 4835 of file qwidget.cpp.
References QList< T >::at(), QObjectData::children, direction, i, QList< T >::isEmpty(), QEvent::LayoutDirectionChange, qobject_cast< QWidget * >(), Qt::RightToLeft, QCoreApplication::sendEvent(), QList< T >::size(), Qt::WA_RightToLeft, and Qt::WA_SetLayoutDirection.
Referenced by resolveLayoutDirection().
void QWidgetPrivate::setLayoutItemMargins | ( | int | left, |
int | top, | ||
int | right, | ||
int | bottom ) |
Definition at line 12307 of file qwidget.cpp.
References bottomLayoutItemMargin, leftLayoutItemMargin, rightLayoutItemMargin, and topLayoutItemMargin.
Referenced by QGroupBoxPrivate::calculateFrame(), QCheckBoxPrivate::init(), QComboBoxPrivate::init(), QFramePrivate::init(), QLabelPrivate::init(), QRadioButtonPrivate::init(), QSpinBoxPrivate::init(), QToolButtonPrivate::init(), QDateTimeEditPrivate::init(), QDialogButtonBoxPrivate::initLayout(), QProgressBarPrivate::resetLayoutItemMargins(), QPushButtonPrivate::resetLayoutItemMargins(), QSliderPrivate::resetLayoutItemMargins(), and QFramePrivate::updateFrameWidth().
void QWidgetPrivate::setLayoutItemMargins | ( | QStyle::SubElement | element, |
const QStyleOption * | opt = nullptr ) |
Definition at line 12323 of file qwidget.cpp.
References QRect::bottom(), bottomLayoutItemMargin, QStyleOption::initFrom(), QRect::left(), leftLayoutItemMargin, opt, QStyleOption::rect, QRect::right(), rightLayoutItemMargin, QRect::top(), and topLayoutItemMargin.
Definition at line 5886 of file qwidget.cpp.
References QList< T >::at(), QObjectData::children, forceUpdate(), i, QList< T >::isEmpty(), locale, QEvent::LocaleChange, qobject_cast< QWidget * >(), QCoreApplication::sendEvent(), QList< T >::size(), Qt::WA_SetLocale, and Qt::WA_WindowPropagation.
Referenced by resolveLocale().
Definition at line 13065 of file qwidget.cpp.
References window().
Referenced by create().
bool QWidgetPrivate::setMaximumSize_helper | ( | int & | maxw, |
int & | maxh ) |
Definition at line 3970 of file qwidget.cpp.
References createExtra(), extra, Qt::Horizontal, Q_UNLIKELY, qMax(), qWarning, QWIDGETSIZE_MAX, and Qt::Vertical.
bool QWidgetPrivate::setMinimumSize_helper | ( | int & | minw, |
int & | minh ) |
Definition at line 3882 of file qwidget.cpp.
References createExtra(), extra, Qt::Horizontal, Q_UNLIKELY, qMax(), qWarning, QWIDGETSIZE_MAX, and Qt::Vertical.
void QWidgetPrivate::setModal_sys | ( | ) |
Definition at line 2807 of file qwidget.cpp.
Definition at line 13144 of file qwidget.cpp.
References Q_UNUSED, Qt::WA_X11NetWmWindowTypeCombo, Qt::WA_X11NetWmWindowTypeDesktop, Qt::WA_X11NetWmWindowTypeDialog, Qt::WA_X11NetWmWindowTypeDND, Qt::WA_X11NetWmWindowTypeDock, Qt::WA_X11NetWmWindowTypeDropDownMenu, Qt::WA_X11NetWmWindowTypeMenu, Qt::WA_X11NetWmWindowTypeNotification, Qt::WA_X11NetWmWindowTypePopupMenu, Qt::WA_X11NetWmWindowTypeSplash, Qt::WA_X11NetWmWindowTypeToolBar, Qt::WA_X11NetWmWindowTypeToolTip, and Qt::WA_X11NetWmWindowTypeUtility.
Referenced by create().
void QWidgetPrivate::setOpaque | ( | bool | opaque | ) |
Definition at line 2183 of file qwidget.cpp.
References isOpaque, and updateIsTranslucent().
Referenced by init(), and updateIsOpaque().
Definition at line 4604 of file qwidget.cpp.
References palette, propagatePaletteChange(), updateIsOpaque(), and updateSystemBackground().
Referenced by resolvePalette().
Definition at line 10839 of file qwidget.cpp.
References adjustFlags(), child, closestParentWidgetWithWindowHandle(), Qt::Desktop, extra, QTLWExtra::initialScreen, isExplicitlyHidden(), QObjectData::parent, qCWarning, reparentWidgetWindowChildren(), reparentWidgetWindows(), QObjectPrivate::setParent_helper(), setWinId(), topData(), QWindowContainer::toplevelAboutToBeDestroyed(), Qt::WA_NativeWindow, Qt::WA_WState_Created, Qt::WA_WState_ExplicitShowHide, Qt::WA_WState_Hidden, Qt::WA_WState_Visible, and Qt::Window.
|
inline |
Definition at line 503 of file qwidget_p.h.
References Q_ASSERT, and Qt::WA_WState_InPaintEvent.
Referenced by drawWidget().
|
inline |
Definition at line 610 of file qwidget_p.h.
Referenced by QQuickWidgetPrivate::init().
bool QWidgetPrivate::setScreen | ( | QScreen * | screen | ) |
Ensures that the widget's QWindow is set to be on the given screen. Returns true if the screen was changed.
Definition at line 2420 of file qwidget.cpp.
References QTLWExtra::initialScreen, screen, topData(), and windowHandle().
Referenced by QMenuPrivate::popup(), and setScreenForPoint().
bool QWidgetPrivate::setScreenForPoint | ( | const QPoint & | pos | ) |
Ensures that the widget is set on the screen point is on. This is handy getting a correct size hint before a resize in e.g QMenu and QToolTip. Returns if the screen was changed.
Definition at line 2405 of file qwidget.cpp.
References pos, QGuiApplication::screenAt(), and setScreen().
Referenced by QMenuPrivate::popup().
Definition at line 879 of file qwidget_p.h.
References painter, and QTLWExtra::window.
Referenced by render().
Definition at line 2649 of file qwidget.cpp.
References QObjectData::children, createExtra(), Qt::Desktop, extra, i, polished, proxy, qobject_cast< QWidget * >(), qt_styleSheet(), QCoreApplication::sendEvent(), and QEvent::StyleChange.
Referenced by inheritStyle().
void QWidgetPrivate::setSystemClip | ( | QPaintEngine * | paintEngine, |
qreal | devicePixelRatio, | ||
const QRegion & | region ) |
Definition at line 1926 of file qwidget.cpp.
References QTransform::scale().
Referenced by drawWidget().
|
inline |
Definition at line 611 of file qwidget_p.h.
References get(), and QWidget::parentWidget().
void QWidgetPrivate::setUpdatesEnabled_helper | ( | bool | enable | ) |
Definition at line 1800 of file qwidget.cpp.
References QList< T >::at(), QObjectData::children, i, qobject_cast< QWidget * >(), QList< T >::size(), Qt::WA_ForceUpdatesDisabled, and Qt::WA_UpdatesDisabled.
void QWidgetPrivate::setVisible | ( | bool | visible | ) |
Definition at line 8267 of file qwidget.cpp.
References QLayout::activate(), QWidget::create(), QApplicationPrivate::hidden_focus_widget, hide_helper(), QEvent::HideToParent, layout, QEvent::LayoutRequest, QObjectData::parent, QWidget::parentWidget(), QCoreApplication::postEvent(), qApp, qCDebug, QCoreApplication::sendEvent(), show_helper(), QEvent::ShowToParent, updateGeometry_helper(), Qt::WA_KeyboardFocusChange, Qt::WA_Resized, Qt::WA_WState_Created, and Qt::WA_WState_Hidden.
Referenced by QMenuPrivate::ScrollerTearOffItem::updateScrollerRects().
Definition at line 13117 of file qwidget.cpp.
References QObject::isWidgetType(), Q_ASSERT, QWidget::setParent(), and widget.
Referenced by QApplicationPrivate::initialize().
Definition at line 6259 of file qwidget.cpp.
References extra, fileName, Q_UNUSED, setWindowFilePath_sys(), and setWindowTitle_helper().
Definition at line 6275 of file qwidget.cpp.
References window().
Referenced by setWindowFilePath_helper().
|
virtual |
Implemented in QWidgetPrivate so that QMdiSubWindowPrivate can reimplement it.
Reimplemented in QMdiSubWindowPrivate.
Definition at line 10524 of file qwidget.cpp.
References adjustQuitOnCloseAttribute(), Qt::WA_Moved, and Qt::Window.
Referenced by QMdiSubWindowPrivate::setWindowFlags().
void QWidgetPrivate::setWindowIcon_helper | ( | ) |
Definition at line 6144 of file qwidget.cpp.
References QList< T >::at(), QObjectData::children, i, qobject_cast< QWidget * >(), QCoreApplication::sendEvent(), QList< T >::size(), and QEvent::WindowIconChange.
void QWidgetPrivate::setWindowIcon_sys | ( | ) |
Definition at line 6189 of file qwidget.cpp.
References window().
Definition at line 6044 of file qwidget.cpp.
References qt_setWindowTitle_helperHelper(), setWindowIconText_sys(), title, and Qt::WA_WState_Created.
Referenced by setWindowModified_helper().
Definition at line 6051 of file qwidget.cpp.
References Q_UNUSED, and window().
Referenced by setWindowIconText_helper().
void QWidgetPrivate::setWindowModified_helper | ( | ) |
Definition at line 11592 of file qwidget.cpp.
References Q_UNLIKELY, qWarning, setWindowIconText_helper(), QPlatformWindow::setWindowModified(), setWindowTitle_helper(), Qt::WA_WindowModified, and window().
Referenced by create().
Definition at line 11545 of file qwidget.cpp.
Definition at line 6026 of file qwidget.cpp.
References qt_setWindowTitle_helperHelper(), setWindowTitle_sys(), title, and Qt::WA_WState_Created.
Referenced by setWindowFilePath_helper(), and setWindowModified_helper().
Definition at line 6033 of file qwidget.cpp.
References window().
Referenced by setWindowTitle_helper().
void QWidgetPrivate::setWinId | ( | WId | id | ) |
Definition at line 1579 of file qwidget.cpp.
References mapper, QCoreApplication::sendEvent(), and QEvent::WinIdChange.
Referenced by create(), and setParent_sys().
void QWidgetPrivate::setWSGeometry | ( | ) |
Definition at line 219 of file qwidget.cpp.
References window().
|
inline |
Definition at line 872 of file qwidget_p.h.
References QTLWExtra::window.
Referenced by drawWidget(), paintSiblingsRecursive(), and render().
bool QWidgetPrivate::shouldDiscardSyncRequest | ( | ) | const |
Definition at line 662 of file qwidgetrepaintmanager.cpp.
References maybeTopData(), and Qt::WA_Mapped.
Referenced by paintOnScreen().
bool QWidgetPrivate::shouldPaintOnScreen | ( | ) | const |
Definition at line 2129 of file qwidget.cpp.
References Qt::WA_PaintOnScreen.
Referenced by drawWidget(), syncBackingStore(), and syncBackingStore().
void QWidgetPrivate::show_helper | ( | ) |
Definition at line 7971 of file qwidget.cpp.
References QApplication::activePopupWidget(), bypassGraphicsProxyWidget(), close(), QApplicationPrivate::hidden_focus_widget, isEmbedded(), QObjectData::isWindow, Qt::OtherFocusReason, Qt::Popup, QCoreApplication::processEvents(), Q_UNUSED, qApp, QCoreApplication::sendEvent(), sendPendingMoveAndResizeEvents(), show_sys(), showChildren(), Qt::SplashScreen, Qt::Tool, Qt::ToolTip, Qt::WA_KeyboardFocusChange, and Qt::WA_WState_Visible.
Referenced by setVisible(), and show_recursive().
void QWidgetPrivate::show_recursive | ( | ) |
Makes the widget visible in the isVisible() meaning of the word. It is only called for toplevels or widgets with visible parents.
Definition at line 7891 of file qwidget.cpp.
References QLayout::activate(), createRecursively(), layout, show_helper(), and Qt::WA_WState_Created.
void QWidgetPrivate::show_sys | ( | ) |
Definition at line 8055 of file qwidget.cpp.
References extra, fixPosIncludesFrame(), invalidateBackingStore(), Qt::NonModal, QGuiApplicationPrivate::platformIntegration(), QCoreApplication::postEvent(), QT_CONFIG, qt_qpa_set_cursor(), renderToTexture, QGuiApplicationPrivate::showModalWindow(), Qt::WA_DontShowOnScreen, Qt::WA_Mapped, Qt::WA_Moved, Qt::WA_NativeWindow, Qt::WA_OutsideWSRange, window(), windowHandle(), and QPlatformIntegration::WindowManagement.
Referenced by setGeometry_sys(), and show_helper().
void QWidgetPrivate::showChildren | ( | bool | spontaneous | ) |
Definition at line 8390 of file qwidget.cpp.
References QObjectData::children, i, QWidget::isWindow(), qCDebug, qobject_cast< QWidget * >(), QWidget::setAttribute(), QWidget::setVisible(), QWidget::testAttribute(), Qt::WA_Mapped, Qt::WA_WState_ExplicitShowHide, Qt::WA_WState_Hidden, widget, and QWidget::windowHandle().
Referenced by show_helper().
Definition at line 12023 of file qwidget.cpp.
References effectiveRectFor(), QWidget::parentWidget(), and setDirtyOpaqueRegion().
bool QWidgetPrivate::stealKeyboardGrab | ( | bool | grab | ) |
Definition at line 12792 of file qwidget.cpp.
References grabberWindow(), and window().
bool QWidgetPrivate::stealMouseGrab | ( | bool | grab | ) |
Definition at line 12743 of file qwidget.cpp.
References grabberWindow(), and window().
Definition at line 2007 of file qwidget.cpp.
References QObjectData::children, clipRect(), getOpaqueChildren(), QList< T >::isEmpty(), and QRect::isEmpty().
Referenced by drawWidget().
void QWidgetPrivate::subtractOpaqueSiblings | ( | QRegion & | source, |
bool * | hasDirtySiblingsAbove = nullptr, | ||
bool | alsoNonOpaque = false ) const |
Definition at line 2018 of file qwidget.cpp.
References QList< T >::at(), QObjectData::children, QObject::children(), QWidgetData::crect, data, i, QListSpecialMethodsBase< T >::indexOf(), QList< T >::isEmpty(), QWidget::isVisible(), QWidget::isWindow(), QWidget::mask(), qEnvironmentVariableIntValue(), qobject_cast< QWidget * >(), qRectIntersects(), QList< T >::size(), QRect::topLeft(), QRegion::translate(), QRegion::translated(), and QRect::translated().
Referenced by scrollRect(), and QWidgetRepaintManager::staticContents().
void QWidgetPrivate::syncBackingStore | ( | ) |
Definition at line 1745 of file qwidget.cpp.
References dirty, maybeRepaintManager(), paintOnScreen(), and shouldPaintOnScreen().
Definition at line 1755 of file qwidget.cpp.
References maybeRepaintManager(), paintOnScreen(), and shouldPaintOnScreen().
|
static |
Removes the part from the focus chain starting with
from | and ending with |
to,in |
param direction.
Definition at line 13523 of file qwidget.cpp.
References direction, FOCUS_NEXT, FOCUS_PREV, focusPath(), and qCDebug.
Referenced by QWidget::setTabOrder().
|
inlinevirtual |
Reimplemented in QOpenGLWidgetPrivate, QRhiWidgetPrivate, and QQuickWidgetPrivate.
Definition at line 598 of file qwidget_p.h.
Referenced by findTextureWidgetsRecursively().
|
inlinevirtual |
Reimplemented in QOpenGLWidgetPrivate, QRhiWidgetPrivate, and QQuickWidgetPrivate.
Definition at line 599 of file qwidget_p.h.
References QPlatformTextureList::StacksOnTop, and Qt::WA_AlwaysStackOnTop.
Referenced by findTextureWidgetsRecursively(), QOpenGLWidgetPrivate::textureListFlags(), QRhiWidgetPrivate::textureListFlags(), and QQuickWidgetPrivate::textureListFlags().
|
inlinevirtual |
Reimplemented in QOpenGLWidgetPrivate.
Definition at line 637 of file qwidget_p.h.
|
inline |
Definition at line 861 of file qwidget_p.h.
References createTLExtra(), extra, and get().
Referenced by create(), QMenuPrivate::popup(), setGeometry_sys(), setParent_sys(), and setScreen().
void QWidgetPrivate::unsetCursor_sys | ( | ) |
Definition at line 4996 of file qwidget.cpp.
References qt_qpa_set_cursor().
void QWidgetPrivate::update | ( | T | t | ) |
Definition at line 11202 of file qwidget.cpp.
References QCoreApplication::postEvent(), renderToTexture, renderToTextureReallyDirty, Qt::WA_WState_InPaintEvent, and QTLWExtra::window.
Referenced by QSplitterPrivate::recalc(), and QComboBox::setFrame().
Definition at line 2244 of file qwidget.cpp.
References Qt::NoBrush, painter, QObjectData::parent, priv(), scrollArea, QPainter::setBrushOrigin(), and Qt::SolidPattern.
Referenced by paintBackground().
void QWidgetPrivate::updateContentsRect | ( | ) |
Definition at line 7623 of file qwidget.cpp.
References QEvent::ContentsRectChange, layout, QCoreApplication::sendEvent(), QLayout::update(), and Qt::WA_PendingResizeEvent.
void QWidgetPrivate::updateFocusChild | ( | ) |
Definition at line 6635 of file qwidget.cpp.
References emit, extra, QWidget::isWindow(), nullptr, and QTLWExtra::window.
Assign font to this widget, and propagate it to all children, except style sheet widgets (handled differently) and windows that don't enable window propagation. implicitMask is the union of all ancestor widgets' font request masks, and determines which attributes from this widget's font should propagate.
Definition at line 4777 of file qwidget.cpp.
References Qt::AA_UseStyleSheetPropagationInWidgetStyles, QList< T >::at(), QObjectData::children, directFontResolveMask, extra, font, QGraphicsWidget::font, QEvent::FontChange, i, inheritedFontResolveMask, qobject_cast< QWidget * >(), qt_styleSheet(), resolveFont(), QFont::resolveMask(), QCoreApplication::sendEvent(), QList< T >::size(), QCoreApplication::testAttribute(), Qt::WA_StyleSheet, and Qt::WA_WindowPropagation.
void QWidgetPrivate::updateFrameStrut | ( | ) |
Definition at line 12089 of file qwidget.cpp.
References QMargins::bottom(), QMargins::isNull(), QMargins::left(), maybeTopData(), QMargins::right(), and QMargins::top().
Referenced by fixPosIncludesFrame(), and frameStrut().
void QWidgetPrivate::updateGeometry_helper | ( | bool | forceUpdate | ) |
Definition at line 10445 of file qwidget.cpp.
References extra, forceUpdate(), QEvent::LayoutRequest, QObjectData::parent, QCoreApplication::postEvent(), QSizePolicy::retainSizeWhenHidden(), retainSizeWhenHiddenChanged, size_policy, and widgetItem.
Referenced by setVisible().
void QWidgetPrivate::updateIsOpaque | ( | ) |
Definition at line 2144 of file qwidget.cpp.
References QPalette::brush(), graphicsEffect, Qt::NoBrush, setDirtyOpaqueRegion(), setOpaque(), Qt::WA_NoSystemBackground, Qt::WA_OpaquePaintEvent, Qt::WA_PaintOnScreen, and QPalette::Window.
Referenced by setPalette_helper().
void QWidgetPrivate::updateIsTranslucent | ( | ) |
Definition at line 2191 of file qwidget.cpp.
References Qt::WA_TranslucentBackground, and window().
Referenced by createTLSysExtra(), and setOpaque().
void QWidgetPrivate::updateSystemBackground | ( | ) |
Definition at line 4617 of file qwidget.cpp.
Referenced by setEnabled_helper(), and setPalette_helper().
Definition at line 226 of file qwidget.cpp.
References QEvent::FocusIn, QGuiApplication::focusObject(), Qt::ImInputItemClipRectangle, and QGuiApplication::inputMethod().
QWindow * QWidgetPrivate::windowHandle | ( | WindowHandleMode | mode = WindowHandleMode::Direct | ) | const |
Definition at line 1055 of file qwidget.cpp.
References Closest, Direct, maybeTopData(), TopLevel, window(), and windowHandle().
Referenced by _q_closestWindowHandle(), associatedScreen(), close(), hide_sys(), QDockWidgetPrivate::mouseMoveEvent(), QMenuPrivate::popup(), reparentWidgetWindows(), setScreen(), show_sys(), and windowHandle().
Definition at line 709 of file qwidget_p.h.
Referenced by QMenuBarPrivate::_q_actionHovered(), QMenuBarPrivate::_q_internalShortcutActivated(), QMenuPrivate::_q_platformMenuAboutToShow(), QMenuBarPrivate::actionAt(), QMenuBarPrivate::actionRect(), QMenuBarPrivate::calcActionRects(), QMenuBarPrivate::focusFirstAction(), QMenuBarPrivate::getNextAction(), QMenuPrivate::popup(), QFileDialogPrivate::restoreWidgetState(), QFileDialogPrivate::retranslateStrings(), QMenuPrivate::scrollMenu(), QMenuPrivate::scrollMenu(), QMenuPrivate::scrollMenu(), and QMenuBarPrivate::updateGeometries().
|
static |
Definition at line 662 of file qwidget_p.h.
Referenced by QApplication::~QApplication(), QWidget::~QWidget(), QApplication::allWidgets(), QWidgetExceptionCleaner::cleanup(), init(), QApplicationPrivate::initialize(), and QApplication::topLevelWidgets().
QPalette::ColorRole QWidgetPrivate::bg_role |
Definition at line 718 of file qwidget_p.h.
signed char QWidgetPrivate::bottomLayoutItemMargin |
Definition at line 700 of file qwidget_p.h.
Referenced by getLayoutItemMargins(), setLayoutItemMargins(), and setLayoutItemMargins().
short QWidgetPrivate::bottommargin |
Definition at line 696 of file qwidget_p.h.
Referenced by QMenuPrivate::mouseEventTaken(), QMenuPrivate::scrollMenu(), QLabelPrivate::sizeForWidth(), QLayout::totalHeightForWidth(), QLayout::totalMaximumSize(), QLayout::totalMinimumHeightForWidth(), QLayout::totalMinimumSize(), and QLayout::totalSizeHint().
uint QWidgetPrivate::childrenHiddenByWState |
Definition at line 734 of file qwidget_p.h.
uint QWidgetPrivate::childrenShownByExpose |
Definition at line 735 of file qwidget_p.h.
QWidgetData QWidgetPrivate::data |
Definition at line 704 of file qwidget_p.h.
Referenced by clipToEffectiveMask(), init(), QFileDialogPrivate::maxNameLength(), overlappedRegion(), and subtractOpaqueSiblings().
uint QWidgetPrivate::directFontResolveMask |
Definition at line 689 of file qwidget_p.h.
Referenced by localFont(), and updateFont().
decltype(std::declval<QPalette>().resolveMask()) QWidgetPrivate::directPaletteResolveMask |
Definition at line 691 of file qwidget_p.h.
Referenced by propagatePaletteChange().
QRegion QWidgetPrivate::dirty |
Definition at line 672 of file qwidget_p.h.
Referenced by invalidateBackingStore_resizeHelper(), scrollRect(), and syncBackingStore().
uint QWidgetPrivate::dirtyOpaqueChildren |
Definition at line 719 of file qwidget_p.h.
Referenced by getOpaqueChildren(), and setDirtyOpaqueRegion().
std::unique_ptr<QWExtra> QWidgetPrivate::extra |
Definition at line 647 of file qwidget_p.h.
Referenced by ~QWidgetPrivate(), QLayout::activate(), adjustedSize(), clipToEffectiveMask(), create(), createExtra(), createTLExtra(), createTLSysExtra(), deleteExtra(), deleteTLSysExtra(), extraData(), hide_sys(), inheritStyle(), invalidateBackingStore(), invalidateBackingStore_resizeHelper(), maybeTopData(), moveRect(), naturalWidgetFont(), naturalWidgetPalette(), paintOnScreen(), paintSiblingsRecursive(), pointInsideRectAndMask(), prepareToRender(), propagatePaletteChange(), qwindowcontainer_traverse(), render(), setConstraints_sys(), setFocus_sys(), setGeometry_sys(), setMaximumSize_helper(), setMinimumSize_helper(), setParent_sys(), setStyle_helper(), setWindowFilePath_helper(), show_sys(), QWidgetRepaintManager::staticContents(), topData(), updateFocusChild(), updateFont(), updateGeometry_helper(), and QWidget::windowIcon().
QPaintEngine* QWidgetPrivate::extraPaintEngine |
Definition at line 655 of file qwidget_p.h.
Referenced by init().
QPalette::ColorRole QWidgetPrivate::fg_role |
Definition at line 717 of file qwidget_p.h.
QWidget* QWidgetPrivate::focus_child |
Definition at line 650 of file qwidget_p.h.
Referenced by reparentFocusWidgets().
QWidget* QWidgetPrivate::focus_next |
Definition at line 648 of file qwidget_p.h.
QWidget* QWidgetPrivate::focus_prev |
Definition at line 649 of file qwidget_p.h.
QMap<Qt::GestureType, Qt::GestureFlags> QWidgetPrivate::gestureContext |
Definition at line 712 of file qwidget_p.h.
Referenced by QApplication::notify().
QGraphicsEffect* QWidgetPrivate::graphicsEffect |
Definition at line 657 of file qwidget_p.h.
Referenced by clipToEffectiveMask(), drawWidget(), invalidateBackingStore(), invalidateBackingStore_resizeHelper(), paintSiblingsRecursive(), and updateIsOpaque().
Qt::HANDLE QWidgetPrivate::hd |
Definition at line 703 of file qwidget_p.h.
uint QWidgetPrivate::high_attributes[4] |
Definition at line 716 of file qwidget_p.h.
Referenced by QWidgetPrivate().
Qt::InputMethodHints QWidgetPrivate::imHints |
Definition at line 664 of file qwidget_p.h.
uint QWidgetPrivate::inDirtyList |
Definition at line 722 of file qwidget_p.h.
Referenced by scrollRect().
uint QWidgetPrivate::inheritedFontResolveMask |
Definition at line 690 of file qwidget_p.h.
Referenced by QGraphicsProxyWidget::event(), resolveFont(), and updateFont().
QPalette::ResolveMask QWidgetPrivate::inheritedPaletteResolveMask |
Definition at line 692 of file qwidget_p.h.
Referenced by QGraphicsProxyWidget::event(), propagatePaletteChange(), and resolvePalette().
uint QWidgetPrivate::inheritsInputMethodHints |
Definition at line 730 of file qwidget_p.h.
|
static |
Definition at line 701 of file qwidget_p.h.
Referenced by QApplication::~QApplication(), QWidget::~QWidget(), and init().
uint QWidgetPrivate::isMoved |
Definition at line 724 of file qwidget_p.h.
Referenced by moveRect().
uint QWidgetPrivate::isOpaque |
Definition at line 720 of file qwidget_p.h.
Referenced by drawWidget(), moveRect(), paintSiblingsRecursive(), render_helper(), scrollRect(), setOpaque(), and QWidgetRepaintManager::staticContents().
uint QWidgetPrivate::isScrolled |
Definition at line 723 of file qwidget_p.h.
Referenced by scrollRect().
QLayout* QWidgetPrivate::layout |
Definition at line 651 of file qwidget_p.h.
Referenced by adjustedSize(), QCommandLinkButtonPrivate::descriptionHeight(), QDockWidgetPrivate::endDrag(), QPrintPreviewWidgetPrivate::init(), QDockWidgetPrivate::init(), QKeySequenceEditPrivate::init(), QDockWidgetPrivate::initDrag(), QMessageBoxPrivate::layoutMinimumWidth(), QDockWidgetPrivate::mouseDoubleClickEvent(), QDockWidgetPrivate::mouseMoveEvent(), QDockWidgetPrivate::mousePressEvent(), QDockWidgetPrivate::moveEvent(), QMdiSubWindowPrivate::removeBaseWidget(), safeAreaMargins(), QDockWidgetPrivate::setResizerActive(), setVisible(), QDockWidgetPrivate::setWindowState(), show_recursive(), QDockWidgetPrivate::startDrag(), QDockWidgetPrivate::unplug(), QDockWidgetPrivate::updateButtons(), updateContentsRect(), and QMessageBoxPrivate::updateSize().
signed char QWidgetPrivate::leftLayoutItemMargin |
Definition at line 697 of file qwidget_p.h.
Referenced by getLayoutItemMargins(), setLayoutItemMargins(), and setLayoutItemMargins().
short QWidgetPrivate::leftmargin |
Definition at line 693 of file qwidget_p.h.
Referenced by QMenuPrivate::mouseEventTaken(), QLabelPrivate::sizeForWidth(), QLayout::totalHeightForWidth(), QLayout::totalMaximumSize(), QLayout::totalMinimumHeightForWidth(), QLayout::totalMinimumSize(), and QLayout::totalSizeHint().
QLocale QWidgetPrivate::locale |
Definition at line 706 of file qwidget_p.h.
Referenced by QProgressBarPrivate::initDefaultFormat(), setLocale_helper(), QSpinBoxPrivate::validateAndInterpret(), and QDoubleSpinBoxPrivate::validateAndInterpret().
|
static |
Definition at line 661 of file qwidget_p.h.
Referenced by QApplication::~QApplication(), QWidget::find(), QApplicationPrivate::initialize(), and setWinId().
|
static |
Definition at line 702 of file qwidget_p.h.
Referenced by QApplication::~QApplication(), and init().
uint QWidgetPrivate::mustHaveWindowHandle |
Definition at line 726 of file qwidget_p.h.
Referenced by init().
QRegion* QWidgetPrivate::needsFlush |
Definition at line 652 of file qwidget_p.h.
Referenced by moveRect().
QRegion QWidgetPrivate::opaqueChildren |
Definition at line 671 of file qwidget_p.h.
Referenced by getOpaqueChildren().
|
mutable |
Definition at line 656 of file qwidget_p.h.
Referenced by setStyle_helper().
QPaintDevice* QWidgetPrivate::redirectDev |
Definition at line 653 of file qwidget_p.h.
QPoint QWidgetPrivate::redirectOffset |
Definition at line 707 of file qwidget_p.h.
uint QWidgetPrivate::renderToTexture |
Definition at line 727 of file qwidget_p.h.
Referenced by drawWidget(), findTextureWidgetsRecursively(), hide_sys(), raise_sys(), sendPaintEvent(), setGeometry_sys(), show_sys(), and update().
uint QWidgetPrivate::renderToTextureReallyDirty |
Definition at line 732 of file qwidget_p.h.
Referenced by drawWidget(), and update().
uint QWidgetPrivate::retainSizeWhenHiddenChanged |
Definition at line 721 of file qwidget_p.h.
Referenced by updateGeometry_helper().
signed char QWidgetPrivate::rightLayoutItemMargin |
Definition at line 699 of file qwidget_p.h.
Referenced by getLayoutItemMargins(), setLayoutItemMargins(), and setLayoutItemMargins().
short QWidgetPrivate::rightmargin |
Definition at line 695 of file qwidget_p.h.
Referenced by QMenuPrivate::mouseEventTaken(), QLabelPrivate::sizeForWidth(), QLayout::totalHeightForWidth(), QLayout::totalMaximumSize(), QLayout::totalMinimumHeightForWidth(), QLayout::totalMinimumSize(), and QLayout::totalSizeHint().
QSizePolicy QWidgetPrivate::size_policy |
Definition at line 705 of file qwidget_p.h.
Referenced by updateGeometry_helper().
uint QWidgetPrivate::textureChildSeen |
Definition at line 728 of file qwidget_p.h.
Referenced by moveRect(), and sendComposeStatus().
signed char QWidgetPrivate::topLayoutItemMargin |
Definition at line 698 of file qwidget_p.h.
Referenced by getLayoutItemMargins(), setLayoutItemMargins(), and setLayoutItemMargins().
short QWidgetPrivate::topmargin |
Definition at line 694 of file qwidget_p.h.
Referenced by QMenuPrivate::mouseEventTaken(), QMenuPrivate::scrollMenu(), QLabelPrivate::sizeForWidth(), QLayout::totalHeightForWidth(), QLayout::totalMaximumSize(), QLayout::totalMinimumHeightForWidth(), QLayout::totalMinimumSize(), and QLayout::totalSizeHint().
uint QWidgetPrivate::usesDoubleBufferedGLContext |
Definition at line 725 of file qwidget_p.h.
Referenced by paintOnScreen().
uint QWidgetPrivate::usesRhiFlush |
Definition at line 733 of file qwidget_p.h.
Referenced by create().
QWidgetItemV2* QWidgetPrivate::widgetItem |
Definition at line 654 of file qwidget_p.h.
Referenced by QWidgetItemV2::QWidgetItemV2(), QWidgetItemV2::~QWidgetItemV2(), ~QWidgetPrivate(), and updateGeometry_helper().