Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QGuiApplicationPrivate Class Reference

#include <qguiapplication_p.h>

+ Inheritance diagram for QGuiApplicationPrivate:
+ Collaboration diagram for QGuiApplicationPrivate:

Classes

struct  QLastCursorPosition
 
struct  SynthesizedMouseData
 
struct  TabletPointData
 

Public Member Functions

 QGuiApplicationPrivate (int &argc, char **argv)
 
 ~QGuiApplicationPrivate ()
 
void init ()
 
void createPlatformIntegration ()
 
void createEventDispatcher () override
 Called from QCoreApplication::init()
 
void eventDispatcherReady () override
 
virtual void notifyLayoutDirectionChange ()
 
virtual void notifyActiveWindowChange (QWindow *previous)
 
bool canQuitAutomatically () override
 
void quit () override
 
void maybeLastWindowClosed ()
 
bool lastWindowClosed () const
 
QPixmap getPixmapCursor (Qt::CursorShape cshape)
 
void _q_updateFocusObject (QObject *object)
 
virtual Qt::WindowModality defaultModality () const
 
virtual bool windowNeverBlocked (QWindow *window) const
 
bool isWindowBlocked (QWindow *window, QWindow **blockingWindow=nullptr) const
 
virtual bool popupActive ()
 
virtual bool closeAllPopups ()
 
void commitData ()
 
void saveState ()
 
const QColorTrcLutcolorProfileForA8Text ()
 
const QColorTrcLutcolorProfileForA32Text ()
 
virtual QPixmap applyQIconStyleHelper (QIcon::Mode, const QPixmap &basePixmap) const
 
virtual void notifyWindowIconChanged ()
 
virtual QActionPrivatecreateActionPrivate () const
 
virtual QShortcutPrivatecreateShortcutPrivate () const
 
- Public Member Functions inherited from QCoreApplicationPrivate
 QCoreApplicationPrivate (int &aargc, char **aargv)
 
 ~QCoreApplicationPrivate ()
 
void init ()
 
QString appName () const
 
QString appVersion () const
 
void initConsole ()
 
bool sendThroughApplicationEventFilters (QObject *, QEvent *)
 
virtual void createEventDispatcher ()
 
virtual void eventDispatcherReady ()
 
void ref ()
 
void deref ()
 
virtual bool canQuitAutomatically ()
 
void quitAutomatically ()
 
virtual void quit ()
 
void cleanupThreadData ()
 
void appendApplicationPathToLibraryPaths (void)
 
void execCleanup ()
 
void processCommandLineArguments ()
 
QString qmljsDebugArgumentsString () const
 
- Public Member Functions inherited from QObjectPrivate
void ensureExtraData ()
 
 QObjectPrivate (int version=QObjectPrivateVersion)
 
virtual ~QObjectPrivate ()
 
void deleteChildren ()
 
void clearBindingStorage ()
 
void checkForIncompatibleLibraryVersion (int version) const
 
void setParent_helper (QObject *)
 
void moveToThread_helper ()
 
void setThreadData_helper (QThreadData *currentData, QThreadData *targetData, QBindingStatus *status)
 
void _q_reregisterTimers (void *pointer)
 
bool isSender (const QObject *receiver, const char *signal) const
 
QObjectList receiverList (const char *signal) const
 
QObjectList senderList () const
 
void ensureConnectionData ()
 
void addConnection (int signal, Connection *c)
 
int signalIndex (const char *signalName, const QMetaObject **meta=nullptr) const
 
bool isSignalConnected (uint signalIdx, bool checkDeclarative=true) const
 
bool maybeSignalConnected (uint signalIndex) const
 
bool isDeclarativeSignalConnected (uint signalIdx) const
 
void connectNotify (const QMetaMethod &signal)
 
void disconnectNotify (const QMetaMethod &signal)
 
void reinitBindingStorageAfterThreadMove ()
 
virtual std::string flagsForDumping () const
 
QtPrivate::QPropertyAdaptorSlotObjectgetPropertyAdaptorSlotObject (const QMetaProperty &property)
 
- Public Member Functions inherited from QObjectData
 QObjectData ()=default
 
virtual ~QObjectData ()=0
 
QMetaObjectdynamicMetaObject () const
 

Static Public Member Functions

static void captureGlobalModifierState (QEvent *e)
 
static QPlatformIntegrationplatformIntegration ()
 
static QPlatformThemeplatformTheme ()
 
static QAbstractEventDispatcherqt_qpa_core_dispatcher ()
 
static void processMouseEvent (QWindowSystemInterfacePrivate::MouseEvent *e)
 
static void processKeyEvent (QWindowSystemInterfacePrivate::KeyEvent *e)
 
static void processWheelEvent (QWindowSystemInterfacePrivate::WheelEvent *e)
 
static void processTouchEvent (QWindowSystemInterfacePrivate::TouchEvent *e)
 
static void processCloseEvent (QWindowSystemInterfacePrivate::CloseEvent *e)
 
static void processGeometryChangeEvent (QWindowSystemInterfacePrivate::GeometryChangeEvent *e)
 
static void processEnterEvent (QWindowSystemInterfacePrivate::EnterEvent *e)
 
static void processLeaveEvent (QWindowSystemInterfacePrivate::LeaveEvent *e)
 
static void processActivatedEvent (QWindowSystemInterfacePrivate::ActivatedWindowEvent *e)
 
static void processWindowStateChangedEvent (QWindowSystemInterfacePrivate::WindowStateChangedEvent *e)
 
static void processWindowScreenChangedEvent (QWindowSystemInterfacePrivate::WindowScreenChangedEvent *e)
 
static void processWindowDevicePixelRatioChangedEvent (QWindowSystemInterfacePrivate::WindowDevicePixelRatioChangedEvent *e)
 
static void processSafeAreaMarginsChangedEvent (QWindowSystemInterfacePrivate::SafeAreaMarginsChangedEvent *e)
 
static void processWindowSystemEvent (QWindowSystemInterfacePrivate::WindowSystemEvent *e)
 
static void processApplicationTermination (QWindowSystemInterfacePrivate::WindowSystemEvent *e)
 
static void updateFilteredScreenOrientation (QScreen *screen)
 
static void processScreenOrientationChange (QWindowSystemInterfacePrivate::ScreenOrientationEvent *e)
 
static void processScreenGeometryChange (QWindowSystemInterfacePrivate::ScreenGeometryEvent *e)
 
static void processScreenLogicalDotsPerInchChange (QWindowSystemInterfacePrivate::ScreenLogicalDotsPerInchEvent *e)
 
static void processScreenRefreshRateChange (QWindowSystemInterfacePrivate::ScreenRefreshRateEvent *e)
 
static void processThemeChanged (QWindowSystemInterfacePrivate::ThemeChangeEvent *tce)
 
static void processExposeEvent (QWindowSystemInterfacePrivate::ExposeEvent *e)
 
static void processPaintEvent (QWindowSystemInterfacePrivate::PaintEvent *e)
 
static void processFileOpenEvent (QWindowSystemInterfacePrivate::FileOpenEvent *e)
 
static void processTabletEvent (QWindowSystemInterfacePrivate::TabletEvent *e)
 
static void processTabletEnterProximityEvent (QWindowSystemInterfacePrivate::TabletEnterProximityEvent *e)
 
static void processTabletLeaveProximityEvent (QWindowSystemInterfacePrivate::TabletLeaveProximityEvent *e)
 
static void processGestureEvent (QWindowSystemInterfacePrivate::GestureEvent *e)
 
static void processPlatformPanelEvent (QWindowSystemInterfacePrivate::PlatformPanelEvent *e)
 
static void processContextMenuEvent (QWindowSystemInterfacePrivate::ContextMenuEvent *e)
 
static bool processNativeEvent (QWindow *window, const QByteArray &eventType, void *message, qintptr *result)
 
static bool sendQWindowEventToQPlatformWindow (QWindow *window, QEvent *event)
 
static Qt::Alignment visualAlignment (Qt::LayoutDirection direction, Qt::Alignment alignment)
 
static QGuiApplicationPrivateinstance ()
 
