QtBase  v6.3.1
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | List of all members
QApplicationPrivate Class Reference

#include <qapplication_p.h>

Inheritance diagram for QApplicationPrivate:
Inheritance graph
[legend]
Collaboration diagram for QApplicationPrivate:
Collaboration graph
[legend]

Public Types

enum  ImplicitTouchGrabMode { GrabAcceptedPoints , GrabAllPoints }
 
using PaletteHash = QHash< QByteArray, QPalette >
 

Public Member Functions

 QApplicationPrivate (int &argc, char **argv, int flags)
 
 ~QApplicationPrivate ()
 
virtual void notifyLayoutDirectionChange () override
 
virtual void notifyActiveWindowChange (QWindow *) override
 
void createEventDispatcher () override
 
void notifyWindowIconChanged () override
 
QActionPrivatecreateActionPrivate () const override
 
QShortcutPrivatecreateShortcutPrivate () const override
 
bool isWindowBlocked (QWindow *window, QWindow **blockingWindow=nullptr) const override
 
bool notify_helper (QObject *receiver, QEvent *e)
 
void init ()
 
void initialize ()
 
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
 

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 bool inPopupMode ()
 
static void setFocusWidget (QWidget *focus, Qt::FocusReason reason)
 
static QWidgetfocusNextPrevChild_helper (QWidget *toplevel, bool next, bool *wrappingOccurred=nullptr)
 
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)
 

Public Attributes

QBasicTimer toolTipWakeUp
 
QBasicTimer toolTipFallAsleep
 
QPoint toolTipPos
 
QPoint toolTipGlobalPos
 
QPoint hoverGlobalPos
 
QPointer< QWidgettoolTipWidget
 
QGestureManagergestureManager
 
QWidgetgestureWidget
 

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 QWidgetactive_window = nullptr
 
static int enabledAnimations = QPlatformTheme::GeneralUiEffect
 
static bool widgetCount = false
 
static PaletteHash widgetPalettes
 
static QString styleSheet
 
static QPointer< QWidgetleaveAfterRelease = nullptr
 

Protected Member Functions

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

Detailed Description

Definition at line 99 of file qapplication_p.h.

Member Typedef Documentation

◆ PaletteHash

Definition at line 196 of file qapplication_p.h.

Member Enumeration Documentation

◆ ImplicitTouchGrabMode

Enumerator
GrabAcceptedPoints 
GrabAllPoints 

Definition at line 251 of file qapplication_p.h.

Constructor & Destructor Documentation

◆ QApplicationPrivate()

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

Definition at line 147 of file qapplication.cpp.

◆ ~QApplicationPrivate()

QApplicationPrivate::~QApplicationPrivate ( )

Definition at line 161 of file qapplication.cpp.

Member Function Documentation

◆ activateImplicitTouchGrab()

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

Definition at line 3869 of file qapplication.cpp.

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
override

Definition at line 4077 of file qapplication.cpp.

Here is the call graph for this function:

◆ basePalette()

QPalette QApplicationPrivate::basePalette ( ) const
overrideprotected

Definition at line 1088 of file qapplication.cpp.

Here is the call graph for this function:

◆ cleanupMultitouch()

void QApplicationPrivate::cleanupMultitouch ( )

Definition at line 3837 of file qapplication.cpp.

Here is the call graph for this function:

◆ cleanupMultitouch_sys()

void QApplicationPrivate::cleanupMultitouch_sys ( )

Definition at line 3842 of file qapplication.cpp.

Here is the caller graph for this function:

◆ closeAllPopups()

bool QApplicationPrivate::closeAllPopups ( )
override

Definition at line 3396 of file qapplication.cpp.

Here is the call graph for this function:

◆ closePopup()

void QApplicationPrivate::closePopup ( QWidget popup)

Definition at line 3407 of file qapplication.cpp.

Here is the call graph for this function:

◆ createActionPrivate()

QT_BEGIN_NAMESPACE QActionPrivate * QApplicationPrivate::createActionPrivate ( ) const
override

Definition at line 55 of file qaction_widgets.cpp.

