![]() |
Qt 6.x
The Qt SDK
|
#include "qplatformdefs.h"#include "qabstracteventdispatcher.h"#include "qapplication.h"#include "qclipboard.h"#include "qcursor.h"#include "qdir.h"#include "qevent.h"#include "qfile.h"#include "qfileinfo.h"#include "qhash.h"#include "qset.h"#include "qlayout.h"#include "qpixmapcache.h"#include "qstyle.h"#include "qstyleoption.h"#include "qstylefactory.h"#include "qtranslator.h"#include "qvariant.h"#include "qwidget.h"#include "private/qguiapplication_p.h"#include "qcolormap.h"#include "qdebug.h"#include "private/qstylesheetstyle_p.h"#include "private/qstyle_p.h"#include "qwidgetwindow_p.h"#include <QtGui/qstylehints.h>#include <QtGui/qinputmethod.h>#include <QtGui/private/qwindow_p.h>#include <QtGui/qpointingdevice.h>#include <QtGui/private/qpointingdevice_p.h>#include <qpa/qplatformtheme.h>#include "private/qkeymapper_p.h"#include <qthread.h>#include <private/qthread_p.h>#include <QtGui/private/qevent_p.h>#include <QtGui/private/qeventpoint_p.h>#include <private/qfont_p.h>#include <stdlib.h>#include "qapplication_p.h"#include "qwidget_p.h"#include "qgesture.h"#include "private/qgesturemanager_p.h"#include <qpa/qplatformfontdatabase.h>#include "qdatetime.h"#include <qpa/qplatformwindow.h>#include <qtwidgets_tracepoints_p.h>#include <algorithm>#include <iterator>#include "moc_qapplication.cpp"
Include dependency graph for qapplication.cpp:Go to the source code of this file.
Macros | |
| #define | CHECK_QAPP_INSTANCE(...) |
Variables | |
| bool | qt_in_tab_key_event = false |
| int | qt_antialiasing_threshold = -1 |
| QWidget * | qt_desktopWidget = nullptr |
| QPointer< QWidget > | qt_last_mouse_receiver |
| Q_WIDGETS_EXPORT QWidget * | qt_button_down |
| static bool | popupGrabOk |
| QWidget * | qt_popup_down |
| bool | qt_replay_popup_mouse_event |
| bool | qt_popup_down_closed |
| int | openPopupCount = 0 |
| #define CHECK_QAPP_INSTANCE | ( | ... | ) |
Definition at line 111 of file qapplication.cpp.
Definition at line 3316 of file qapplication.cpp.
References popupGrabOk, Q_ASSERT, qt_widget_private(), QWidgetPrivate::stealKeyboardGrab(), QWidgetPrivate::stealMouseGrab(), QWidget::testAttribute(), ungrabKeyboardForPopup(), and Qt::WA_WState_Created.
Referenced by QApplicationPrivate::closePopup(), and QApplicationPrivate::openPopup().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 90 of file qapplication.cpp.
References Q_INIT_RESOURCE.
| Q_TRACE_METADATA | ( | qtwidgets | , |
| "ENUM { AUTO, RANGE User ... MaxUser } QEvent::Type;" | |||
| ) |
| Q_TRACE_POINT | ( | qtwidgets | , |
| QApplication_notify_entry | , | ||
| QObject * | receiver, | ||
| QEvent * | event, | ||
| QEvent::Type | type | ||
| ) |
| Q_TRACE_POINT | ( | qtwidgets | , |
| QApplication_notify_exit | , | ||
| bool | consumed, | ||
| bool | filtered | ||
| ) |
| Q_TRACE_PREFIX | ( | qtwidgets | , |
| "#include <qcoreevent.h>" | |||
| ) |
| void qRegisterWidgetsVariant | ( | ) |
Definition at line 30 of file qwidgetsvariant.cpp.
References qMetaTypeWidgetsHelper.
Referenced by QApplicationPrivate::initialize().
Here is the caller graph for this function:| FontHash * qt_app_fonts_hash | ( | ) |
Definition at line 354 of file qapplication.cpp.
Referenced by QMacStyle::drawControl(), QMacStyle::polish(), qt_aqua_get_known_size(), QMessageBox::setInformativeText(), and QMacStyle::subControlRect().
Here is the caller graph for this function:| Q_CORE_EXPORT void qt_call_post_routines | ( | ) |
Definition at line 309 of file qcoreapplication.cpp.
References forever, globalRoutinesMutex, QList< T >::isEmpty(), list, and qSwap().
Referenced by QApplication::~QApplication(), QCoreApplication::~QCoreApplication(), QGuiApplication::~QGuiApplication(), QCommandLineParser::process(), and QCommandLineParser::showVersion().
Here is the call graph for this function:
Here is the caller graph for this function:| void qt_cleanup | ( | ) |
Definition at line 719 of file qapplication.cpp.
References QApplicationPrivate::active_window, QColormap::cleanup(), and QPixmapCache::clear().
Referenced by QApplication::~QApplication().
Here is the call graph for this function:
Here is the caller graph for this function:| void qt_init_tooltip_palette | ( | ) |
Definition at line 496 of file qapplication.cpp.
References palette, QGuiApplicationPrivate::platformTheme(), QToolTip::setPalette(), QPlatformTheme::ToolTipPalette, and toolTipPalette().
Referenced by QApplicationPrivate::handleThemeChanged(), and QApplicationPrivate::init().
Here is the call graph for this function:
Here is the caller graph for this function:| Q_GUI_EXPORT bool qt_sendShortcutOverrideEvent | ( | QObject * | o, |
| ulong | timestamp, | ||
| int | k, | ||
| Qt::KeyboardModifiers | mods, | ||
| const QString & | text = QString(), |
||
| bool | autorep = false, |
||
| ushort | count = 1 |
||
| ) |
Definition at line 1171 of file qwindowsysteminterface.cpp.
| bool Q_WIDGETS_EXPORT qt_tab_all_widgets | ( | ) |
Definition at line 345 of file qapplication.cpp.
References QGuiApplication::styleHints(), Qt::TabFocusAllControls, and QStyleHints::tabFocusBehavior.
Referenced by QGraphicsProxyWidgetPrivate::findFocusChild(), QApplicationPrivate::focusNextPrevChild_helper(), and QAbstractButtonPrivate::moveFocus().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 1896 of file qapplication.cpp.
References parent, and QApplication::topLevelWidgets().
Referenced by QApplicationPrivate::notifyActiveWindowChange().
Here is the call graph for this function:
Here is the caller graph for this function:| bool qt_try_modal | ( | QWidget * | widget, |
| QEvent::Type | type | ||
| ) |
Definition at line 2226 of file qapplication.cpp.
References QEvent::KeyPress, QEvent::KeyRelease, QEvent::MouseButtonPress, QEvent::MouseButtonRelease, QEvent::MouseMove, QApplicationPrivate::tryModalHelper(), and widget.
Referenced by QWidgetWindow::handleKeyEvent().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 2181 of file qapplication.cpp.
References QApplicationPrivate::tryModalHelper(), and widget.
Here is the call graph for this function:
|
inlinestatic |
Definition at line 3588 of file qapplication.cpp.
References QPlatformTheme::AnimateComboUiEffect, QPlatformTheme::AnimateMenuUiEffect, QPlatformTheme::AnimateToolBoxUiEffect, QPlatformTheme::AnimateTooltipUiEffect, effect, QPlatformTheme::FadeMenuUiEffect, QPlatformTheme::FadeTooltipUiEffect, QPlatformTheme::GeneralUiEffect, Qt::UI_AnimateCombo, Qt::UI_AnimateMenu, Qt::UI_AnimateToolBox, Qt::UI_AnimateTooltip, Qt::UI_FadeMenu, Qt::UI_FadeTooltip, and Qt::UI_General.
Referenced by QApplication::isEffectEnabled(), and QApplication::setEffectEnabled().
Here is the caller graph for this function:Definition at line 3298 of file qapplication.cpp.
References QWidget::keyboardGrabber(), qt_widget_private(), and QWidgetPrivate::stealKeyboardGrab().
Referenced by QApplicationPrivate::closePopup(), and grabForPopup().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 3306 of file qapplication.cpp.
References QWidget::mouseGrabber(), qt_widget_private(), and QWidgetPrivate::stealMouseGrab().
Referenced by QApplicationPrivate::closePopup().
Here is the call graph for this function:
Here is the caller graph for this function:| int openPopupCount = 0 |
Definition at line 3407 of file qapplication.cpp.
Referenced by QWidgetWindow::handleMouseEvent(), and QApplicationPrivate::openPopup().
|
static |
Definition at line 3314 of file qapplication.cpp.
Referenced by QApplicationPrivate::closePopup(), and grabForPopup().
| int qt_antialiasing_threshold = -1 |
Definition at line 332 of file qapplication.cpp.
|
extern |
Definition at line 26 of file qwidgetwindow.cpp.
Referenced by QApplicationPrivate::closePopup(), QWidgetPrivate::deactivateWidgetCleanup(), QWidgetWindow::event(), QWidgetWindow::handleMouseEvent(), and QApplicationPrivate::sendSyntheticEnterLeave().
Definition at line 358 of file qapplication.cpp.
Referenced by QApplication::~QApplication(), and QApplicationPrivate::desktop().
| bool qt_in_tab_key_event = false |
Definition at line 331 of file qapplication.cpp.
Referenced by QApplicationPrivate::focusNextPrevChild_helper(), QApplication::notify(), and QApplicationPrivate::setFocusWidget().
Definition at line 346 of file qwidgetwindow.cpp.
|
extern |
Definition at line 29 of file qwidgetwindow.cpp.
Referenced by QApplicationPrivate::closePopup(), and QWidgetWindow::handleMouseEvent().
|
extern |
Definition at line 31 of file qwidgetwindow.cpp.
Referenced by QApplicationPrivate::closePopup(), and QWidgetWindow::handleMouseEvent().
|
extern |
Definition at line 32 of file qwidgetwindow.cpp.
Referenced by QApplicationPrivate::closePopup(), and QWidgetWindow::handleMouseEvent().