static void showModalWindow (QWindow *window)
 
static void hideModalWindow (QWindow *window)
 
static void updateBlockedStatus (QWindow *window)
 
static TabletPointDatatabletDevicePoint (qint64 deviceId)
 
static QInputDeviceManagerinputDeviceManager ()
 
static void applyWindowGeometrySpecificationTo (QWindow *window)
 
static void setApplicationState (Qt::ApplicationState state, bool forcePropagate=false)
 
static void resetCachedDevicePixelRatio ()
 
static void updatePalette ()
 
static Qt::ColorScheme colorScheme ()
 QGuiApplicationPrivate::colorScheme.
 
- Static Public Member Functions inherited from QCoreApplicationPrivate
static void initLocale ()
 
static bool checkInstance (const char *method)
 
static bool sendThroughObjectEventFilters (QObject *, QEvent *)
 
static bool notify_helper (QObject *, QEvent *)
 
static void setEventSpontaneous (QEvent *e, bool spontaneous)
 
static void removePostedEvent (QEvent *)
 Removes event from the queue of posted events, and emits a warning message if appropriate.
 
static QThreadmainThread ()
 
static bool threadRequiresCoreApplication ()
 
static void sendPostedEvents (QObject *receiver, int event_type, QThreadData *data)
 
static void checkReceiverThread (QObject *receiver)
 
static QPostEventListLocker lockThreadPostEventList (QObject *object)
 
static bool isTranslatorInstalled (QTranslator *translator)
 
static void setApplicationFilePath (const QString &path)
 
static void clearApplicationFilePath ()
 
static bool testAttribute (uint flag)
 
- Static Public Member Functions inherited from QObjectPrivate
static bool removeConnection (Connection *c)
 
static QObjectPrivateget (QObject *o)
 
static const QObjectPrivateget (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)
 

Public Attributes

QWindowList modalWindowList
 
QList< QCursorcursor_list
 
QInputMethodinputMethod
 
QString firstWindowTitle
 
QIcon forcedWindowIcon
 
QSessionManagersession_manager
 
bool is_session_restored
 
bool is_saving_session
 
QEvent::Type lastTouchType
 
QHash< QWindow *, SynthesizedMouseDatasynthesizedMousePoints
 
- Public Attributes inherited from QCoreApplicationPrivate
QAtomicInt quitLockRef
 
int & argc
 
char ** argv
 
QTranslatorList translators
 
QReadWriteLock translateMutex
 
QCoreApplicationPrivate::Type application_type
 
QString cachedApplicationDirPath
 
bool in_exec
 
bool aboutToQuitEmitted
 
bool threadData_clean
 
QString qmljs_debug_arguments
 
- Public Attributes inherited from QObjectPrivate
ExtraDataextraData
 
QAtomicPointer< QThreadDatathreadData
 
QAtomicPointer< ConnectionDataconnections
 
union { 
 
   QObject *   currentChildBeingDeleted 
 
   QAbstractDeclarativeData *   declarativeData 
 
};  
 
QAtomicPointer< QtSharedPointer::ExternalRefCountDatasharedRefcount
 
- Public Attributes inherited from QObjectData
QObjectq_ptr
 
QObjectparent
 
QObjectList children
 
uint isWidget: 1
 
uint blockSig: 1
 
uint wasDeleted: 1
 
uint isDeletingChildren: 1
 
uint sendChildEvents: 1
 
uint receiveChildEvents: 1
 
uint isWindow: 1
 
uint deleteLaterCalled: 1
 
uint isQuickItem: 1
 
uint willBeWidget: 1
 
uint wasWidget: 1
 
uint unused: 21
 
QAtomicInt postedEvents
 
QDynamicMetaObjectDatametaObject
 
QBindingStorage bindingStorage
 

Static Public Attributes

static bool quitOnLastWindowClosed = true
 
static Qt::KeyboardModifiers modifier_buttons = Qt::NoModifier
 
static Qt::MouseButtons mouse_buttons = Qt::NoButton
 
static QPlatformIntegrationplatform_integration = nullptr
 
static QPlatformThemeplatform_theme = nullptr
 
static QIconapp_icon = nullptr
 
static QStringplatform_name = nullptr
 
static QStringdisplayName = nullptr
 
static QStringdesktopFileName = nullptr
 
static Qt::MouseButton mousePressButton = Qt::NoButton
 
static struct QGuiApplicationPrivate::QLastCursorPosition lastCursorPosition
 
static QWindowcurrentMouseWindow = nullptr
 
static QWindowcurrentMousePressWindow = nullptr
 
static Qt::ApplicationState applicationState = Qt::ApplicationInactive
 
static Qt::HighDpiScaleFactorRoundingPolicy highDpiScaleFactorRoundingPolicy
 
static QPointer< QWindowcurrentDragWindow
 
static QList< TabletPointDatatabletDevicePoints
 
static QClipboardqt_clipboard = nullptr
 
static QPaletteapp_pal = nullptr
 
static QWindowList window_list
 
static QWindowfocus_window = nullptr
 
static QList< QScreen * > screen_list
 
static QFontapp_font = nullptr
 
static QString styleOverride
 
static QStyleHintsstyleHints = nullptr
 
static bool obey_desktop_settings = true
 
static QList< QObject * > generic_plugin_list
 
- Static Public Attributes inherited from QCoreApplicationPrivate
static QBasicAtomicPointer< QThreadtheMainThread = Q_BASIC_ATOMIC_INITIALIZER(nullptr)
 
static QStringcachedApplicationFilePath = nullptr
 
static QAbstractEventDispatchereventDispatcher = nullptr
 
static bool is_app_running = false
 
static bool is_app_closing = false
 
static bool setuidAllowed = false
 
static uint attribs
 

Protected Member Functions

virtual void handleThemeChanged ()
 
virtual QPalette basePalette () const
 
virtual void handlePaletteChanged (const char *className=nullptr)
 

Static Protected Member Functions

static bool setPalette (const QPalette &palette)
 

Friends

class QDragManager
 

Additional Inherited Members

- Public Types inherited from QCoreApplicationPrivate
enum  Type { Tty , Gui }
 
- Public Types inherited from QObjectPrivate
typedef void(* StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **)
 
using ConnectionDataPointer = QExplicitlySharedDataPointer< ConnectionData >
 

Detailed Description

Definition at line 56 of file qguiapplication_p.h.

Constructor & Destructor Documentation

◆ QGuiApplicationPrivate()

QGuiApplicationPrivate::QGuiApplicationPrivate ( int &  argc,
char **  argv 
)

◆ ~QGuiApplicationPrivate()

Member Function Documentation

◆ _q_updateFocusObject()

void QGuiApplicationPrivate::_q_updateFocusObject ( QObject object)

Definition at line 4305 of file qguiapplication.cpp.

References emit, QPlatformIntegration::inputContext(), QInputMethodPrivate::objectAcceptsInputMethod(), platformIntegration(), QPlatformInputContext::setFocusObject(), and QPlatformInputContextPrivate::setInputMethodAccepted().

Referenced by processActivatedEvent().

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

◆ applyQIconStyleHelper()

virtual QPixmap QGuiApplicationPrivate::applyQIconStyleHelper ( QIcon::Mode  ,
const QPixmap basePixmap 
) const
inlinevirtual

Reimplemented in QApplicationPrivate.

Definition at line 304 of file qguiapplication_p.h.

Referenced by QSvgIconEngine::pixmap().

+ Here is the caller graph for this function:

◆ applyWindowGeometrySpecificationTo()

void QGuiApplicationPrivate::applyWindowGeometrySpecificationTo ( QWindow window)
static

Definition at line 3508 of file qguiapplication.cpp.

References QWindowGeometrySpecification::applyTo(), window(), and windowGeometrySpecification.

Referenced by QWindowPrivate::setVisible().

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

◆ basePalette()

QPalette QGuiApplicationPrivate::basePalette ( ) const
protectedvirtual

Reimplemented in QApplicationPrivate.

Definition at line 3483 of file qguiapplication.cpp.

References Qt::gray, QPlatformTheme::palette(), and platformTheme().

Referenced by setPalette().

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

