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>.
|
#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"
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 3323 of file qapplication.cpp.
References popupGrabOk, Q_ASSERT, qt_widget_private(), QWidget::testAttribute(), ungrabKeyboardForPopup(), and Qt::WA_WState_Created.
Referenced by QApplicationPrivate::closePopup(), and QApplicationPrivate::openPopup().
|
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>" | ) |
|
extern |
Definition at line 31 of file qwidgetsvariant.cpp.
References qMetaTypeWidgetsHelper.
Referenced by QApplicationPrivate::initialize().
FontHash * qt_app_fonts_hash | ( | ) |
Definition at line 353 of file qapplication.cpp.
Referenced by QMacStyle::drawControl(), QMacStyle::polish(), qt_aqua_get_known_size(), QMessageBox::setInformativeText(), and QMacStyle::subControlRect().
Q_CORE_EXPORT void qt_call_post_routines | ( | ) |
Definition at line 320 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().
void qt_init_tooltip_palette | ( | ) |
Definition at line 495 of file qapplication.cpp.
References palette, QGuiApplicationPrivate::platformTheme(), QToolTip::setPalette(), QPlatformTheme::ToolTipPalette, and toolTipPalette().
Referenced by QApplicationPrivate::handleThemeChanged(), and QApplicationPrivate::init().
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 1176 of file qwindowsysteminterface.cpp.
bool Q_WIDGETS_EXPORT qt_tab_all_widgets | ( | ) |
Definition at line 344 of file qapplication.cpp.
References QGuiApplication::styleHints(), and Qt::TabFocusAllControls.
Referenced by QGraphicsProxyWidgetPrivate::findFocusChild(), QApplicationPrivate::focusNextPrevChild_helper(), and QAbstractButtonPrivate::moveFocus().
Definition at line 1904 of file qapplication.cpp.
References QPlatformWindow::isForeignWindow(), and QApplication::topLevelWidgets().
Referenced by QApplicationPrivate::notifyActiveWindowChange().
bool qt_try_modal | ( | QWidget * | widget, |
QEvent::Type | type ) |
Definition at line 2221 of file qapplication.cpp.
References QEvent::KeyPress, QEvent::KeyRelease, QEvent::MouseButtonPress, QEvent::MouseButtonRelease, QEvent::MouseMove, QWidget::raise(), QApplicationPrivate::tryModalHelper(), and widget.
Referenced by QWidgetWindow::handleKeyEvent().
Definition at line 2176 of file qapplication.cpp.
References QApplicationPrivate::tryModalHelper(), and widget.
|
inlinestatic |
Definition at line 3595 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().
Definition at line 3305 of file qapplication.cpp.
References QWidget::keyboardGrabber(), and qt_widget_private().
Referenced by QApplicationPrivate::closePopup(), and grabForPopup().
Definition at line 3313 of file qapplication.cpp.
References QWidget::mouseGrabber(), and qt_widget_private().
Referenced by QApplicationPrivate::closePopup().
int openPopupCount = 0 |
Definition at line 3414 of file qapplication.cpp.
Referenced by QWidgetWindow::handleMouseEvent(), and QApplicationPrivate::openPopup().
|
static |
Definition at line 3321 of file qapplication.cpp.
Referenced by QApplicationPrivate::closePopup(), and grabForPopup().
int qt_antialiasing_threshold = -1 |
Definition at line 331 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 357 of file qapplication.cpp.
Referenced by QApplication::~QApplication(), and QApplicationPrivate::desktop().
bool qt_in_tab_key_event = false |
Definition at line 330 of file qapplication.cpp.
Referenced by QApplicationPrivate::focusNextPrevChild_helper(), QApplication::notify(), and QApplicationPrivate::setFocusWidget().
Definition at line 401 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().