◆ createEventDispatcher()

void QApplicationPrivate::createEventDispatcher ( )
override

Definition at line 167 of file qapplication.cpp.

Here is the call graph for this function:

◆ createShortcutPrivate()

QShortcutPrivate * QApplicationPrivate::createShortcutPrivate ( ) const
override

Definition at line 353 of file qshortcut_widgets.cpp.

◆ desktop()

QWidget * QApplicationPrivate::desktop ( )
static

Definition at line 2518 of file qapplication.cpp.

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

◆ desktopStyleKey()

QString QApplicationPrivate::desktopStyleKey ( )
static

Definition at line 1399 of file qapplication.cpp.

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

Definition at line 2014 of file qapplication.cpp.

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 3846 of file qapplication.cpp.

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 1950 of file qapplication.cpp.

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

◆ handlePaletteChanged()

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

Definition at line 1197 of file qapplication.cpp.

Here is the call graph for this function:

◆ init()

void QApplicationPrivate::init ( )

Definition at line 489 of file qapplication.cpp.

Here is the call graph for this function:

◆ initialize()

void QApplicationPrivate::initialize ( )

Initializes the QApplication object, called from the constructors.

Definition at line 531 of file qapplication.cpp.

Here is the call graph for this function:

◆ initializeMultitouch()

void QApplicationPrivate::initializeMultitouch ( )

Definition at line 3828 of file qapplication.cpp.

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 3833 of file qapplication.cpp.

Here is the caller graph for this function:

◆ initializeWidgetFontHash()

void QApplicationPrivate::initializeWidgetFontHash ( )
static

Definition at line 573 of file qapplication.cpp.

Here is the call graph for this function:

◆ initializeWidgetPalettesFromTheme()

void QApplicationPrivate::initializeWidgetPalettesFromTheme ( )
static

Definition at line 1227 of file qapplication.cpp.

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

◆ inPopupMode()

bool QApplicationPrivate::inPopupMode ( )
static

Definition at line 3356 of file qapplication.cpp.

Here is the caller graph for this function:

◆ instance()

static QApplicationPrivate* QApplicationPrivate::instance ( )
inlinestatic

Definition at line 199 of file qapplication_p.h.

Here is the caller graph for this function:

◆ isBlockedByModal()

bool QApplicationPrivate::isBlockedByModal ( QWidget widget)
static

Definition at line 2180 of file qapplication.cpp.

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

◆ isWindowBlocked()

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

Definition at line 2187 of file qapplication.cpp.

Here is the call graph for this function:

◆ modalState()

bool QApplicationPrivate::modalState ( )
static

Definition at line 2308 of file qapplication.cpp.

◆ notify_helper()

bool QApplicationPrivate::notify_helper ( QObject receiver,
QEvent e 
)

Definition at line 3307 of file qapplication.cpp.

Here is the call graph for this function:

◆ notifyActiveWindowChange()

void QApplicationPrivate::notifyActiveWindowChange ( QWindow previous)
overridevirtual

Definition at line 1910 of file qapplication.cpp.

Here is the call graph for this function:

◆ notifyLayoutDirectionChange()

void QApplicationPrivate::notifyLayoutDirectionChange ( )
overridevirtual

Definition at line 1753 of file qapplication.cpp.

Here is the call graph for this function:

◆ notifyThemeChanged()

void QApplicationPrivate::notifyThemeChanged ( )
overrideprotected

Definition at line 4045 of file qapplication.cpp.

Here is the call graph for this function:

◆ notifyWindowIconChanged()

void QApplicationPrivate::notifyWindowIconChanged ( )
override

Definition at line 1420 of file qapplication.cpp.

Here is the call graph for this function:

◆ openPopup()

void QApplicationPrivate::openPopup ( QWidget popup)

Definition at line 3472 of file qapplication.cpp.

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 2316 of file qapplication.cpp.

Here is the call graph for this function:

◆ popupActive()

bool QApplicationPrivate::popupActive ( )
inlineoverride

Definition at line 145 of file qapplication_p.h.

◆ process_cmdline()