◆ canQuitAutomatically()

bool QGuiApplicationPrivate::canQuitAutomatically ( )
overridevirtual

Reimplemented from QCoreApplicationPrivate.

Definition at line 3708 of file qguiapplication.cpp.

References QCoreApplicationPrivate::canQuitAutomatically(), lastWindowClosed(), and quitOnLastWindowClosed.

Referenced by maybeLastWindowClosed().

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

◆ captureGlobalModifierState()

void QGuiApplicationPrivate::captureGlobalModifierState ( QEvent e)
static

Definition at line 1912 of file qguiapplication.cpp.

References QSinglePointEvent::button(), e, QEvent::KeyPress, QEvent::KeyRelease, modifier_buttons, QInputEvent::modifiers(), mouse_buttons, QEvent::MouseButtonDblClick, QEvent::MouseButtonPress, QEvent::MouseButtonRelease, QEvent::MouseMove, QEvent::TabletMove, QEvent::TabletPress, QEvent::TabletRelease, QEvent::TouchBegin, QEvent::TouchEnd, QEvent::TouchUpdate, and QEvent::Wheel.

Referenced by QGuiApplication::notify(), and QApplication::notify().

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

◆ closeAllPopups()

virtual bool QGuiApplicationPrivate::closeAllPopups ( )
inlinevirtual

Reimplemented in QApplicationPrivate.

Definition at line 197 of file qguiapplication_p.h.

Referenced by QCocoaMenuBar::QCocoaMenuBar(), QCocoaWindow::closeAllPopups(), and QWasmWindow::onNonClientAreaInteraction().

+ Here is the caller graph for this function:

◆ colorProfileForA32Text()

const QColorTrcLut * QGuiApplicationPrivate::colorProfileForA32Text ( )

Definition at line 4298 of file qguiapplication.cpp.

References fontSmoothingGamma, and QColorTrcLut::fromGamma().

Referenced by colorProfileForA8Text(), qGamma_correct_back_to_linear_cs(), qt_alphargbblit_argb32(), and qt_alphargbblit_generic().

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

◆ colorProfileForA8Text()

const QColorTrcLut * QGuiApplicationPrivate::colorProfileForA8Text ( )

Definition at line 4287 of file qguiapplication.cpp.

References colorProfileForA32Text(), and QColorTrcLut::fromGamma().

Referenced by qt_alphamapblit_argb32(), and qt_alphamapblit_generic().

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

◆ colorScheme()

Qt::ColorScheme QGuiApplicationPrivate::colorScheme ( )
static

QGuiApplicationPrivate::colorScheme.

Returns
the platform theme's color scheme or Qt::ColorScheme::Unknown if a platform theme cannot be established

Definition at line 2645 of file qguiapplication.cpp.

References QPlatformTheme::colorScheme(), platformTheme(), and Qt::Unknown.

Referenced by QWindowsVistaStyle::polish(), and processThemeChanged().

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

◆ commitData()

void QGuiApplicationPrivate::commitData ( )

Definition at line 3950 of file qguiapplication.cpp.

References emit, is_saving_session, and session_manager.

Referenced by QWindowsContext::windowsProc().

+ Here is the caller graph for this function:

◆ createActionPrivate()

QActionPrivate * QGuiApplicationPrivate::createActionPrivate ( ) const
virtual

Reimplemented in QApplicationPrivate.

Definition at line 41 of file qaction.cpp.

◆ createEventDispatcher()

void QGuiApplicationPrivate::createEventDispatcher ( )
overridevirtual

Called from QCoreApplication::init()

Responsible for creating an event dispatcher when QCoreApplication decides that it needs one (because a custom one has not been set).

Reimplemented from QCoreApplicationPrivate.

Definition at line 1530 of file qguiapplication.cpp.

References QPlatformIntegration::createEventDispatcher(), createPlatformIntegration(), QCoreApplicationPrivate::eventDispatcher, QBasicAtomicPointer< X >::loadRelaxed(), platform_integration, Q_ASSERT, Q_ASSERT_X, and QObjectPrivate::threadData.

Referenced by QApplicationPrivate::createEventDispatcher().

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

◆ createPlatformIntegration()

void QGuiApplicationPrivate::createPlatformIntegration ( )

◆ createShortcutPrivate()

QShortcutPrivate * QGuiApplicationPrivate::createShortcutPrivate ( ) const
virtual

Reimplemented in QApplicationPrivate.

Definition at line 149 of file qshortcut.cpp.

◆ defaultModality()

Qt::WindowModality QGuiApplicationPrivate::defaultModality ( ) const
virtual

Reimplemented in QApplicationPrivate.

Definition at line 901 of file qguiapplication.cpp.

References Qt::NonModal.

Referenced by isWindowBlocked().

+ Here is the caller graph for this function:

◆ eventDispatcherReady()

void QGuiApplicationPrivate::eventDispatcherReady ( )
overridevirtual

Reimplemented from QCoreApplicationPrivate.

Definition at line 1547 of file qguiapplication.cpp.

References createPlatformIntegration(), QPlatformIntegration::initialize(), and platform_integration.

+ Here is the call graph for this function:

◆ getPixmapCursor()

QPixmap QGuiApplicationPrivate::getPixmapCursor ( Qt::CursorShape  cshape)

Definition at line 4265 of file qguiapplication.cpp.

References Q_UNUSED.

Referenced by QDrag::dragCursor().

+ Here is the caller graph for this function:

◆ handlePaletteChanged()

void QGuiApplicationPrivate::handlePaletteChanged ( const char *  className = nullptr)
protectedvirtual

Reimplemented in QApplicationPrivate.

Definition at line 3488 of file qguiapplication.cpp.

References app_pal, QEvent::ApplicationPaletteChange, className, emit, QCoreApplicationPrivate::is_app_closing, QCoreApplicationPrivate::is_app_running, Q_ASSERT, Q_UNUSED, qGuiApp, QT_WARNING_DISABLE_DEPRECATED, QT_WARNING_POP, QT_WARNING_PUSH, and QCoreApplication::sendEvent().

Referenced by QApplicationPrivate::handlePaletteChanged().

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

◆ handleThemeChanged()

void QGuiApplicationPrivate::handleThemeChanged ( )
protectedvirtual

Reimplemented in QApplicationPrivate.

Definition at line 2651 of file qguiapplication.cpp.

References ApplicationFontExplicitlySet, applicationFontMutex, applicationResourceFlags, clearFontUnlocked(), QAbstractFileIconProviderPrivate::clearIconTypeCache(), initFontUnlocked(), initThemeHints(), QIconLoader::instance(), updatePalette(), and QIconLoader::updateSystemTheme().

Referenced by QApplicationPrivate::handleThemeChanged(), and processThemeChanged().

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

◆ hideModalWindow()

void QGuiApplicationPrivate::hideModalWindow ( QWindow window)
static

Definition at line 891 of file qguiapplication.cpp.

References modalWindowList, needsWindowBlockedEvent(), QList< T >::removeAll(), updateBlockedStatus(), window(), and window_list.

Referenced by QWidgetPrivate::hide_sys(), and QWindowPrivate::setVisible().

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

◆ init()

void QGuiApplicationPrivate::init ( )

Referenced by QApplicationPrivate::init().

+ Here is the caller graph for this function:

◆ inputDeviceManager()

◆ instance()

static QGuiApplicationPrivate * QGuiApplicationPrivate::instance ( )
inlinestatic

Definition at line 181 of file qguiapplication_p.h.

