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
QApplicationPrivate Class Reference

#include <qapplication_p.h>

+ Inheritance diagram for QApplicationPrivate:
+ Collaboration diagram for QApplicationPrivate:

Public Types

enum  ImplicitTouchGrabMode { GrabAcceptedPoints , GrabAllPoints }
 
using PaletteHash = QHash<QByteArray, QPalette>
 
- 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>
 

Public Member Functions

 QApplicationPrivate (int &argc, char **argv)
 
 ~QApplicationPrivate ()
 
virtual void notifyLayoutDirectionChange () override
 
virtual void notifyActiveWindowChange (QWindow *) override
 
void createEventDispatcher () override
 
void notifyWindowIconChanged () override
 
QActionPrivatecreateActionPrivate () const override
 
QShortcutPrivatecreateShortcutPrivate () const override
 
Qt::WindowModality defaultModality () const override
 
bool windowNeverBlocked (QWindow *window) const override
 
bool notify_helper (QObject *receiver, QEvent *e)
 
void init ()
 
void initialize ()
 Initializes the QApplication object, called from the constructors.
 
void process_cmdline ()
 
bool popupActive () override
 
bool closeAllPopups () override
 
void closePopup (QWidget *popup)
 
void openPopup (QWidget *popup)
 
void sendSyntheticEnterLeave (QWidget *widget)
 
void initializeMultitouch ()
 
void initializeMultitouch_sys ()
 
void cleanupMultitouch ()
 
void cleanupMultitouch_sys ()
 
QWidgetfindClosestTouchPointTarget (const QPointingDevice *device, const QEventPoint &touchPoint)
 
void appendTouchPoint (const QEventPoint &touchPoint)
 
void removeTouchPoint (int touchPointId)
 
void activateImplicitTouchGrab (QWidget *widget, QTouchEvent *touchBeginEvent, ImplicitTouchGrabMode grabMode=GrabAcceptedPoints)
 
QPixmap applyQIconStyleHelper (QIcon::Mode mode, const QPixmap &base) const override
 
- Public Member Functions inherited from QGuiApplicationPrivate
 QGuiApplicationPrivate (int &argc, char **argv)
 
 ~QGuiApplicationPrivate ()
 
void init ()
 
void createPlatformIntegration ()
 
void createEventDispatcher () override
 Called from QCoreApplication::init()
 
void eventDispatcherReady () override
 
bool canQuitAutomatically () override
 
void quit () override
 
void maybeLastWindowClosed ()
 
bool lastWindowClosed () const
 
QPixmap getPixmapCursor (Qt::CursorShape cshape)
 
void _q_updateFocusObject (QObject *object)
 
bool isWindowBlocked (QWindow *window, QWindow **blockingWindow=nullptr) const
 
void commitData ()
 
void saveState ()
 
const QColorTrcLutcolorProfileForA8Text ()
 
const QColorTrcLutcolorProfileForA32Text ()
 
- 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 *)
 
void ref ()
 
void deref ()
 
void quitAutomatically ()
 
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)
 
QObjectList receiverList (const char *signal) 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
 
virtual void writeToDebugStream (QDebug &) const
 
QtPrivate::QPropertyAdaptorSlotObjectgetPropertyAdaptorSlotObject (const QMetaProperty &property)
 
- Public Member Functions inherited from QObjectData
 QObjectData ()=default
 
virtual ~QObjectData ()=0
 
QMetaObjectdynamicMetaObject () const
 

Static Public Member Functions

static QString desktopStyleKey ()
 
static void dispatchEnterLeave (QWidget *enter, QWidget *leave, const QPointF &globalPosF)
 
static QWidgetdesktop ()
 
static bool isBlockedByModal (QWidget *widget)
 
static bool modalState ()
 
static bool tryModalHelper (QWidget *widget, QWidget **rettop=nullptr)
 
static void setActiveWindow (QWidget *act)
 
static bool inPopupMode ()
 
static void setFocusWidget (QWidget *focus, Qt::FocusReason reason)
 
static QWidgetfocusNextPrevChild_helper (QWidget *toplevel, bool next, bool *wrappingOccurred=nullptr)
 internal Helper function that returns the new focus widget, but does not set the focus reason.
 
static void initializeWidgetPalettesFromTheme ()
 
static void initializeWidgetFontHash ()
 
