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

(4585cacaa9f9329a10aaf13a449151f5e9bc7a2c)

#include "private/qwindow_p.h"
#include "qwidgetwindow_p.h"
#include "qlayout.h"
#include "private/qwidget_p.h"
#include "private/qapplication_p.h"
#include <private/qwidgetrepaintmanager_p.h>
#include <qpa/qwindowsysteminterface_p.h>
#include <qpa/qplatformtheme.h>
#include <qpa/qplatformwindow.h>
#include <private/qgesturemanager_p.h>
#include <private/qhighdpiscaling_p.h>
#include "moc_qwidgetwindow_p.cpp"
+ Include dependency graph for qwidgetwindow.cpp:

Go to the source code of this file.

Classes

class  QWidgetWindowPrivate
 

Functions

Q_WIDGETS_EXPORT bool qt_tab_all_widgets ()
 
bool qt_try_modal (QWidget *widget, QEvent::Type type)
 
bool q_evaluateRhiConfig (const QWidget *w, QPlatformBackingStoreRhiConfig *outConfig, QSurface::SurfaceType *outType)
 
static bool shouldBePropagatedToWidget (QEvent *event)
 
static void sendChangeRecursively (QWidget *widget, QEvent::Type type)
 

Variables

Q_WIDGETS_EXPORT QWidgetqt_button_down = nullptr
 
QWidgetqt_popup_down = nullptr
 
int openPopupCount
 
bool qt_popup_down_closed = false
 
bool qt_replay_popup_mouse_event = false
 
QPointer< QWidgetqt_last_mouse_receiver = nullptr
 

Function Documentation

◆ q_evaluateRhiConfig()

bool q_evaluateRhiConfig ( const QWidget * w,
QPlatformBackingStoreRhiConfig * outConfig,
QSurface::SurfaceType * outType )

Definition at line 1122 of file qwidget.cpp.

References QBackingStoreRhiSupport::checkForceRhi(), q_evaluateRhiConfigRecursive(), and qCDebug.

Referenced by QWidgetWindow::QWidgetWindow(), QWidgetPrivate::create(), and QWidget::setParent().

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

◆ qt_tab_all_widgets()

Q_WIDGETS_EXPORT bool qt_tab_all_widgets ( )
extern

Definition at line 344 of file qapplication.cpp.

◆ qt_try_modal()

bool qt_try_modal ( QWidget * widget,
QEvent::Type type )
extern

Definition at line 2221 of file qapplication.cpp.

References QEvent::KeyPress, QEvent::KeyRelease, QEvent::MouseButtonPress, QEvent::MouseButtonRelease, QEvent::MouseMove, QWidget::raise(), QApplicationPrivate::tryModalHelper(), and widget.

Referenced by QWidgetWindow::handleKeyEvent().

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

◆ sendChangeRecursively()

static void sendChangeRecursively ( QWidget * widget,
QEvent::Type type )
static

Definition at line 754 of file qwidgetwindow.cpp.

References d, QWidgetPrivate::get(), i, qobject_cast< QWidget * >(), sendChangeRecursively(), QCoreApplication::sendEvent(), and widget.

Referenced by sendChangeRecursively().

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

◆ shouldBePropagatedToWidget()

static bool shouldBePropagatedToWidget ( QEvent * event)
inlinestatic

Definition at line 234 of file qwidgetwindow.cpp.

References QEvent::ChildAdded, QEvent::ChildRemoved, QEvent::Close, QEvent::DynamicPropertyChange, QEvent::Hide, QEvent::Paint, QEvent::Show, and QEvent::Timer.

Referenced by QWidgetWindow::event().

+ Here is the caller graph for this function:

Variable Documentation

◆ openPopupCount

int openPopupCount
extern

◆ qt_button_down

◆ qt_last_mouse_receiver

◆ qt_popup_down

QWidget* qt_popup_down = nullptr

◆ qt_popup_down_closed

bool qt_popup_down_closed = false

◆ qt_replay_popup_mouse_event

bool qt_replay_popup_mouse_event = false