Referenced by QCocoaMenuBar::QCocoaMenuBar(), QShortcut::QShortcut(), QShortcut::QShortcut(), QAction::~QAction(), QShortcut::~QShortcut(), QWidget::~QWidget(), QCocoaWindow::closeAllPopups(), QFontEngineMulti::createMultiFontEngine(), QDragManager::drag(), QDrag::dragCursor(), QAbstractItemDelegatePrivate::editorEventFilter(), QWindow::event(), QWidget::grabShortcut(), QGraphicsWidget::grabShortcut(), QQuickShortcut::grabShortcut(), QWindowSystemInterface::handleShortcutEvent(), QQuickFolderBreadcrumbBarPrivate::handleTextFieldHidden(), QCocoaSessionManager::instance(), QQuickFolderBreadcrumbBar::itemChange(), QWasmWindow::onNonClientAreaInteraction(), QOpenGLContext::openGLModuleType(), QSvgIconEngine::pixmap(), qGamma_correct_back_to_linear_cs(), qt_alphamapblit_argb32(), qt_alphamapblit_generic(), qt_alphargbblit_argb32(), qt_alphargbblit_generic(), qt_mac_applicationName(), qt_pixmap_thread_test(), qt_sendShortcutOverrideEvent(), QXcbWindow::relayFocusToModalWindow(), QGraphicsWidget::releaseShortcut(), QWidget::releaseShortcut(), QWasmWindow::requestActivateWindow(), QShortcut::setAutoRepeat(), QQuickShortcut::setAutoRepeat(), QShortcut::setContext(), QShortcut::setEnabled(), QActionPrivate::setEnabled(), QQuickShortcut::setEnabled(), QShortcut::setKeys(), QWidget::setShortcutAutoRepeat(), QGraphicsWidget::setShortcutAutoRepeat(), QWidget::setShortcutEnabled(), QGraphicsWidget::setShortcutEnabled(), QCocoaWindow::setupPopupMonitor(), QWindowPrivate::setVisible(), QSurface::supportsOpenGL(), QOpenGLContext::supportsThreadedOpenGL(), QQuickFolderBreadcrumbBarPrivate::ungrabEditPathShortcut(), and QQuickShortcut::ungrabShortcut().

◆ isWindowBlocked()

bool QGuiApplicationPrivate::isWindowBlocked ( QWindow window,
QWindow **  blockingWindow = nullptr 
) const

Definition at line 917 of file qguiapplication.cpp.

References Qt::ApplicationModal, QList< T >::at(), defaultModality(), i, QList< T >::isEmpty(), QWindow::modality, modalWindowList, Qt::NonModal, Q_ASSERT_X, Q_FUNC_INFO, QList< T >::size(), QObjectData::unused, window(), Qt::WindowModal, and windowNeverBlocked().

Referenced by QApplicationPrivate::isBlockedByModal(), QXcbWindow::relayFocusToModalWindow(), showModalWindow(), and updateBlockedStatus().

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

◆ lastWindowClosed()

bool QGuiApplicationPrivate::lastWindowClosed ( ) const

Definition at line 3694 of file qguiapplication.cpp.

References qt_window_private(), QGuiApplication::topLevelWindows(), and window().

Referenced by canQuitAutomatically(), and maybeLastWindowClosed().

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

◆ maybeLastWindowClosed()

void QGuiApplicationPrivate::maybeLastWindowClosed ( )

Definition at line 3669 of file qguiapplication.cpp.

References canQuitAutomatically(), emit, QCoreApplicationPrivate::in_exec, lastWindowClosed(), QCoreApplicationPrivate::quitAutomatically(), and quitOnLastWindowClosed.

Referenced by QWindow::event().

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

◆ notifyActiveWindowChange()

void QGuiApplicationPrivate::notifyActiveWindowChange ( QWindow previous)
virtual

Reimplemented in QApplicationPrivate.

Definition at line 3599 of file qguiapplication.cpp.

References focus_window, QCoreApplication::sendEvent(), QEvent::WindowActivate, and QEvent::WindowDeactivate.

Referenced by processActivatedEvent().

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

◆ notifyLayoutDirectionChange()

void QGuiApplicationPrivate::notifyLayoutDirectionChange ( )
virtual

Reimplemented in QApplicationPrivate.

Definition at line 3590 of file qguiapplication.cpp.

References QEvent::ApplicationLayoutDirectionChange, QList< T >::at(), i, list, QCoreApplication::sendEvent(), QList< T >::size(), and QGuiApplication::topLevelWindows().

Referenced by QGuiApplication::setLayoutDirection().

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

◆ notifyWindowIconChanged()

void QGuiApplicationPrivate::notifyWindowIconChanged ( )
virtual

Reimplemented in QApplicationPrivate.

Definition at line 3634 of file qguiapplication.cpp.

References QEvent::ApplicationWindowIconChange, QList< T >::at(), i, list, QCoreApplication::sendEvent(), QList< T >::size(), and QGuiApplication::topLevelWindows().

Referenced by QGuiApplication::setWindowIcon().

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

◆ platformIntegration()

static QPlatformIntegration * QGuiApplicationPrivate::platformIntegration ( )
inlinestatic

Definition at line 88 of file qguiapplication_p.h.

Referenced by QEglFSKmsInterruptHandler::QEglFSKmsInterruptHandler(), QOpenGLWidget::QOpenGLWidget(), QSessionManagerPrivate::QSessionManagerPrivate(), QVideoWindowPrivate::QVideoWindowPrivate(), QWindowsMimeConverter::QWindowsMimeConverter(), TextureSharingExtension::TextureSharingExtension(), QtFontStyle::~QtFontStyle(), QWindowsFontEngine::~QWindowsFontEngine(), QWindowsFontEngineDirectWrite::~QWindowsFontEngineDirectWrite(), QWindowsMimeConverter::~QWindowsMimeConverter(), QColorDialogPrivate::_q_pickScreenColor(), _q_updateFocusObject(), QFontDatabasePrivate::addAppFont(), QXcbNativeInterface::atspiBus(), QApplication::beep(), QDrag::cancel(), QWindowsFontEngine::cloneWithSize(), QWindowsFontEngineDirectWrite::cloneWithSize(), contextFactory(), QOffscreenSurface::create(), QOpenGLContext::create(), QBackingStoreRhiSupport::create(), QWidgetPrivate::create(), QWindowPrivate::create(), QPlatformPixmap::create(), QPlatformPixmap::createCompatiblePlatformPixmap(), QFontEngineMulti::createMultiFontEngine(), QPaintEngine::createPixmap(), QPaintEngine::createPixmapFromImage(), QCocoaTheme::createPlatformMenuBar(), createTreeViewHelperWindow(), QAndroidPlatformNativeInterface::customEvent(), QtWaylandClient::QWaylandDataDevice::data_device_selection(), QAbstractItemDelegatePrivate::editorEventFilter(), QFontDatabasePrivate::ensureFontDatabase(), QtFontFamily::ensurePopulated(), QWindowContainer::event(), fallbacksForFamily(), QFontDatabasePrivate::findFont(), QCocoaTheme::font(), QIOSTheme::font(), QPixmap::fromImage(), QPixmap::fromImageInPlace(), QPixmap::fromImageReader(), QBackingStore::handle(), QEglFSScreen::handleCursorMove(), QXcbKeyboard::handleKeyEvent(), QWidgetWindow::handleMouseEvent(), QQuickFlickablePrivate::handleReleaseEvent(), hint(), QQuickWidgetPrivate::init(), QQuickContext2D::init(), init_platform(), initFontDef(), initFontUnlocked(), QXcbKeyboard::initialize(), initializeRHI(), QIOSIntegration::instance(), QMinimalIntegration::instance(), QSGRenderLoop::instance(), QFontDatabasePrivate::invalidate(), QtWaylandClient::QWaylandDataDevice::invalidateSelectionOffer(), QtWaylandClient::QWaylandPrimarySelectionDeviceV1::invalidateSelectionOffer(), QFontDatabase::isPrivateFamily(), QQuickPixmap::load(), QRawFontPrivate::loadFromData(), makeBitmap(), QClipboard::mimeData(), QOpenGLContext::openGLModuleType(), QDesktopServices::openUrl(), QImage::paintEngine(), QGuiApplication::platformFunction(), QInputMethodPrivate::platformInputContext(), QGuiApplication::platformNativeInterface(), platformSupportsHiddenText(), platformSurfaceType(), QFontDatabase::pointSizes(), QWindowsVistaStyle::polish(), QQuickMenu::popup(), QKeyMapperPrivate::possibleKeys(), SharedTextureRegistry::preinitialize(), processActivatedEvent(), processExposeEvent(), processPaintEvent(), QT_DEFINE_QPA_EVENT_HANDLER(), qt_painter_thread_test(), qt_pixmap_thread_test(), qt_registerFont(), QGuiApplication::queryKeyboardModifiers(), quit(), QTest::qWaitForWindowActive(), QTest::qWaitForWindowActive(), QQC2::QWindowsStyle::refreshPalette(), QWindowsMimeConverter::registerMimeType(), QPlatformScreen::resizeMaximizedWindows(), QFontDatabasePrivate::resolveFontFamilyAlias(), QWidget::setAttribute(), QGuiApplication::setBadgeNumber(), QWidgetPrivate::setGeometry_sys(), QClipboard::setMimeData(), QQuickColorDialogImpl::setOptions(), QtWaylandClient::QWaylandPrimarySelectionDeviceV1::setSelectionSource(), shouldCascade(), QWindow::show(), QWidget::show(), QGtk3Dialog::show(), QWidgetPrivate::show_sys(), QFontDatabase::smoothSizes(), QFontDatabase::standardSizes(), QQuickDragAttachedPrivate::startDrag(), QColorDialogPrivate::supportsColorPicking(), QQuickApplication::supportsMultipleWindows(), QSurface::supportsOpenGL(), QOpenGLContext::supportsThreadedOpenGL(), QFontDatabase::systemFont(), QtWaylandClient::QWaylandTextInputMethod::text_input_method_v1_keyboard_rectangle_changed(), QtWaylandClient::QWaylandTextInputMethod::text_input_method_v1_visible_changed(), themeableHint(), QPlatformTheme::themeHint(), QAndroidPlatformTheme::themeHint(), QGenericUnixTheme::themeNames(), QtWaylandClient::QWaylandPrimarySelectionDeviceV1::zwp_primary_selection_device_v1_selection(), QtWaylandClient::QWaylandTextInputv1::zwp_text_input_v1_input_panel_state(), QtWaylandClient::QWaylandTextInputv1::zwp_text_input_v1_language(), QtWaylandClient::QWaylandTextInputv1::zwp_text_input_v1_text_direction(), QtWaylandClient::QWaylandTextInputv2::zwp_text_input_v2_input_panel_state(), QtWaylandClient::QWaylandTextInputv2::zwp_text_input_v2_language(), and QtWaylandClient::QWaylandTextInputv2::zwp_text_input_v2_text_direction().