void QApplicationPrivate::process_cmdline ( )

Definition at line 385 of file qapplication.cpp.

Here is the call 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 2352 of file qapplication.cpp.

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 2461 of file qapplication.cpp.

Here is the call graph for this function:

◆ setFocusWidget()

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

Definition at line 1495 of file qapplication.cpp.

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 1386 of file qapplication.cpp.

Here is the call graph for this function:

◆ translateRawTouchEvent()

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

Definition at line 3886 of file qapplication.cpp.

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

◆ translateTouchCancel()

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

Definition at line 4024 of file qapplication.cpp.

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

Definition at line 2268 of file qapplication.cpp.

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 3814 of file qapplication.cpp.

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 218 of file qapplication_p.h.

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

Member Data Documentation

◆ active_window

QWidget * QApplicationPrivate::active_window = nullptr
static

Definition at line 183 of file qapplication_p.h.

◆ app_strut

QSize QApplicationPrivate::app_strut
static

Definition at line 163 of file qapplication_p.h.

◆ app_style

QStyle * QApplicationPrivate::app_style = nullptr
static

Definition at line 165 of file qapplication_p.h.

◆ autoSipEnabled

bool QApplicationPrivate::autoSipEnabled = true
static

Definition at line 109 of file qapplication_p.h.

◆ enabledAnimations

int QApplicationPrivate::enabledAnimations = QPlatformTheme::GeneralUiEffect
static

Definition at line 189 of file qapplication_p.h.

◆ focus_widget

QWidget * QApplicationPrivate::focus_widget = nullptr
static

Definition at line 181 of file qapplication_p.h.

◆ gestureManager

QGestureManager* QApplicationPrivate::gestureManager

Definition at line 239 of file qapplication_p.h.

◆ gestureWidget

QWidget* QApplicationPrivate::gestureWidget

Definition at line 240 of file qapplication_p.h.

◆ hidden_focus_widget

QWidget * QApplicationPrivate::hidden_focus_widget = nullptr
static

Definition at line 182 of file qapplication_p.h.

◆ hoverGlobalPos

QPoint QApplicationPrivate::hoverGlobalPos

Definition at line 160 of file qapplication_p.h.

◆ leaveAfterRelease

QPointer< QWidget > QApplicationPrivate::leaveAfterRelease = nullptr
static

Definition at line 209 of file qapplication_p.h.

◆ main_widget

QWidget * QApplicationPrivate::main_widget = nullptr
static

Definition at line 180 of file qapplication_p.h.

◆ popupWidgets

QWidgetList * QApplicationPrivate::popupWidgets = nullptr
static

Definition at line 164 of file qapplication_p.h.

◆ set_font

QFont * QApplicationPrivate::set_font = nullptr
static

Definition at line 179 of file qapplication_p.h.

◆ styleSheet

QString QApplicationPrivate::styleSheet
static

Definition at line 207 of file qapplication_p.h.

◆ sys_font

QFont * QApplicationPrivate::sys_font = nullptr
static

Definition at line 178 of file qapplication_p.h.

◆ toolTipFallAsleep

QBasicTimer QApplicationPrivate::toolTipFallAsleep

Definition at line 159 of file qapplication_p.h.

◆ toolTipGlobalPos

QPoint QApplicationPrivate::toolTipGlobalPos

Definition at line 160 of file qapplication_p.h.

◆ toolTipPos

QPoint QApplicationPrivate::toolTipPos

Definition at line 160 of file qapplication_p.h.

◆ toolTipWakeUp

QBasicTimer QApplicationPrivate::toolTipWakeUp

Definition at line 159 of file qapplication_p.h.

◆ toolTipWidget

QPointer<QWidget> QApplicationPrivate::toolTipWidget

Definition at line 161 of file qapplication_p.h.

◆ widgetCount

bool QApplicationPrivate::widgetCount = false
static

Definition at line 190 of file qapplication_p.h.

◆ widgetPalettes

QApplicationPrivate::PaletteHash QApplicationPrivate::widgetPalettes
static

Definition at line 197 of file qapplication_p.h.


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