static void setSystemFont (const QFont &font)
 
static QApplicationPrivateinstance ()
 
static QWidgetpickMouseReceiver (QWidget *candidate, const QPoint &windowPos, QPoint *pos, QEvent::Type type, Qt::MouseButtons buttons, QWidget *buttonDown, QWidget *alienWidget)
 
static bool sendMouseEvent (QWidget *receiver, QMouseEvent *event, QWidget *alienWidget, QWidget *native, QWidget **buttonDown, QPointer< QWidget > &lastMouseReceiver, bool spontaneous=true, bool onlyDispatchEnterLeave=false)
 
static QWindowwindowForWidget (const QWidget *widget)
 
static bool updateTouchPointsForWidget (QWidget *widget, QTouchEvent *touchEvent)
 
static bool translateRawTouchEvent (QWidget *widget, const QTouchEvent *touchEvent)
 
static void translateTouchCancel (const QPointingDevice *device, ulong timestamp)
 
- Static Public Member Functions inherited from QGuiApplicationPrivate
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 processFocusWindowEvent (QWindowSystemInterfacePrivate::FocusWindowEvent *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 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

QBasicTimer toolTipWakeUp
 
QBasicTimer toolTipFallAsleep
 
QPoint toolTipPos
 
QPoint toolTipGlobalPos
 
QPoint hoverGlobalPos
 
QPointer< QWidgettoolTipWidget
 
QGestureManagergestureManager
 
QWidgetgestureWidget
 
- Public Attributes inherited from QGuiApplicationPrivate
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 receiveParentEvents: 1
 
uint unused: 20
 
QAtomicInt postedEvents
 
QDynamicMetaObjectDatametaObject
 
QBindingStorage bindingStorage
 

Static Public Attributes

static bool autoSipEnabled = true
 
static QSize app_strut
 
static QWidgetListpopupWidgets = nullptr
 
static QStyleapp_style = nullptr
 
static QFontsys_font = nullptr
 
static QFontset_font = nullptr
 
static QWidgetmain_widget = nullptr
 
static QWidgetfocus_widget = nullptr
 
static QWidgethidden_focus_widget = nullptr
 
static int enabledAnimations = QPlatformTheme::GeneralUiEffect
 
static bool widgetCount = false
 
static PaletteHash widgetPalettes
 
static QString styleSheet
 
static QPointer< QWidgetleaveAfterRelease = nullptr
 
- Static Public Attributes inherited from QGuiApplicationPrivate
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 QBasicAtomicPointer< voidtheMainThreadId = 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

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

Additional Inherited Members

- Static Protected Member Functions inherited from QGuiApplicationPrivate
static bool setPalette (const QPalette &palette)
 

Detailed Description

Definition at line 61 of file qapplication_p.h.

Member Typedef Documentation

◆ PaletteHash

Member Enumeration Documentation

◆ ImplicitTouchGrabMode

Enumerator
GrabAcceptedPoints 
GrabAllPoints 

Definition at line 214 of file qapplication_p.h.

Constructor & Destructor Documentation

◆ QApplicationPrivate()

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

◆ ~QApplicationPrivate()

QApplicationPrivate::~QApplicationPrivate ( )

Definition at line 139 of file qapplication.cpp.

Member Function Documentation

◆ activateImplicitTouchGrab()

void QApplicationPrivate::activateImplicitTouchGrab ( QWidget * widget,
QTouchEvent * touchBeginEvent,
ImplicitTouchGrabMode grabMode = GrabAcceptedPoints )

Definition at line 3813 of file qapplication.cpp.

References GrabAllPoints, i, QTest::QTouchEventSequence::point(), QMutableEventPoint::target(), QEvent::TouchBegin, and widget.

+ Here is the call graph for this function:

◆ appendTouchPoint()

void QApplicationPrivate::appendTouchPoint ( const QEventPoint & touchPoint)

◆ applyQIconStyleHelper()

QPixmap QApplicationPrivate::applyQIconStyleHelper ( QIcon::Mode mode,
const QPixmap & base ) const
overridevirtual

Reimplemented from QGuiApplicationPrivate.

Definition at line 4021 of file qapplication.cpp.

References base, opt, QGuiApplication::palette(), QStyleOption::palette, and QApplication::style().

+ Here is the call graph for this function:

◆ basePalette()

QPalette QApplicationPrivate::basePalette ( ) const
overrideprotectedvirtual

Reimplemented from QGuiApplicationPrivate.

Definition at line 1084 of file qapplication.cpp.

References app_style, Qt::gray, palette, and QGuiApplicationPrivate::platformTheme().

+ Here is the call graph for this function:

◆ cleanupMultitouch()

void QApplicationPrivate::cleanupMultitouch ( )

Definition at line 3781 of file qapplication.cpp.

References cleanupMultitouch_sys().

+ Here is the call graph for this function:

◆ cleanupMultitouch_sys()

void QApplicationPrivate::cleanupMultitouch_sys ( )

Definition at line 3786 of file qapplication.cpp.

Referenced by cleanupMultitouch().

+ Here is the caller graph for this function:

◆ closeAllPopups()

bool QApplicationPrivate::closeAllPopups ( )
overridevirtual

Reimplemented from QGuiApplicationPrivate.

Definition at line 3340 of file qapplication.cpp.

References QApplication::activePopupWidget(), and QWidget::close().

+ Here is the call graph for this function:

◆ closePopup()

◆ createActionPrivate()

QT_BEGIN_NAMESPACE QActionPrivate * QApplicationPrivate::createActionPrivate ( ) const
overridevirtual

Reimplemented from QGuiApplicationPrivate.

Definition at line 19 of file qaction_widgets.cpp.

◆ createEventDispatcher()

void QApplicationPrivate::createEventDispatcher ( )
overridevirtual

Reimplemented from QCoreApplicationPrivate.

Definition at line 145 of file qapplication.cpp.

References QGuiApplicationPrivate::createEventDispatcher().

+ Here is the call graph for this function:

◆ createShortcutPrivate()

QShortcutPrivate * QApplicationPrivate::createShortcutPrivate ( ) const
overridevirtual

Reimplemented from QGuiApplicationPrivate.

Definition at line 323 of file qshortcut_widgets.cpp.

◆ defaultModality()

Qt::WindowModality QApplicationPrivate::defaultModality ( ) const
overridevirtual

Reimplemented from QGuiApplicationPrivate.

Definition at line 2191 of file qapplication.cpp.

References Qt::ApplicationModal.

◆ desktop()

QWidget * QApplicationPrivate::desktop ( )
static

Returns the desktop widget (also called the root window).

The widget represents the entire virtual desktop, and its geometry will be the union of all screens.

Definition at line 2448 of file qapplication.cpp.

References CHECK_QAPP_INSTANCE, Qt::Desktop, qt_desktopWidget, and QWidget::windowType().

Referenced by dispatchEnterLeave().

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

◆ desktopStyleKey()

QString QApplicationPrivate::desktopStyleKey ( )
static

Definition at line 1401 of file qapplication.cpp.

References Qt::CaseInsensitive, QString::fromLocal8Bit(), QStyleFactory::keys(), QGuiApplicationPrivate::platformTheme(), qEnvironmentVariableIsSet(), qgetenv(), and QPlatformTheme::StyleNames.

Referenced by QProxyStylePrivate::ensureBaseStyle(), and QApplication::style().

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

◆ dispatchEnterLeave()

void QApplicationPrivate::dispatchEnterLeave ( QWidget * enter,
QWidget * leave,
const QPointF & globalPosF )
static

Creates the proper Enter/Leave event when widget enter is entered and widget leave is left.

Definition at line 2032 of file qapplication.cpp.

References QApplication::activeModalWidget(), QApplication::activePopupWidget(), desktop(), QWidget::effectiveWinId(), QEvent::HoverEnter, QEvent::HoverLeave, i, instance(), it, QGuiApplication::keyboardModifiers(), leave, QEvent::Leave, QObjectData::parent, QWidget::parentWidget(), Q_ASSERT, qApp, qIsInf(), qt_qpa_set_cursor(), QWIDGETSIZE_MAX, QCoreApplication::sendEvent(), QWidget::setCursor(), QWidget::testAttribute(), tryModalHelper(), Qt::WA_DontShowOnScreen, Qt::WA_Hover, Qt::WA_SetCursor, and QWidget::window().

Referenced by QWidgetWindow::handleEnterLeaveEvent(), QWidgetWindow::handleMouseEvent(), QGraphicsProxyWidget::hoverLeaveEvent(), QGraphicsProxyWidget::hoverMoveEvent(), sendMouseEvent(), and QGraphicsProxyWidgetPrivate::sendWidgetMouseEvent().

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

◆ findClosestTouchPointTarget()

QWidget * QApplicationPrivate::findClosestTouchPointTarget ( const QPointingDevice * device,
const QEventPoint & touchPoint )

Definition at line 3790 of file qapplication.cpp.

References device, QPointingDevicePrivate::get(), QEventPoint::globalPosition, QEventPoint::id, QMutableEventPoint::target(), QPointF::x(), and QPointF::y().

+ Here is the call graph for this function:

◆ focusNextPrevChild_helper()

QWidget * QApplicationPrivate::focusNextPrevChild_helper ( QWidget * toplevel,
bool next,
bool * wrappingOccurred = nullptr )
static

internal Helper function that returns the new focus widget, but does not set the focus reason.

Returns \nullptr if a new focus widget could not be found. Shared with QGraphicsProxyWidgetPrivate::findFocusChild()

Definition at line 1968 of file qapplication.cpp.

References QWidget::focusPolicy, QWidget::focusWidget(), QWidget::isAncestorOf(), QWidget::isEnabled(), QWidget::isVisibleTo(), QWidget::isWindow(), next, QWidget::nextInFocusChain(), Qt::NoFocus, qt_in_tab_key_event, qt_tab_all_widgets(), Qt::StrongFocus, Qt::SubWindow, Qt::TabFocus, Qt::WA_KeyboardFocusChange, widget, and QWidget::windowType().

Referenced by QWidget::focusNextPrevChild(), and setActiveWindow().

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

◆ handlePaletteChanged()

void QApplicationPrivate::handlePaletteChanged ( const char * className = nullptr)
overrideprotectedvirtual

◆ handleThemeChanged()

void QApplicationPrivate::handleThemeChanged ( )
overrideprotectedvirtual

Reimplemented from QGuiApplicationPrivate.

Definition at line 3989 of file qapplication.cpp.

References QGuiApplicationPrivate::handleThemeChanged(), and qt_init_tooltip_palette().

+ Here is the call graph for this function:

◆ init()

void QApplicationPrivate::init ( )

◆ initialize()

void QApplicationPrivate::initialize ( )

◆ initializeMultitouch()

void QApplicationPrivate::initializeMultitouch ( )

Definition at line 3772 of file qapplication.cpp.

References initializeMultitouch_sys().

Referenced by initialize().

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

◆ initializeMultitouch_sys()

void QApplicationPrivate::initializeMultitouch_sys ( )

Definition at line 3777 of file qapplication.cpp.

Referenced by initializeMultitouch().

+ Here is the caller graph for this function:

◆ initializeWidgetFontHash()

◆ initializeWidgetPalettesFromTheme()

void QApplicationPrivate::initializeWidgetPalettesFromTheme ( )
static

Definition at line 1229 of file qapplication.cpp.

References QPlatformTheme::ButtonPalette, QPlatformTheme::CheckBoxPalette, className, QPlatformTheme::GroupBoxPalette, QPlatformTheme::HeaderPalette, QPlatformTheme::ItemViewPalette, QPlatformTheme::LabelPalette, QPlatformTheme::MenuBarPalette, QPlatformTheme::MenuPalette, QPlatformTheme::MessageBoxLabelPalette, palette, QGuiApplicationPrivate::platformTheme(), QPlatformTheme::RadioButtonPalette, QApplication::setPalette(), QPlatformTheme::TabBarPalette, QPlatformTheme::TextEditPalette, QPlatformTheme::TextLineEditPalette, QPlatformTheme::ToolButtonPalette, and widgetPalettes.

Referenced by handlePaletteChanged(), and init().

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

◆ inPopupMode()

bool QApplicationPrivate::inPopupMode ( )
static

Definition at line 3300 of file qapplication.cpp.

References popupWidgets.

Referenced by QWidgetWindow::handleEnterLeaveEvent(), QWidgetWindow::handleGestureEvent(), QWidgetWindow::handleKeyEvent(), QWidgetWindow::handleMouseEvent(), QWidgetWindow::handleTouchEvent(), and notifyActiveWindowChange().

+ Here is the caller graph for this function:

◆ instance()

static QApplicationPrivate * QApplicationPrivate::instance ( )
inlinestatic

Definition at line 162 of file qapplication_p.h.

Referenced by QGraphicsScenePrivate::cancelGesturesForChildren(), dispatchEnterLeave(), QWidgetWindow::handleKeyEvent(), QGestureManager::instance(), QGraphicsScenePrivate::sendEvent(), and QGestureRecognizer::unregisterRecognizer().

+ Here is the caller graph for this function:

◆ isBlockedByModal()

bool QApplicationPrivate::isBlockedByModal ( QWidget * widget)
static

Returns true if widget is blocked by a modal window.

Definition at line 2184 of file qapplication.cpp.

References widget, window(), QWidget::window(), and QWidget::windowHandle().

Referenced by QWidgetWindow::handleMouseEvent(), QWidget::palette(), pickMouseReceiver(), and tryModalHelper().

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

◆ modalState()

bool QApplicationPrivate::modalState ( )
static

Definition at line 2248 of file qapplication.cpp.

◆ notify_helper()

◆ notifyActiveWindowChange()

void QApplicationPrivate::notifyActiveWindowChange ( QWindow * previous)
overridevirtual

Reimplemented from QGuiApplicationPrivate.

Definition at line 1928 of file qapplication.cpp.

References Qt::ActiveWindowFocusReason, QGuiApplicationPrivate::focus_window, QObject::inherits(), inPopupMode(), qt_tlw_for_window(), QCoreApplication::sendEvent(), setActiveWindow(), QWidget::setFocus(), widget, QEvent::WindowActivate, QEvent::WindowDeactivate, and QWidget::windowHandle().

+ Here is the call graph for this function:

◆ notifyLayoutDirectionChange()

void QApplicationPrivate::notifyLayoutDirectionChange ( )
overridevirtual

Reimplemented from QGuiApplicationPrivate.

Definition at line 1763 of file qapplication.cpp.

References QEvent::ApplicationLayoutDirectionChange, i, list, QCoreApplication::sendEvent(), QApplication::topLevelWidgets(), and QGuiApplication::topLevelWindows().

+ Here is the call graph for this function:

◆ notifyWindowIconChanged()

void QApplicationPrivate::notifyWindowIconChanged ( )
overridevirtual

Reimplemented from QGuiApplicationPrivate.

Definition at line 1422 of file qapplication.cpp.

References QEvent::ApplicationWindowIconChange, i, list, QCoreApplication::sendEvent(), QApplication::topLevelWidgets(), and QGuiApplication::topLevelWindows().

+ Here is the call graph for this function:

◆ openPopup()

void QApplicationPrivate::openPopup ( QWidget * popup)

Definition at line 3416 of file qapplication.cpp.

References QEvent::FocusOut, QApplication::focusWidget(), QWidget::focusWidget(), grabForPopup(), openPopupCount, Qt::PopupFocusReason, popupWidgets, QCoreApplication::sendEvent(), and QWidget::setFocus().

+ Here is the call graph for this function:

◆ pickMouseReceiver()

QWidget * QApplicationPrivate::pickMouseReceiver ( QWidget * candidate,
const QPoint & windowPos,
QPoint * pos,
QEvent::Type type,
Qt::MouseButtons buttons,
QWidget * buttonDown,
QWidget * alienWidget )
static

Definition at line 2256 of file qapplication.cpp.

References isBlockedByModal(), QWidget::mapFromGlobal(), QWidget::mapToGlobal(), QEvent::MouseButtonRelease, QWidget::mouseGrabber(), QEvent::MouseMove, pos, and Q_ASSERT.

+ Here is the call graph for this function:

◆ popupActive()

bool QApplicationPrivate::popupActive ( )
inlineoverridevirtual

Reimplemented from QGuiApplicationPrivate.

Definition at line 110 of file qapplication_p.h.

◆ process_cmdline()

void QApplicationPrivate::process_cmdline ( )

Definition at line 362 of file qapplication.cpp.

References arg, QCoreApplicationPrivate::argc, QCoreApplicationPrivate::argv, QString::fromLocal8Bit(), i, j, qEnvironmentVariableIsSet(), qgetenv(), qstrcmp(), qt_is_tty_app, QGuiApplicationPrivate::styleOverride, styleSheet, and widgetCount.

Referenced by init().

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

◆ removeTouchPoint()

void QApplicationPrivate::removeTouchPoint ( int touchPointId)

◆ sendMouseEvent()

bool QApplicationPrivate::sendMouseEvent ( QWidget * receiver,
QMouseEvent * event,
QWidget * alienWidget,
QWidget * native,
QWidget ** buttonDown,
QPointer< QWidget > & lastMouseReceiver,
bool spontaneous = true,
bool onlyDispatchEnterLeave = false )
static

Definition at line 2289 of file qapplication.cpp.

References QApplication::activePopupWidget(), QRectF::contains(), dispatchEnterLeave(), QWidget::internalWinId(), leaveAfterRelease, QEvent::MouseButtonRelease, QWidget::mouseGrabber(), Q_ASSERT, QWidget::rect, QCoreApplication::sendEvent(), Qt::WA_DontShowOnScreen, and QApplication::widgetAt().

Referenced by QWidgetWindow::handleMouseEvent(), sendSyntheticEnterLeave(), and QGraphicsProxyWidgetPrivate::sendWidgetMouseEvent().

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

◆ sendSyntheticEnterLeave()

void QApplicationPrivate::sendSyntheticEnterLeave ( QWidget * widget)

Definition at line 2391 of file qapplication.cpp.

References QWidget::isAncestorOf(), QWidget::isVisible(), QWidget::isWindow(), QWidget::mapFromGlobal(), QWidget::mouseGrabber(), QEvent::MouseMove, Qt::NoButton, Qt::NoModifier, QWidget::parentWidget(), pos, QCursor::pos(), Q_UNUSED, qt_button_down, qt_last_mouse_receiver, sendMouseEvent(), widget, and QWidget::window().

+ Here is the call graph for this function:

◆ setActiveWindow()

void QApplicationPrivate::setActiveWindow ( QWidget * act)
static

Definition at line 1809 of file qapplication.cpp.

References QEvent::ActivationChange, Qt::ActiveWindowFocusReason, focus_widget, QEvent::FocusAboutToChange, focusNextPrevChild_helper(), i, QGuiApplication::inputMethod(), list, Qt::NoFocus, popupWidgets, QCoreApplication::sendEvent(), setFocusWidget(), QStyle::SH_Widget_ShareActivation, QApplication::style(), QCoreApplicationPrivate::testAttribute(), QApplication::topLevelWidgets(), Qt::WA_InputMethodEnabled, window(), QWidget::window(), QEvent::WindowActivate, and QEvent::WindowDeactivate.

Referenced by QWidgetPrivate::deactivateWidgetCleanup(), QWidget::destroy(), and notifyActiveWindowChange().

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

◆ setFocusWidget()

void QApplicationPrivate::setFocusWidget ( QWidget * focus,
Qt::FocusReason reason )
static

Definition at line 1497 of file qapplication.cpp.

References Qt::BacktabFocusReason, emit, focus, focus_widget, QEvent::FocusIn, QEvent::FocusOut, hidden_focus_widget, Qt::NoFocusReason, out, Qt::PopupFocusReason, qApp, qt_in_tab_key_event, QCoreApplication::sendEvent(), Qt::ShortcutFocusReason, Qt::TabFocusReason, and Qt::WA_KeyboardFocusChange.

Referenced by QWidget::clearFocus(), setActiveWindow(), and QWidget::setFocus().

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

◆ setSystemFont()

void QApplicationPrivate::setSystemFont ( const QFont & font)
static

Definition at line 1388 of file qapplication.cpp.

References font, set_font, QApplication::setFont(), and sys_font.

+ Here is the call graph for this function:

◆ translateRawTouchEvent()

bool QApplicationPrivate::translateRawTouchEvent ( QWidget * widget,
const QTouchEvent * touchEvent )
static

◆ translateTouchCancel()

void QApplicationPrivate::translateTouchCancel ( const QPointingDevice * device,
ulong timestamp )
static

Definition at line 3968 of file qapplication.cpp.

References device, QPointingDevicePrivate::get(), QGuiApplication::keyboardModifiers(), QMutableEventPoint::target(), QEvent::TouchCancel, and widget.

Referenced by QWidgetWindow::handleTouchEvent().

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

◆ tryModalHelper()

bool QApplicationPrivate::tryModalHelper ( QWidget * widget,
QWidget ** rettop = nullptr )
static

Called from qapplication_{platform}.cpp, returns true if the widget should accept the event.

Definition at line 2208 of file qapplication.cpp.

References QApplication::activeModalWidget(), QApplication::activePopupWidget(), isBlockedByModal(), widget, and QWidget::window().

Referenced by correctWidgetContext(), dispatchEnterLeave(), qt_try_modal(), qt_tryModalHelper(), and translateRawTouchEvent().

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

◆ updateTouchPointsForWidget()

bool QApplicationPrivate::updateTouchPointsForWidget ( QWidget * widget,
QTouchEvent * touchEvent )
static

Definition at line 3758 of file qapplication.cpp.

References i, QWidget::mapFromGlobal(), QTest::QTouchEventSequence::point(), QEventPoint::Pressed, and widget.

Referenced by translateRawTouchEvent().

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

◆ windowForWidget()

static QWindow * QApplicationPrivate::windowForWidget ( const QWidget * widget)
inlinestatic

Definition at line 181 of file qapplication_p.h.

References QWidget::nativeParentWidget(), widget, window(), and QWidget::windowHandle().

Referenced by QApplication::alert().

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

◆ windowNeverBlocked()

bool QApplicationPrivate::windowNeverBlocked ( QWindow * window) const
overridevirtual

Reimplemented from QGuiApplicationPrivate.

Definition at line 2196 of file qapplication.cpp.

References QApplication::activePopupWidget(), QWindowPrivate::get(), and window().

+ Here is the call graph for this function:

Member Data Documentation

◆ app_strut

QSize QApplicationPrivate::app_strut
static

Definition at line 128 of file qapplication_p.h.

◆ app_style

◆ autoSipEnabled

bool QApplicationPrivate::autoSipEnabled = true
static

◆ enabledAnimations

int QApplicationPrivate::enabledAnimations = QPlatformTheme::GeneralUiEffect
static

◆ focus_widget

◆ gestureManager

QGestureManager* QApplicationPrivate::gestureManager

Definition at line 202 of file qapplication_p.h.

Referenced by QApplicationPrivate().

◆ gestureWidget

QWidget* QApplicationPrivate::gestureWidget

Definition at line 203 of file qapplication_p.h.

Referenced by QApplicationPrivate().

◆ hidden_focus_widget

QWidget * QApplicationPrivate::hidden_focus_widget = nullptr
static

◆ hoverGlobalPos

QPoint QApplicationPrivate::hoverGlobalPos

Definition at line 125 of file qapplication_p.h.

◆ leaveAfterRelease

QPointer< QWidget > QApplicationPrivate::leaveAfterRelease = nullptr
static

Definition at line 172 of file qapplication_p.h.

Referenced by sendMouseEvent().

◆ main_widget

QWidget * QApplicationPrivate::main_widget = nullptr
static

Definition at line 145 of file qapplication_p.h.

◆ popupWidgets

QWidgetList * QApplicationPrivate::popupWidgets = nullptr
static

◆ set_font

QFont * QApplicationPrivate::set_font = nullptr
static

◆ styleSheet

QString QApplicationPrivate::styleSheet
static

◆ sys_font

QFont * QApplicationPrivate::sys_font = nullptr
static

◆ toolTipFallAsleep

QBasicTimer QApplicationPrivate::toolTipFallAsleep

Definition at line 124 of file qapplication_p.h.

◆ toolTipGlobalPos

QPoint QApplicationPrivate::toolTipGlobalPos

Definition at line 125 of file qapplication_p.h.

◆ toolTipPos

QPoint QApplicationPrivate::toolTipPos

Definition at line 125 of file qapplication_p.h.

◆ toolTipWakeUp

QBasicTimer QApplicationPrivate::toolTipWakeUp

Definition at line 124 of file qapplication_p.h.

◆ toolTipWidget

QPointer<QWidget> QApplicationPrivate::toolTipWidget

Definition at line 126 of file qapplication_p.h.

◆ widgetCount

bool QApplicationPrivate::widgetCount = false
static

Definition at line 153 of file qapplication_p.h.

Referenced by QApplication::~QApplication(), and process_cmdline().

◆ widgetPalettes


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