◆ platformTheme()

static QPlatformTheme * QGuiApplicationPrivate::platformTheme ( )
inlinestatic

Definition at line 93 of file qguiapplication_p.h.

Referenced by QQuickLabsPlatformMenuBar::QQuickLabsPlatformMenuBar(), QQuickLabsPlatformSystemTrayIcon::QQuickLabsPlatformSystemTrayIcon(), QQuickAbstractButtonPrivate::acceptKeyClick(), QMessageBox::addButton(), QDialog::adjustPosition(), basePalette(), QApplicationPrivate::basePalette(), QQuickDialogButtonBoxPrivate::buttonText(), QDialogPrivate::canBeNativeDialog(), QComboBox::changeEvent(), colorScheme(), QQuickLabsPlatformDialog::create(), QQuickLabsPlatformMenu::create(), QQuickLabsPlatformMenuItem::create(), QQuickAbstractDialog::create(), QDialogButtonBoxPrivate::createButton(), QPlatformMenuBar::createMenu(), QPlatformSystemTrayIcon::createMenu(), QPlatformMenu::createMenuItem(), createPlatformIntegration(), QMenuPrivate::createPlatformMenu(), QPlatformMenu::createSubMenu(), QPlatformThemePrivate::currentKeyPlatforms(), QQuickDeliveryAgentPrivate::deliverTouchAsMouse(), QApplicationPrivate::desktopStyleKey(), drawTextItemDecoration(), dropShadow(), QIconLoader::ensureInitialized(), QWindow::event(), QGroupBox::event(), QQuickMenuBar::eventFilter(), QQuickTheme::font(), QAbstractFileIconProviderPrivate::getPlatformThemeIcon(), QAbstractFileIconProviderPrivate::getPlatformThemeIcon(), QQuickPlatformTheme::getThemeHint(), QWidgetWindow::handleMouseEvent(), QIconLoader::iconEngine(), QMenuBarPrivate::init(), initFontUnlocked(), QApplicationPrivate::initialize(), QApplicationPrivate::initializeWidgetFontHash(), QApplicationPrivate::initializeWidgetPalettesFromTheme(), initThemeHints(), isDarkMode(), QQuickStylePrivate::isDarkSystemTheme(), QSystemTrayIconPrivate::isSystemTrayAvailable_sys(), QKeySequence::keyBindings(), QAbstractButton::keyPressEvent(), QComboBox::keyPressEvent(), QQuickComboBox::keyPressEvent(), QAbstractButton::keyReleaseEvent(), QQuickComboBox::keyReleaseEvent(), QSizeGrip::mousePressEvent(), QQuickTheme::palette(), QQC2::QCommonStyle::pixelMetric(), QCommonStyle::pixelMetric(), platformButtonLayout(), QDialogPrivate::platformHelper(), QMacStyle::polish(), qt_fusionPalette(), qt_init_tooltip_palette(), QDialogButtonBoxPrivate::retranslateStrings(), QMenuBar::setNativeMenuBar(), QDialogPrivate::setVisible(), QCocoaMessageDialog::show(), QQC2::QCommonStyle::standardIcon(), QCommonStyle::standardIcon(), QMacStyle::standardPalette(), QQC2::QWindowsStyle::standardPixmap(), QCommonStyle::styleHint(), QQC2::QCommonStyle::styleHint(), QSystemTrayIconPrivate::supportsMessages_sys(), systemFallbackSearchPaths(), systemFallbackThemeName(), QFontDatabase::systemFont(), systemIconSearchPaths(), systemThemeName(), themeableHint(), themeableHint(), QQuickFileDialogImplPrivate::updateSelectedFile(), QStylePrivate::useFullScreenForPopup(), QQC2::QStylePrivate::useFullScreenForPopup(), QQuickLabsPlatformDialog::useNativeDialog(), and QQuickAbstractDialog::useNativeDialog().

◆ popupActive()

virtual bool QGuiApplicationPrivate::popupActive ( )
inlinevirtual

Reimplemented in QApplicationPrivate.

Definition at line 196 of file qguiapplication_p.h.

Referenced by QCocoaWindow::setupPopupMonitor().

+ Here is the caller graph for this function:

◆ processActivatedEvent()

◆ processApplicationTermination()

void QGuiApplicationPrivate::processApplicationTermination ( QWindowSystemInterfacePrivate::WindowSystemEvent e)
static

Definition at line 3724 of file qguiapplication.cpp.

References QWindowSystemInterfacePrivate::WindowSystemEvent::eventAccepted, QCoreApplication::instance(), and QEvent::Quit.

+ Here is the call graph for this function:

◆ processCloseEvent()

void QGuiApplicationPrivate::processCloseEvent ( QWindowSystemInterfacePrivate::CloseEvent e)
static

Definition at line 2718 of file qguiapplication.cpp.

References e.

◆ processContextMenuEvent()

void QGuiApplicationPrivate::processContextMenuEvent ( QWindowSystemInterfacePrivate::ContextMenuEvent e)
static

Definition at line 2896 of file qguiapplication.cpp.

References e, and QContextMenuEvent::Keyboard.

◆ processEnterEvent()

void QGuiApplicationPrivate::processEnterEvent ( QWindowSystemInterfacePrivate::EnterEvent e)
static

Definition at line 2449 of file qguiapplication.cpp.

References currentMouseWindow, e, QPointingDevicePrivate::get(), Q_ASSERT, and QPointingDevicePrivate::queryPointById().

+ Here is the call graph for this function:

◆ processExposeEvent()

void QGuiApplicationPrivate::processExposeEvent ( QWindowSystemInterfacePrivate::ExposeEvent e)
static

Definition at line 3225 of file qguiapplication.cpp.

References e, QPlatformIntegration::hasCapability(), QEvent::isAccepted(), QPlatformIntegration::PaintEvents, platformIntegration(), qt_window_private(), and window().

