![]() |
Qt 6.x
The Qt SDK
|
#include <qguiapplication_p.h>
Classes | |
struct | QLastCursorPosition |
struct | SynthesizedMouseData |
struct | TabletPointData |
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 | |
![]() | |
enum | Type { Tty , Gui } |
![]() | |
typedef void(* | StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **) |
using | ConnectionDataPointer = QExplicitlySharedDataPointer< ConnectionData > |
Definition at line 56 of file qguiapplication_p.h.
QGuiApplicationPrivate::QGuiApplicationPrivate | ( | int & | argc, |
char ** | argv | ||
) |
Definition at line 703 of file qguiapplication.cpp.
References QCoreApplicationPrivate::application_type, QCoreApplicationPrivate::Gui, is_saving_session, and is_session_restored.
QGuiApplicationPrivate::~QGuiApplicationPrivate | ( | ) |
Definition at line 1724 of file qguiapplication.cpp.
References QList< T >::at(), QCursorData::cleanup(), QFont::cleanup(), QCoreApplicationPrivate::cleanupThreadData(), QList< T >::clear(), QPixmapCache::clear(), clearFontUnlocked(), QPlatformIntegration::destroy(), generic_plugin_list, i, inputMethod, QCoreApplicationPrivate::is_app_closing, QCoreApplicationPrivate::is_app_running, layout_direction, Qt::LayoutDirectionAuto, platform_integration, platform_theme, qt_cleanupFontDatabase(), qt_gl_global_share_context(), qt_gl_set_global_share_context(), screen_list, QList< T >::size(), styleHints, and window_list.
Definition at line 4305 of file qguiapplication.cpp.
References emit, QPlatformIntegration::inputContext(), QInputMethodPrivate::objectAcceptsInputMethod(), platformIntegration(), QPlatformInputContext::setFocusObject(), and QPlatformInputContextPrivate::setInputMethodAccepted().
Referenced by processActivatedEvent().
|
inlinevirtual |
Reimplemented in QApplicationPrivate.
Definition at line 304 of file qguiapplication_p.h.
Referenced by QSvgIconEngine::pixmap().
Definition at line 3508 of file qguiapplication.cpp.
References QWindowGeometrySpecification::applyTo(), window(), and windowGeometrySpecification.
Referenced by QWindowPrivate::setVisible().
|
protectedvirtual |
Reimplemented in QApplicationPrivate.
Definition at line 3483 of file qguiapplication.cpp.
References Qt::gray, QPlatformTheme::palette(), and platformTheme().
Referenced by setPalette().
|
overridevirtual |
Reimplemented from QCoreApplicationPrivate.
Definition at line 3708 of file qguiapplication.cpp.
References QCoreApplicationPrivate::canQuitAutomatically(), lastWindowClosed(), and quitOnLastWindowClosed.
Referenced by maybeLastWindowClosed().
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().
|
inlinevirtual |
Reimplemented in QApplicationPrivate.
Definition at line 197 of file qguiapplication_p.h.
Referenced by QCocoaMenuBar::QCocoaMenuBar(), QCocoaWindow::closeAllPopups(), and QWasmWindow::onNonClientAreaInteraction().
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().
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().
|
static |
QGuiApplicationPrivate::colorScheme.
Definition at line 2645 of file qguiapplication.cpp.
References QPlatformTheme::colorScheme(), platformTheme(), and Qt::Unknown.
Referenced by QWindowsVistaStyle::polish(), and processThemeChanged().
void QGuiApplicationPrivate::commitData | ( | ) |
Definition at line 3950 of file qguiapplication.cpp.
References emit, is_saving_session, and session_manager.
Referenced by QWindowsContext::windowsProc().
|
virtual |
Reimplemented in QApplicationPrivate.
Definition at line 41 of file qaction.cpp.
|
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().
void QGuiApplicationPrivate::createPlatformIntegration | ( | ) |
Definition at line 1415 of file qguiapplication.cpp.
References QList< T >::append(), arg, QCoreApplicationPrivate::argc, QCoreApplicationPrivate::argv, QByteArray::clear(), QFile::decodeName(), QList< T >::first(), firstWindowTitle, forcedWindowIcon, QWindowGeometrySpecification::fromArgument(), QString::fromLocal8Bit(), QIcon::fromTheme(), QStyleHintsPrivate::get(), i, icon, init_platform(), QHighDpiScaling::initHighDpiScaling(), QDir::isAbsolutePath(), QByteArray::isEmpty(), j, platformTheme(), QList< T >::prepend(), Q_UNUSED, qEnvironmentVariableIsSet(), qgetenv(), QStyleHintsPrivate::setColorScheme(), QByteArray::split(), QByteArray::startsWith(), QGuiApplication::styleHints(), and windowGeometrySpecification.
Referenced by createEventDispatcher(), eventDispatcherReady(), and Q_TRACE_INSTRUMENT().
|
virtual |
Reimplemented in QApplicationPrivate.
Definition at line 149 of file qshortcut.cpp.
|
virtual |
Reimplemented in QApplicationPrivate.
Definition at line 901 of file qguiapplication.cpp.
References Qt::NonModal.
Referenced by isWindowBlocked().
|
overridevirtual |
Reimplemented from QCoreApplicationPrivate.
Definition at line 1547 of file qguiapplication.cpp.
References createPlatformIntegration(), QPlatformIntegration::initialize(), and platform_integration.
QPixmap QGuiApplicationPrivate::getPixmapCursor | ( | Qt::CursorShape | cshape | ) |
Definition at line 4265 of file qguiapplication.cpp.
References Q_UNUSED.
Referenced by QDrag::dragCursor().
|
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().
|
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().
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().
void QGuiApplicationPrivate::init | ( | ) |
|
static |
Definition at line 4327 of file qguiapplication.cpp.
References QCoreApplication::instance(), and Q_ASSERT.
Referenced by QBsdKeyboardHandler::QBsdKeyboardHandler(), QBsdMouseHandler::QBsdMouseHandler(), QEglFSKmsGbmCursor::QEglFSKmsGbmCursor(), QEvdevMouseManager::QEvdevMouseManager(), QFbCursor::QFbCursor(), QLibInputHandler::QLibInputHandler(), HIDDriverHandler::find_devices(), QEvdevMouseManager::handleMouseEvent(), QEvdevMouseManager::handleWheelEvent(), QFbCursorDeviceListener::hasMouse(), QEglFSCursorDeviceListener::hasMouse(), QEglFSKmsGbmCursorDeviceListener::hasMouse(), QVncIntegration::initialize(), QLibInputPointer::processAbsMotion(), QLibInputPointer::processAxis(), QLibInputPointer::processButton(), QLibInputKeyboard::processKey(), QLibInputPointer::processMotion(), QFbCursor::setPos(), and QEvdevTouchManager::updateInputDeviceCount().
|
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().
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().
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().
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().
Reimplemented in QApplicationPrivate.
Definition at line 3599 of file qguiapplication.cpp.
References focus_window, QCoreApplication::sendEvent(), QEvent::WindowActivate, and QEvent::WindowDeactivate.
Referenced by processActivatedEvent().
|
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().
|
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().
|
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().
|
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().
|
inlinevirtual |
Reimplemented in QApplicationPrivate.
Definition at line 196 of file qguiapplication_p.h.
Referenced by QCocoaWindow::setupPopupMonitor().
|
static |
Definition at line 2491 of file qguiapplication.cpp.
References _q_updateFocusObject(), Qt::ActiveWindowFocusReason, Qt::ApplicationActive, Qt::ApplicationInactive, QPlatformIntegration::ApplicationState, QObject::connect(), QObject::disconnect(), e, emit, QWindow::flags, focus_window, QEvent::FocusAboutToChange, QEvent::FocusIn, QWindow::focusObject(), QEvent::FocusOut, notifyActiveWindowChange(), Qt::OtherFocusReason, platformIntegration(), Qt::Popup, Qt::PopupFocusReason, qApp, setApplicationState(), SIGNAL, and SLOT.
|
static |
Definition at line 3724 of file qguiapplication.cpp.
References QWindowSystemInterfacePrivate::WindowSystemEvent::eventAccepted, QCoreApplication::instance(), and QEvent::Quit.
|
static |
Definition at line 2718 of file qguiapplication.cpp.
References e.
|
static |
Definition at line 2896 of file qguiapplication.cpp.
References e, and QContextMenuEvent::Keyboard.
|
static |
Definition at line 2449 of file qguiapplication.cpp.
References currentMouseWindow, e, QPointingDevicePrivate::get(), Q_ASSERT, and QPointingDevicePrivate::queryPointById().
|
static |
Definition at line 3225 of file qguiapplication.cpp.
References e, QPlatformIntegration::hasCapability(), QEvent::isAccepted(), QPlatformIntegration::PaintEvents, platformIntegration(), qt_window_private(), and window().
|
static |
Definition at line 2735 of file qguiapplication.cpp.
|
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().
|
static |
Definition at line 2868 of file qguiapplication.cpp.
|
static |
Definition at line 2389 of file qguiapplication.cpp.
References e, QGuiApplication::focusWindow(), QWindowSystemInterface::handleCloseEvent(), QWindowSystemInterface::handleShortcutEvent(), QEvent::isAccepted(), Qt::Key_Back, Qt::Key_Menu, QEvent::KeyPress, QEvent::KeyRelease, modifier_buttons, platform_theme, QEvent::setAccepted(), QInputEvent::setTimestamp(), QPlatformTheme::showPlatformMenuBar(), and window().
|
static |
Definition at line 2476 of file qguiapplication.cpp.
References currentMouseWindow, e, and QEvent::Leave.
|
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().
|
static |
Definition at line 2037 of file qguiapplication.cpp.
References window().
Referenced by QWindowSystemInterface::handleNativeEvent().
|
static |
Definition at line 3287 of file qguiapplication.cpp.
References e, QEvent::isAccepted(), QPlatformIntegration::PaintEvents, platformIntegration(), and Q_ASSERT_X.
|
static |
Definition at line 2881 of file qguiapplication.cpp.
References e, and QEvent::PlatformPanel.
|
static |
Definition at line 2613 of file qguiapplication.cpp.
References QPointer< T >::isNull(), QWindowPrivate::processSafeAreaMarginsChanged(), qt_window_private(), and QWindowSystemInterfacePrivate::SafeAreaMarginsChangedEvent::window.
|
static |
Definition at line 3156 of file qguiapplication.cpp.
References e, resetCachedDevicePixelRatio(), and QCoreApplication::startingUp().
|
static |
Definition at line 3180 of file qguiapplication.cpp.
References QGuiApplication::allWindows(), e, QWindowPrivate::get(), resetCachedDevicePixelRatio(), QCoreApplication::startingUp(), QWindowPrivate::updateDevicePixelRatio(), QHighDpiScaling::updateHighDpiScaling(), and window().
|
static |
Definition at line 3138 of file qguiapplication.cpp.
References e, emit, QCoreApplication::instance(), QCoreApplication::sendEvent(), and QCoreApplication::startingUp().
|
static |
Definition at line 3205 of file qguiapplication.cpp.
References e, emit, qFuzzyCompare(), and QCoreApplication::startingUp().
|
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.
|
static |
Definition at line 2756 of file qguiapplication.cpp.
References Qt::AA_SynthesizeMouseForUnhandledTabletEvents, button, device, e, QWindowSystemInterfacePrivate::WindowSystemEvent::flags, Qt::LeftButton, Qt::MaxMouseButton, modifier_buttons, QEvent::MouseButtonPress, QEvent::MouseButtonRelease, Qt::MouseEventNotSynthesized, QEvent::MouseMove, Qt::NoButton, QWindowSystemInterfacePrivate::TabletEvent::platformSynthesizesMouse, processMouseEvent(), Q_UNUSED, qApp, qCDebug, QGuiApplicationPrivate::TabletPointData::state, QWindowSystemInterfacePrivate::WindowSystemEvent::Synthetic, tabletDevicePoint(), QEvent::TabletMove, QEvent::TabletPress, QEvent::TabletRelease, QGuiApplicationPrivate::TabletPointData::target, QGuiApplication::topLevelAt(), and window().
|
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.
|
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.
|
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().
|
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().
|
static |
Definition at line 2606 of file qguiapplication.cpp.
References QWindowPrivate::get(), QPointer< T >::isNull(), QWindowPrivate::updateDevicePixelRatio(), and QWindowSystemInterfacePrivate::WindowDevicePixelRatioChangedEvent::window.
|
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().
|
static |
Definition at line 2562 of file qguiapplication.cpp.
References QPointer< T >::data(), e, QWindowPrivate::effectiveState(), emit, QWindowSystemInterfacePrivate::WindowStateChangedEvent::newState, QWindowSystemInterfacePrivate::WindowStateChangedEvent::oldState, qt_window_private(), QWindowPrivate::updateVisibility(), QWindowSystemInterfacePrivate::WindowStateChangedEvent::window, window(), and QWindowPrivate::windowState.
|
static |
Referenced by QIBusPlatformInputContext::filterEventFinished(), QWindowSystemHelper< Delivery >::handleEvent(), QWindowSystemInterface::handleFileOpenEvent(), QWindowSystemInterface::handleFileOpenEvent(), QWindowSystemEventHandler::sendEvent(), and QWindowSystemInterface::sendWindowSystemEvents().
|
inlinestatic |
Definition at line 96 of file qguiapplication_p.h.
References QCoreApplication::eventDispatcher(), and QCoreApplication::instance().
Referenced by QWindowSystemHelper< Delivery >::handleEvent().
|
overridevirtual |
Reimplemented from QCoreApplicationPrivate.
Definition at line 3716 of file qguiapplication.cpp.
References platformIntegration(), QCoreApplicationPrivate::quit(), and QPlatformIntegration::quit().
|
static |
Definition at line 1151 of file qguiapplication.cpp.
Referenced by QWindowSystemInterface::handleScreenAdded(), QWindowSystemInterface::handleScreenRemoved(), processScreenGeometryChange(), and processScreenLogicalDotsPerInchChange().
void QGuiApplicationPrivate::saveState | ( | ) |
Definition at line 3959 of file qguiapplication.cpp.
References emit, is_saving_session, and session_manager.
|
static |
Definition at line 2023 of file qguiapplication.cpp.
References window(), and QPlatformWindow::windowEvent().
Referenced by QGuiApplication::notify(), and QApplication::notify().
|
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().
|
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().
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().
|
static |
Definition at line 2744 of file qguiapplication.cpp.
References QGuiApplicationPrivate::TabletPointData::deviceId, i, and tabletDevicePoints.
Referenced by processTabletEnterProximityEvent(), processTabletEvent(), processTabletLeaveProximityEvent(), and QWindowsTabletSupport::translateTabletPacketEvent().
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().
|
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().
|
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().
|
virtual |
Reimplemented in QApplicationPrivate.
Definition at line 906 of file qguiapplication.cpp.
References Q_UNUSED, and window().
Referenced by isWindowBlocked().
|
friend |
Definition at line 339 of file qguiapplication_p.h.
Definition at line 265 of file qguiapplication_p.h.
Referenced by clearFontUnlocked(), QGuiApplication::font(), initFontUnlocked(), and QGuiApplication::setFont().
Definition at line 183 of file qguiapplication_p.h.
Referenced by QGuiApplication::~QGuiApplication(), and QGuiApplication::setWindowIcon().
Definition at line 255 of file qguiapplication_p.h.
Referenced by QPalette::QPalette(), handlePaletteChanged(), QGuiApplication::palette(), setPalette(), and updatePalette().
|
static |
Definition at line 237 of file qguiapplication_p.h.
Referenced by QGuiApplication::~QGuiApplication(), QGuiApplication::applicationState(), QIOSApplicationState::handleApplicationStateChanged(), and setApplicationState().
Definition at line 239 of file qguiapplication_p.h.
Referenced by QGuiApplication::~QGuiApplication().
Definition at line 236 of file qguiapplication_p.h.
Referenced by QGuiApplication::~QGuiApplication(), QWindowPrivate::destroy(), and processMouseEvent().
Definition at line 235 of file qguiapplication_p.h.
Referenced by QGuiApplication::~QGuiApplication(), QWindowPrivate::destroy(), QWidgetWindow::handleEnterLeaveEvent(), QXcbWindow::handleXIEnterLeave(), processEnterEvent(), processLeaveEvent(), QOffscreenWindow::setVisible(), showModalWindow(), and QXcbDrag::startDrag().
Definition at line 261 of file qguiapplication_p.h.
Definition at line 186 of file qguiapplication_p.h.
Referenced by QGuiApplication::~QGuiApplication(), and QGuiApplication::setDesktopFileName().
Definition at line 185 of file qguiapplication_p.h.
Referenced by QGuiApplication::~QGuiApplication(), QPlatformWindow::formatWindowTitle(), Q_TRACE_INSTRUMENT(), and QGuiApplication::setApplicationDisplayName().
QString QGuiApplicationPrivate::firstWindowTitle |
Definition at line 272 of file qguiapplication_p.h.
Referenced by createPlatformIntegration(), and QWindowPrivate::setVisible().
Definition at line 258 of file qguiapplication_p.h.
Referenced by QWindowPrivate::destroy(), QGuiApplication::focusWindow(), QApplicationPrivate::notifyActiveWindowChange(), notifyActiveWindowChange(), and processActivatedEvent().
QIcon QGuiApplicationPrivate::forcedWindowIcon |
Definition at line 273 of file qguiapplication_p.h.
Referenced by createPlatformIntegration(), and QWindowPrivate::setVisible().
Definition at line 275 of file qguiapplication_p.h.
Referenced by ~QGuiApplicationPrivate(), and init_plugins().
|
static |
Definition at line 238 of file qguiapplication_p.h.
Referenced by QGuiApplication::~QGuiApplication(), QGuiApplication::highDpiScaleFactorRoundingPolicy(), and QGuiApplication::setHighDpiScaleFactorRoundingPolicy().
QInputMethod* QGuiApplicationPrivate::inputMethod |
Definition at line 270 of file qguiapplication_p.h.
Referenced by ~QGuiApplicationPrivate().
bool QGuiApplicationPrivate::is_saving_session |
Definition at line 283 of file qguiapplication_p.h.
Referenced by QGuiApplicationPrivate(), commitData(), and saveState().
bool QGuiApplicationPrivate::is_session_restored |
Definition at line 282 of file qguiapplication_p.h.
Referenced by QGuiApplicationPrivate(), and Q_TRACE_INSTRUMENT().
|
static |
Definition at line 125 of file qguiapplication.cpp.
Referenced by QGuiApplication::~QGuiApplication(), QQuickDeliveryAgentPrivate::clearHover(), QQuickDeliveryAgentPrivate::deliverTouchAsMouse(), QWidgetWindow::handleEnterLeaveEvent(), QQuickItem::isUnderMouse(), QQuickMouseArea::itemChange(), QPlatformCursor::pos(), QCursor::pos(), processMouseEvent(), processWheelEvent(), and QMenuSloppyState::timeout().
QEvent::Type QGuiApplicationPrivate::lastTouchType |
Definition at line 288 of file qguiapplication_p.h.
Referenced by processTouchEvent().
QWindowList QGuiApplicationPrivate::modalWindowList |
Definition at line 188 of file qguiapplication_p.h.
Referenced by hideModalWindow(), isWindowBlocked(), QApplicationPrivate::modalState(), QGuiApplication::modalWindow(), showModalWindow(), and updateBlockedStatus().
|
static |
Definition at line 83 of file qguiapplication_p.h.
Referenced by QGuiApplication::~QGuiApplication(), captureGlobalModifierState(), QGuiApplication::keyboardModifiers(), processKeyEvent(), processMouseEvent(), processTabletEvent(), processTouchEvent(), processWheelEvent(), and qt_sendShortcutOverrideEvent().
|
static |
Definition at line 84 of file qguiapplication_p.h.
Referenced by QGuiApplication::~QGuiApplication(), captureGlobalModifierState(), QGuiApplication::mouseButtons(), processMouseEvent(), and processWheelEvent().
|
static |
Definition at line 199 of file qguiapplication_p.h.
Referenced by processMouseEvent().
|
static |
Definition at line 269 of file qguiapplication_p.h.
Referenced by QApplication::~QApplication(), QGuiApplication::desktopSettingsAware(), and QGuiApplication::setDesktopSettingsAware().
|
static |
Definition at line 86 of file qguiapplication_p.h.
Referenced by QXdgDesktopPortalTheme::QXdgDesktopPortalTheme(), ~QGuiApplicationPrivate(), createEventDispatcher(), eventDispatcherReady(), init_platform(), Q_TRACE_INSTRUMENT(), QGuiApplication::setWindowIcon(), and QGuiApplication::sync().
Definition at line 184 of file qguiapplication_p.h.
Referenced by QGuiApplication::~QGuiApplication(), and init_platform().
|
static |
Definition at line 91 of file qguiapplication_p.h.
Referenced by ~QGuiApplicationPrivate(), init_platform(), and processKeyEvent().
|
static |
Definition at line 252 of file qguiapplication_p.h.
Referenced by QGuiApplication::~QGuiApplication(), and QGuiApplication::clipboard().
|
static |
Definition at line 80 of file qguiapplication_p.h.
Referenced by canQuitAutomatically(), maybeLastWindowClosed(), and QGuiApplication::setQuitOnLastWindowClosed().
Definition at line 263 of file qguiapplication_p.h.
Referenced by ~QGuiApplicationPrivate(), QScreen::~QScreen(), QGuiApplication::devicePixelRatio(), fromNativeGlobalPixels(), QWindowSystemInterface::handlePrimaryScreenChanged(), QWindowSystemInterface::handleScreenAdded(), QWindowSystemInterface::handleScreenRemoved(), QQC2::QWindowsStylePrivate::nativeMetricScaleFactor(), QGuiApplication::restoreOverrideCursor(), QGuiApplication::screens(), and QGuiApplication::setOverrideCursor().
QSessionManager* QGuiApplicationPrivate::session_manager |
Definition at line 281 of file qguiapplication_p.h.
Referenced by commitData(), Q_TRACE_INSTRUMENT(), and saveState().
|
static |
Definition at line 268 of file qguiapplication_p.h.
Referenced by ~QGuiApplicationPrivate(), and QGuiApplication::styleHints().
|
static |
Definition at line 267 of file qguiapplication_p.h.
Referenced by QProxyStylePrivate::ensureBaseStyle(), QApplicationPrivate::initialize(), QApplicationPrivate::process_cmdline(), Q_TRACE_INSTRUMENT(), and QQuickStyleSpec::resolve().
QHash<QWindow *, SynthesizedMouseData> QGuiApplicationPrivate::synthesizedMousePoints |
Definition at line 296 of file qguiapplication_p.h.
Referenced by processTouchEvent().
|
static |
Definition at line 248 of file qguiapplication_p.h.
Referenced by QGuiApplication::~QGuiApplication(), QWindowPrivate::destroy(), and tabletDevicePoint().
|
static |
Definition at line 257 of file qguiapplication_p.h.
Referenced by ~QGuiApplicationPrivate(), QGuiApplication::allWindows(), QOffscreenSurface::create(), hideModalWindow(), QWindowPrivate::init(), processThemeChanged(), QGuiApplication::restoreOverrideCursor(), QGuiApplication::setOverrideCursor(), showModalWindow(), and QGuiApplication::topLevelWindows().