![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qwindow_p.h>
Public Types | |
| enum | PositionPolicy { WindowFrameInclusive , WindowFrameExclusive } |
| enum | SiblingPosition { PositionTop , PositionBottom } |
| enum class | FocusTarget { First , Last , Current , Next , Prev } |
| Public Types inherited from QObjectPrivate | |
| typedef void(* | StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **) |
| using | ConnectionDataPointer = QExplicitlySharedDataPointer<ConnectionData> |
Static Public Member Functions | |
| static QWindowPrivate * | get (QWindow *window) |
| static Qt::WindowState | effectiveState (Qt::WindowStates) |
| Static Public Member Functions inherited from QObjectPrivate | |
| static bool | removeConnection (Connection *c) |
| static QObjectPrivate * | get (QObject *o) |
| static const QObjectPrivate * | get (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) |
Definition at line 34 of file qwindow_p.h.
|
strong |
| Enumerator | |
|---|---|
| First | |
| Last | |
| Current | |
| Next | |
| Prev | |
Definition at line 83 of file qwindow_p.h.
| Enumerator | |
|---|---|
| WindowFrameInclusive | |
| WindowFrameExclusive | |
Definition at line 40 of file qwindow_p.h.
| Enumerator | |
|---|---|
| PositionTop | |
| PositionBottom | |
Definition at line 68 of file qwindow_p.h.
| QWindowPrivate::QWindowPrivate | ( | decltype(QObjectPrivateVersion) | version = QObjectPrivateVersion | ) |
Definition at line 211 of file qwindow.cpp.
|
overridedefault |
| void QWindowPrivate::_q_clearAlert | ( | ) |
Definition at line 3214 of file qwindow.cpp.
| bool QWindowPrivate::applyCursor | ( | ) |
Definition at line 3291 of file qwindow.cpp.
|
virtual |
Reimplemented in QQuickWindowPrivate, QWidgetWindowPrivate, and QWidgetWindowPrivate.
Definition at line 615 of file qwindow.cpp.
Reimplemented in QWidgetWindowPrivate, and QWidgetWindowPrivate.
Definition at line 622 of file qwindow.cpp.
Definition at line 505 of file qwindow.cpp.
| void QWindowPrivate::create | ( | bool | recursive | ) |
Definition at line 544 of file qwindow.cpp.
| void QWindowPrivate::destroy | ( | ) |
Definition at line 2150 of file qwindow.cpp.
| void QWindowPrivate::disconnectFromScreen | ( | ) |
Definition at line 499 of file qwindow.cpp.
|
static |
Definition at line 1457 of file qwindow.cpp.
Definition at line 511 of file qwindow.cpp.
|
inlinevirtual |
Reimplemented in QWidgetWindowPrivate, and QWidgetWindowPrivate.
Definition at line 61 of file qwindow_p.h.
| const QWindow * QWindowPrivate::forwardToPopup | ( | QEvent * | event, |
| const QWindow * | activePopupOnPress ) |
Returns the popup window that has consumed event, if any. activePopupOnPress is the window that we have observed previously handling the press.
Definition at line 2504 of file qwindow.cpp.
|
inlinestatic |
Definition at line 111 of file qwindow_p.h.
| QPoint QWindowPrivate::globalPosition | ( | ) | const |
Definition at line 3111 of file qwindow.cpp.
Definition at line 218 of file qwindow.cpp.
|
inline |
Definition at line 105 of file qwindow_p.h.
|
virtual |
Synthesize and send a QContextMenuEvent if the given event is a suitable mouse event (a right-button press or release, depending on QStyleHints::contextMenuTrigger()). On most platforms, it's done on mouse press; on Windows, it's done on release, because of the potential to support right-button clicks and drags to select or lasso items, and then still getting a context menu at the end of that gesture. (That is in conflict with supporting the press-drag-release gesture to select menu items on the context menus themselves. Context menus can be implemented that way by handling the separate press, move and release events.)
Any time the event was already handled in some way, it should be accepted, but mere acceptance of the mouse event cannot be taken to indicate that it's not necessary to synthesize a QContextMenuEvent here, because the Windows use case requires doing one thing (selecting items) with the mouse events, and then doing something completely different with the QContextMenuEvent. In other words, QContextMenuEvent is very different from other kinds of optional followup events synthesized from unhandled events (like the way we synthesize a QMouseEvent only if a QTabletEvent was not handled). Furthermore, there's enough legacy widget code that doesn't call ignore() on unhandled mouse events. So it's uncertain whether this can change in Qt 7.
The QContextMenuEvent occurs at the scenePosition(). The position() was likely already "localized" during the previous delivery.
The synthesis from a mouse button event could be done in the platform plugin, but so far on Windows it's not done: WM_CONTEXTMENU is not generated by the OS, because we never call the default window procedure that would do that in response to unhandled WM_RBUTTONUP. If we eventually want to do that, we would have to avoid doing it here, on platforms where the platform plugin is responsible for it.
QGuiApplicationPrivate::processContextMenuEvent also allows keyboard-triggered context menu events that the QPA plugin might generate. On Windows, the keyboard may have a menu key. On macOS, control-return is the usual shortcut; on Gnome, it's shift-F10; and so on.
Reimplemented in QQuickWindowPrivate.
Definition at line 2834 of file qwindow.cpp.
|
virtual |
Reimplemented in QWidgetWindowPrivate, and QWidgetWindowPrivate.
Definition at line 2473 of file qwindow.cpp.
Definition at line 1893 of file qwindow.cpp.
|
inline |
Definition at line 106 of file qwindow_p.h.
Definition at line 3267 of file qwindow.cpp.
|
inlinevirtual |
Reimplemented in QQuickWindowPrivate, QWidgetWindowPrivate, and QWidgetWindowPrivate.
Definition at line 90 of file qwindow_p.h.
| void QWindowPrivate::setMinOrMaxSize | ( | QSize * | oldSizeMember, |
| const QSize & | size, | ||
| qxp::function_ref< void()> | funcWidthChanged, | ||
| qxp::function_ref< void()> | funcHeightChanged ) |
Definition at line 628 of file qwindow.cpp.
Definition at line 521 of file qwindow.cpp.
Definition at line 1599 of file qwindow.cpp.
|
virtual |
Reimplemented in QQuickPopupWindowPrivate, QQuickPopupWindowPrivate, QQuickWidgetOffscreenWindowPrivate, QQuickWidgetOffscreenWindowPrivate, QWidgetWindowPrivate, and QWidgetWindowPrivate.
Definition at line 354 of file qwindow.cpp.
| QWindow * QWindowPrivate::topLevelWindow | ( | QWindow::AncestorMode | mode = QWindow::IncludeTransients | ) | const |
Definition at line 3133 of file qwindow.cpp.
|
virtual |
Reimplemented in QWidgetWindowPrivate, and QWidgetWindowPrivate.
Definition at line 2494 of file qwindow.cpp.
| bool QWindowPrivate::updateDevicePixelRatio | ( | ) |
Definition at line 1430 of file qwindow.cpp.
| void QWindowPrivate::updateSiblingPosition | ( | SiblingPosition | position | ) |
Definition at line 467 of file qwindow.cpp.
| void QWindowPrivate::updateVisibility | ( | ) |
Definition at line 446 of file qwindow.cpp.
|
inlinevirtual |
Reimplemented in QQuickApplicationWindowPrivate.
Definition at line 62 of file qwindow_p.h.
| bool QWindowPrivate::windowRecreationRequired | ( | QScreen * | newScreen | ) | const |
Definition at line 491 of file qwindow.cpp.
| QSize QWindowPrivate::baseSize |
Definition at line 146 of file qwindow_p.h.
| bool QWindowPrivate::blockedByModalWindow = false |
Definition at line 150 of file qwindow_p.h.
| Qt::ScreenOrientation QWindowPrivate::contentOrientation = Qt::PrimaryOrientation |
Definition at line 140 of file qwindow_p.h.
| QCursor QWindowPrivate::cursor = {Qt::ArrowCursor} |
Definition at line 159 of file qwindow_p.h.
| qreal QWindowPrivate::devicePixelRatio = 1.0 |
Definition at line 128 of file qwindow_p.h.
| bool QWindowPrivate::exposed = false |
Definition at line 121 of file qwindow_p.h.
| QRect QWindowPrivate::geometry |
Definition at line 127 of file qwindow_p.h.
| bool QWindowPrivate::hasCursor = false |
Definition at line 160 of file qwindow_p.h.
| bool QWindowPrivate::inClose = false |
Definition at line 122 of file qwindow_p.h.
| QElapsedTimer QWindowPrivate::lastComposeTime |
Definition at line 163 of file qwindow_p.h.
| QRegion QWindowPrivate::mask |
Definition at line 142 of file qwindow_p.h.
| QSize QWindowPrivate::maximumSize = {QWINDOWSIZE_MAX, QWINDOWSIZE_MAX} |
Definition at line 145 of file qwindow_p.h.
| QSize QWindowPrivate::minimumSize = {0, 0} |
Definition at line 144 of file qwindow_p.h.
| Qt::WindowModality QWindowPrivate::modality = Qt::NonModal |
Definition at line 149 of file qwindow_p.h.
| qreal QWindowPrivate::opacity = 1 |
Definition at line 141 of file qwindow_p.h.
Definition at line 117 of file qwindow_p.h.
| QPlatformWindow* QWindowPrivate::platformWindow = nullptr |
Definition at line 118 of file qwindow_p.h.
| bool QWindowPrivate::positionAutomatic = true |
Definition at line 134 of file qwindow_p.h.
| PositionPolicy QWindowPrivate::positionPolicy = WindowFrameExclusive |
Definition at line 133 of file qwindow_p.h.
| bool QWindowPrivate::receivedExpose = false |
Definition at line 132 of file qwindow_p.h.
| QSurfaceFormat QWindowPrivate::requestedFormat |
Definition at line 123 of file qwindow_p.h.
| bool QWindowPrivate::resizeAutomatic = true |
Definition at line 139 of file qwindow_p.h.
| bool QWindowPrivate::resizeEventPending = true |
Definition at line 131 of file qwindow_p.h.
| QSize QWindowPrivate::sizeIncrement |
Definition at line 147 of file qwindow_p.h.
| QWindow::SurfaceType QWindowPrivate::surfaceType = QWindow::RasterSurface |
Definition at line 115 of file qwindow_p.h.
Definition at line 156 of file qwindow_p.h.
Definition at line 155 of file qwindow_p.h.
| bool QWindowPrivate::transientParentPropertySet = false |
Definition at line 153 of file qwindow_p.h.
| bool QWindowPrivate::updateRequestPending = false |
Definition at line 152 of file qwindow_p.h.
| QWindow::Visibility QWindowPrivate::visibility = QWindow::Hidden |
Definition at line 130 of file qwindow_p.h.
| bool QWindowPrivate::visibilityOnDestroy = false |
Definition at line 120 of file qwindow_p.h.
| bool QWindowPrivate::visible = false |
Definition at line 119 of file qwindow_p.h.
| QString QWindowPrivate::windowFilePath |
Definition at line 125 of file qwindow_p.h.
| Qt::WindowFlags QWindowPrivate::windowFlags = Qt::Window |
Definition at line 116 of file qwindow_p.h.
| QIcon QWindowPrivate::windowIcon |
Definition at line 126 of file qwindow_p.h.
| Qt::WindowStates QWindowPrivate::windowState = Qt::WindowNoState |
Definition at line 129 of file qwindow_p.h.
| QString QWindowPrivate::windowTitle |
Definition at line 124 of file qwindow_p.h.