+ Here is the call graph for this function:

◆ processFileOpenEvent()

void QGuiApplicationPrivate::processFileOpenEvent ( QWindowSystemInterfacePrivate::FileOpenEvent e)
static

Definition at line 2735 of file qguiapplication.cpp.

References e, and qApp.

◆ processGeometryChangeEvent()

void QGuiApplicationPrivate::processGeometryChangeEvent ( QWindowSystemInterfacePrivate::GeometryChangeEvent e)
static

Definition at line 2666 of file qguiapplication.cpp.

References e, emit, QRect::height(), QRect::size(), QRect::topLeft(), QRect::width(), window(), QRect::x(), and QRect::y().

Referenced by processWindowScreenChangedEvent().

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

◆ processGestureEvent()

void QGuiApplicationPrivate::processGestureEvent ( QWindowSystemInterfacePrivate::GestureEvent e)
static

Definition at line 2868 of file qguiapplication.cpp.

References device, and e.

◆ processKeyEvent()

void QGuiApplicationPrivate::processKeyEvent ( QWindowSystemInterfacePrivate::KeyEvent e)
static

◆ processLeaveEvent()

void QGuiApplicationPrivate::processLeaveEvent ( QWindowSystemInterfacePrivate::LeaveEvent e)
static

Definition at line 2476 of file qguiapplication.cpp.

References currentMouseWindow, e, and QEvent::Leave.

◆ processMouseEvent()

void QGuiApplicationPrivate::processMouseEvent ( QWindowSystemInterfacePrivate::MouseEvent e)
static

History is silent on why Qt splits mouse events that change position and button state at the same time. We believe that this was done to emulate mouse behavior on touch screens. If mouse tracking is enabled, we will get move events before the button is pressed. A touch panel does not generally give move events when not pressed, so without event splitting code path we would only see a press in a new location without any intervening moves. This could confuse code that is written for a real mouse. The same is true for mouse release events that change position, see tst_QWidget::touchEventSynthesizedMouseEvent() and tst_QWindow::generatedMouseMove() auto tests.

Definition at line 2178 of file qguiapplication.cpp.

References Qt::AA_SynthesizeTouchForUnhandledMouseEvents, QWindowSystemInterface::TouchPoint::area, button, QPointerEvent::clearPassiveGrabbers(), currentMousePressWindow, cursor, QPlatformScreen::cursor(), device, e, QWindowSystemInterfacePrivate::WindowSystemEvent::flags, QMutableSinglePointEvent::from(), QWindowSystemInterfacePrivate::fromNativeTouchPoints(), QPointingDevicePrivate::get(), QScreen::handle(), QWindowSystemInterface::TouchPoint::id, QEvent::isAccepted(), lastCursorPosition, Qt::LeftButton, modifier_buttons, QInputDevice::Mouse, mouse_buttons, QEvent::MouseButtonDblClick, QEvent::MouseButtonPress, QEvent::MouseButtonRelease, mouseDoubleClickDistance, QStyleHints::mouseDoubleClickInterval, QEvent::MouseMove, mousePressButton, Qt::NoButton, QEvent::NonClientAreaMouseButtonDblClick, QEvent::NonClientAreaMouseButtonPress, QEvent::NonClientAreaMouseMove, QEvent::None, QPointingDevicePrivate::pointById(), QEventPoint::Pressed, processMouseEvent(), processTouchEvent(), Q_ASSERT, qAbs(), qApp, qIsNaN(), QPointingDevicePrivate::queryPointById(), qWarning, QEventPoint::Released, screen, QMutableSinglePointEvent::setDoubleClick(), QPointerEvent::setExclusiveGrabber(), QPointerEvent::setTimestamp(), QWindowSystemInterface::TouchPoint::state, QGuiApplication::styleHints(), QWindowSystemInterfacePrivate::WindowSystemEvent::Synthetic, QHighDpi::toNativePixels(), QGuiApplication::topLevelAt(), QPointF::toPoint(), touchDoubleTapDistance, QEvent::type(), QEventPoint::Updated, window(), QPointF::x(), and QPointF::y().

Referenced by processMouseEvent(), processTabletEvent(), and processTouchEvent().

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

◆ processNativeEvent()

bool QGuiApplicationPrivate::processNativeEvent ( QWindow window,
const QByteArray eventType,
void message,
qintptr result 
)
static

Definition at line 2037 of file qguiapplication.cpp.

References window().

Referenced by QWindowSystemInterface::handleNativeEvent().

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

◆ processPaintEvent()

void QGuiApplicationPrivate::processPaintEvent ( QWindowSystemInterfacePrivate::PaintEvent e)
static

Definition at line 3287 of file qguiapplication.cpp.

References e, QEvent::isAccepted(), QPlatformIntegration::PaintEvents, platformIntegration(), and Q_ASSERT_X.

+ Here is the call graph for this function:

◆ processPlatformPanelEvent()

void QGuiApplicationPrivate::processPlatformPanelEvent ( QWindowSystemInterfacePrivate::PlatformPanelEvent e)
static

Definition at line 2881 of file qguiapplication.cpp.

References e, and QEvent::PlatformPanel.

◆ processSafeAreaMarginsChangedEvent()

void QGuiApplicationPrivate::processSafeAreaMarginsChangedEvent ( QWindowSystemInterfacePrivate::SafeAreaMarginsChangedEvent e)
static

Definition at line 2613 of file qguiapplication.cpp.

References QPointer< T >::isNull(), QWindowPrivate::processSafeAreaMarginsChanged(), qt_window_private(), and QWindowSystemInterfacePrivate::SafeAreaMarginsChangedEvent::window.

+ Here is the call graph for this function:

◆ processScreenGeometryChange()

void QGuiApplicationPrivate::processScreenGeometryChange ( QWindowSystemInterfacePrivate::ScreenGeometryEvent e)
static

Definition at line 3156 of file qguiapplication.cpp.

References e, resetCachedDevicePixelRatio(), and QCoreApplication::startingUp().

+ Here is the call graph for this function:

◆ processScreenLogicalDotsPerInchChange()

void QGuiApplicationPrivate::processScreenLogicalDotsPerInchChange ( QWindowSystemInterfacePrivate::ScreenLogicalDotsPerInchEvent e)
static

Definition at line 3180 of file qguiapplication.cpp.

References QGuiApplication::allWindows(), e, QWindowPrivate::get(), resetCachedDevicePixelRatio(), QCoreApplication::startingUp(), QWindowPrivate::updateDevicePixelRatio(), QHighDpiScaling::updateHighDpiScaling(), and window().

+ Here is the call graph for this function:

◆ processScreenOrientationChange()

void QGuiApplicationPrivate::processScreenOrientationChange ( QWindowSystemInterfacePrivate::ScreenOrientationEvent e)
static

Definition at line 3138 of file qguiapplication.cpp.

References e, emit, QCoreApplication::instance(), QCoreApplication::sendEvent(), and QCoreApplication::startingUp().

+ Here is the call graph for this function:

◆ processScreenRefreshRateChange()

void QGuiApplicationPrivate::processScreenRefreshRateChange ( QWindowSystemInterfacePrivate::ScreenRefreshRateEvent e)
static

Definition at line 3205 of file qguiapplication.cpp.

References e, emit, qFuzzyCompare(), and QCoreApplication::startingUp().

+ Here is the call graph for this function:

◆ processTabletEnterProximityEvent()

void QGuiApplicationPrivate::processTabletEnterProximityEvent ( QWindowSystemInterfacePrivate::TabletEnterProximityEvent e)
static

Definition at line 2839 of file qguiapplication.cpp.

References e, Qt::NoButton, QPointingDeviceUniqueId::numericId, Q_UNUSED, qGuiApp, QGuiApplicationPrivate::TabletPointData::state, tabletDevicePoint(), QEvent::TabletEnterProximity, and QPointingDevice::uniqueId.

+ Here is the call graph for this function:

◆ processTabletEvent()

◆ processTabletLeaveProximityEvent()

void QGuiApplicationPrivate::processTabletLeaveProximityEvent ( QWindowSystemInterfacePrivate::TabletLeaveProximityEvent e)
static

Definition at line 2853 of file qguiapplication.cpp.

References e, Qt::NoButton, QPointingDeviceUniqueId::numericId, Q_UNUSED, qGuiApp, QGuiApplicationPrivate::TabletPointData::state, tabletDevicePoint(), QEvent::TabletLeaveProximity, and QPointingDevice::uniqueId.

+ Here is the call graph for this function:

◆ processThemeChanged()

void QGuiApplicationPrivate::processThemeChanged ( QWindowSystemInterfacePrivate::ThemeChangeEvent tce)
static

Definition at line 2624 of file qguiapplication.cpp.

References QIconPrivate::clearIconCache(), colorScheme(), QStyleHintsPrivate::get(), handleThemeChanged(), QStyleHintsPrivate::setColorScheme(), QGuiApplication::styleHints(), QEvent::ThemeChange, QWindowSystemInterfacePrivate::ThemeChangeEvent::window, window(), and window_list.

+ Here is the call graph for this function:

◆ processTouchEvent()

void QGuiApplicationPrivate::processTouchEvent ( QWindowSystemInterfacePrivate::TouchEvent e)
static

Definition at line 2908 of file qguiapplication.cpp.

References Qt::AA_SynthesizeMouseForUnhandledTouchEvents, QPointingDevicePrivate::activePoints, QVarLengthArray< T, Prealloc >::append(), button, QInputDevice::capabilities, QSet< T >::constBegin(), QSet< T >::constEnd(), QTest::QTouchEventSequence::device, device, e, QPointingDevicePrivate::EventPointData::eventPoint, QPointingDevicePrivate::firstActiveWindow(), QWindowSystemInterfacePrivate::WindowSystemEvent::flags, QPointingDevicePrivate::get(), QEventPoint::id, QSet< T >::insert(), QVarLengthArray< T, Prealloc >::isEmpty(), QInputDevicePrivate::isRegistered(), lastTouchType, Qt::LeftButton, modifier_buttons, QEvent::MouseButtonPress, QEvent::MouseButtonRelease, QInputDevice::MouseEmulation, Qt::MouseEventNotSynthesized, Qt::MouseEventSynthesizedByQt, QEvent::MouseMove, Qt::NoButton, QTest::QTouchEventSequence::point(), QPointingDevicePrivate::pointById(), QEventPoint::Pressed, processMouseEvent(), Q_ASSERT, Q_UNLIKELY, qApp, qCDebug, qCWarning, QEventPoint::Released, QPointingDevicePrivate::removePointById(), QEventPoint::setAccepted(), QMutableTouchEvent::setTarget(), QMutableEventPoint::setTimestamp(), QPointerEvent::setTimestamp(), synthesizedMousePoints, QWindowSystemInterfacePrivate::WindowSystemEvent::Synthetic, QGuiApplication::topLevelAt(), QEvent::TouchBegin, QEvent::TouchCancel, QEvent::TouchEnd, QInputDevice::TouchPad, QEvent::TouchUpdate, QMutableEventPoint::update(), QFlatMap< Key, T, Compare, KeyContainer, MappedContainer >::values(), window(), and QMutableEventPoint::window().

+ Here is the call graph for this function:

◆ processWheelEvent()

void QGuiApplicationPrivate::processWheelEvent ( QWindowSystemInterfacePrivate::WheelEvent e)
static

Definition at line 2354 of file qguiapplication.cpp.

References device, e, lastCursorPosition, modifier_buttons, mouse_buttons, Q_UNUSED, QGuiApplication::topLevelAt(), QPointF::toPoint(), and window().

+ Here is the call graph for this function:

◆ processWindowDevicePixelRatioChangedEvent()

void QGuiApplicationPrivate::processWindowDevicePixelRatioChangedEvent ( QWindowSystemInterfacePrivate::WindowDevicePixelRatioChangedEvent e)
static

Definition at line 2606 of file qguiapplication.cpp.

References QWindowPrivate::get(), QPointer< T >::isNull(), QWindowPrivate::updateDevicePixelRatio(), and QWindowSystemInterfacePrivate::WindowDevicePixelRatioChangedEvent::window.

+ Here is the call graph for this function:

◆ processWindowScreenChangedEvent()

void QGuiApplicationPrivate::processWindowScreenChangedEvent ( QWindowSystemInterfacePrivate::WindowScreenChangedEvent e)
static

Definition at line 2580 of file qguiapplication.cpp.

References QPointer< T >::data(), QHighDpi::fromNativePixels(), QWindowPrivate::get(), processGeometryChangeEvent(), QWindowSystemInterfacePrivate::WindowScreenChangedEvent::screen, screen, QWindowPrivate::updateDevicePixelRatio(), QWindowSystemInterfacePrivate::WindowScreenChangedEvent::window, and window().

+ Here is the call graph for this function:

◆ processWindowStateChangedEvent()

void QGuiApplicationPrivate::processWindowStateChangedEvent ( QWindowSystemInterfacePrivate::WindowStateChangedEvent e)
static

◆ processWindowSystemEvent()

static void QGuiApplicationPrivate::processWindowSystemEvent ( QWindowSystemInterfacePrivate::WindowSystemEvent e)
static

◆ qt_qpa_core_dispatcher()

static QAbstractEventDispatcher * QGuiApplicationPrivate::qt_qpa_core_dispatcher ( )
inlinestatic

Definition at line 96 of file qguiapplication_p.h.

References QCoreApplication::eventDispatcher(), and QCoreApplication::instance().

Referenced by QWindowSystemHelper< Delivery >::handleEvent().

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

◆ quit()

void QGuiApplicationPrivate::quit ( )
overridevirtual

Reimplemented from QCoreApplicationPrivate.

Definition at line 3716 of file qguiapplication.cpp.

References platformIntegration(), QCoreApplicationPrivate::quit(), and QPlatformIntegration::quit().

+ Here is the call graph for this function:

◆ resetCachedDevicePixelRatio()

void QGuiApplicationPrivate::resetCachedDevicePixelRatio ( )
static

Definition at line 1151 of file qguiapplication.cpp.

Referenced by QWindowSystemInterface::handleScreenAdded(), QWindowSystemInterface::handleScreenRemoved(), processScreenGeometryChange(), and processScreenLogicalDotsPerInchChange().

+ Here is the caller graph for this function:

◆ saveState()

void QGuiApplicationPrivate::saveState ( )

Definition at line 3959 of file qguiapplication.cpp.

References emit, is_saving_session, and session_manager.

◆ sendQWindowEventToQPlatformWindow()

bool QGuiApplicationPrivate::sendQWindowEventToQPlatformWindow ( QWindow window,
QEvent event 
)
static

Definition at line 2023 of file qguiapplication.cpp.

References window(), and QPlatformWindow::windowEvent().

Referenced by QGuiApplication::notify(), and QApplication::notify().

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

◆ setApplicationState()

void QGuiApplicationPrivate::setApplicationState ( Qt::ApplicationState  state,
bool  forcePropagate = false 
)
static

Definition at line 3796 of file qguiapplication.cpp.

References QEvent::ApplicationActivate, Qt::ApplicationActive, QEvent::ApplicationDeactivate, Qt::ApplicationInactive, applicationState, emit, qApp, and state.

Referenced by processActivatedEvent().

+ Here is the caller graph for this function:

◆ setPalette()

bool QGuiApplicationPrivate::setPalette ( const QPalette palette)
staticprotected

Definition at line 3455 of file qguiapplication.cpp.

References Qt::AA_SetPalette, app_pal, basePalette(), Qt::gray, palette, qGuiApp, QPalette::resolveMask(), QCoreApplication::setAttribute(), and QPalette::setResolveMask().

Referenced by QGuiApplication::setPalette(), and updatePalette().

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

◆ showModalWindow()

void QGuiApplicationPrivate::showModalWindow ( QWindow window)
static

Definition at line 866 of file qguiapplication.cpp.

References currentMouseWindow, e, QWindowPrivate::get(), isWindowBlocked(), QEvent::Leave, modalWindowList, needsWindowBlockedEvent(), QList< T >::prepend(), QList< T >::removeFirst(), QCoreApplication::sendEvent(), updateBlockedStatus(), window(), and window_list.

Referenced by QWindowPrivate::setVisible(), and QWidgetPrivate::show_sys().

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

◆ tabletDevicePoint()

QGuiApplicationPrivate::TabletPointData & QGuiApplicationPrivate::tabletDevicePoint ( qint64  deviceId)
static

Definition at line 2744 of file qguiapplication.cpp.

References QGuiApplicationPrivate::TabletPointData::deviceId, i, and tabletDevicePoints.

Referenced by processTabletEnterProximityEvent(), processTabletEvent(), processTabletLeaveProximityEvent(), and QWindowsTabletSupport::translateTabletPacketEvent().

+ Here is the caller graph for this function:

◆ updateBlockedStatus()

void QGuiApplicationPrivate::updateBlockedStatus ( QWindow window)
static

Definition at line 849 of file qguiapplication.cpp.

References QList< T >::isEmpty(), isWindowBlocked(), modalWindowList, Qt::Popup, Qt::ToolTip, updateBlockedStatusRecursion(), and window().

Referenced by hideModalWindow(), QWindowPrivate::setVisible(), and showModalWindow().

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

◆ updateFilteredScreenOrientation()

static void QGuiApplicationPrivate::updateFilteredScreenOrientation ( QScreen screen)
static

◆ updatePalette()

void QGuiApplicationPrivate::updatePalette ( )
static

Definition at line 3425 of file qguiapplication.cpp.

References app_pal, qGuiApp, and setPalette().

Referenced by handleThemeChanged(), QGuiApplication::palette(), Q_TRACE_INSTRUMENT(), QApplication::setStyle(), and QApplication::style().

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

◆ visualAlignment()

static Qt::Alignment QGuiApplicationPrivate::visualAlignment ( Qt::LayoutDirection  direction,
Qt::Alignment  alignment 
)
inlinestatic

Definition at line 165 of file qguiapplication_p.h.

References Qt::AlignAbsolute, Qt::AlignHorizontal_Mask, Qt::AlignLeft, alignment, Qt::AlignRight, direction, and Qt::RightToLeft.

Referenced by alignedRect(), alignedRect(), QTextDocumentLayoutPrivate::layoutBlock(), QIcon::paint(), QStyle::visualAlignment(), and QQC2::QStyle::visualAlignment().

+ Here is the caller graph for this function:

◆ windowNeverBlocked()

bool QGuiApplicationPrivate::windowNeverBlocked ( QWindow window) const
virtual

Reimplemented in QApplicationPrivate.

Definition at line 906 of file qguiapplication.cpp.

References Q_UNUSED, and window().

Referenced by isWindowBlocked().

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

Friends And Related Symbol Documentation

◆ QDragManager

friend class QDragManager
friend

Definition at line 339 of file qguiapplication_p.h.

Member Data Documentation

◆ app_font

Q_CONSTINIT QFont * QGuiApplicationPrivate::app_font = nullptr
static

◆ app_icon

Q_CONSTINIT QIcon * QGuiApplicationPrivate::app_icon = nullptr
static

◆ app_pal

Q_CONSTINIT QPalette * QGuiApplicationPrivate::app_pal = nullptr
static

◆ applicationState

◆ currentDragWindow

Q_CONSTINIT QPointer< QWindow > QGuiApplicationPrivate::currentDragWindow
static

Definition at line 239 of file qguiapplication_p.h.

Referenced by QGuiApplication::~QGuiApplication().

◆ currentMousePressWindow

Q_CONSTINIT QWindow * QGuiApplicationPrivate::currentMousePressWindow = nullptr
static

◆ currentMouseWindow

◆ cursor_list

QList<QCursor> QGuiApplicationPrivate::cursor_list

Definition at line 261 of file qguiapplication_p.h.

◆ desktopFileName

Q_CONSTINIT QString * QGuiApplicationPrivate::desktopFileName = nullptr
static

◆ displayName

Q_CONSTINIT QString * QGuiApplicationPrivate::displayName = nullptr
static

◆ firstWindowTitle

QString QGuiApplicationPrivate::firstWindowTitle

Definition at line 272 of file qguiapplication_p.h.

Referenced by createPlatformIntegration(), and QWindowPrivate::setVisible().

◆ focus_window

◆ forcedWindowIcon

QIcon QGuiApplicationPrivate::forcedWindowIcon

Definition at line 273 of file qguiapplication_p.h.

Referenced by createPlatformIntegration(), and QWindowPrivate::setVisible().

◆ generic_plugin_list

Q_CONSTINIT QList< QObject * > QGuiApplicationPrivate::generic_plugin_list
static

Definition at line 275 of file qguiapplication_p.h.

Referenced by ~QGuiApplicationPrivate(), and init_plugins().

◆ highDpiScaleFactorRoundingPolicy

◆ inputMethod

QInputMethod* QGuiApplicationPrivate::inputMethod

Definition at line 270 of file qguiapplication_p.h.

Referenced by ~QGuiApplicationPrivate().

◆ is_saving_session

bool QGuiApplicationPrivate::is_saving_session

Definition at line 283 of file qguiapplication_p.h.

Referenced by QGuiApplicationPrivate(), commitData(), and saveState().

◆ is_session_restored

bool QGuiApplicationPrivate::is_session_restored

Definition at line 282 of file qguiapplication_p.h.

Referenced by QGuiApplicationPrivate(), and Q_TRACE_INSTRUMENT().

◆ lastCursorPosition

◆ lastTouchType

QEvent::Type QGuiApplicationPrivate::lastTouchType

Definition at line 288 of file qguiapplication_p.h.

Referenced by processTouchEvent().

◆ modalWindowList

◆ modifier_buttons

◆ mouse_buttons

Q_CONSTINIT Qt::MouseButtons QGuiApplicationPrivate::mouse_buttons = Qt::NoButton
static

◆ mousePressButton

Q_CONSTINIT Qt::MouseButton QGuiApplicationPrivate::mousePressButton = Qt::NoButton
static

Definition at line 199 of file qguiapplication_p.h.

Referenced by processMouseEvent().

◆ obey_desktop_settings

Q_CONSTINIT bool QGuiApplicationPrivate::obey_desktop_settings = true
static

◆ platform_integration

◆ platform_name

Q_CONSTINIT QString * QGuiApplicationPrivate::platform_name = nullptr
static

Definition at line 184 of file qguiapplication_p.h.

Referenced by QGuiApplication::~QGuiApplication(), and init_platform().

◆ platform_theme

Q_CONSTINIT QPlatformTheme * QGuiApplicationPrivate::platform_theme = nullptr
static

Definition at line 91 of file qguiapplication_p.h.

Referenced by ~QGuiApplicationPrivate(), init_platform(), and processKeyEvent().

◆ qt_clipboard

Q_CONSTINIT QClipboard * QGuiApplicationPrivate::qt_clipboard = nullptr
static

◆ quitOnLastWindowClosed

Q_CONSTINIT bool QGuiApplicationPrivate::quitOnLastWindowClosed = true
static

◆ screen_list

◆ session_manager

QSessionManager* QGuiApplicationPrivate::session_manager

Definition at line 281 of file qguiapplication_p.h.

Referenced by commitData(), Q_TRACE_INSTRUMENT(), and saveState().

◆ styleHints

Q_CONSTINIT QStyleHints * QGuiApplicationPrivate::styleHints = nullptr
static

Definition at line 268 of file qguiapplication_p.h.

Referenced by ~QGuiApplicationPrivate(), and QGuiApplication::styleHints().

◆ styleOverride

◆ synthesizedMousePoints

QHash<QWindow *, SynthesizedMouseData> QGuiApplicationPrivate::synthesizedMousePoints

Definition at line 296 of file qguiapplication_p.h.

Referenced by processTouchEvent().

◆ tabletDevicePoints

Q_CONSTINIT QList< QGuiApplicationPrivate::TabletPointData > QGuiApplicationPrivate::tabletDevicePoints
static

◆ window_list


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