![]() |
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) |
| static void | deleteInOwnThread (QObject *object) |
| 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 87 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 3274 of file qwindow.cpp.
| bool QWindowPrivate::applyCursor | ( | ) |
Definition at line 3351 of file qwindow.cpp.
|
virtual |
Reimplemented in QQuickWindowPrivate, QWidgetWindowPrivate, and QWidgetWindowPrivate.
Definition at line 616 of file qwindow.cpp.
Reimplemented in QWidgetWindowPrivate, and QWidgetWindowPrivate.
Definition at line 623 of file qwindow.cpp.
Definition at line 505 of file qwindow.cpp.
| void QWindowPrivate::create | ( | bool | recursive | ) |
Definition at line 545 of file qwindow.cpp.
| void QWindowPrivate::destroy | ( | ) |
Definition at line 2159 of file qwindow.cpp.
| void QWindowPrivate::disconnectFromScreen | ( | ) |
Definition at line 499 of file qwindow.cpp.
|
static |
Definition at line 1471 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 2539 of file qwindow.cpp.
|
inlinestatic |
Definition at line 115 of file qwindow_p.h.
| QPoint QWindowPrivate::globalPosition | ( | ) | const |
Definition at line 3146 of file qwindow.cpp.
Definition at line 218 of file qwindow.cpp.
|
inline |
Definition at line 109 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 2869 of file qwindow.cpp.
|
virtual |
Reimplemented in QWidgetWindowPrivate, and QWidgetWindowPrivate.
Definition at line 2508 of file qwindow.cpp.
Definition at line 1902 of file qwindow.cpp.
|
inline |
Definition at line 110 of file qwindow_p.h.
Definition at line 3327 of file qwindow.cpp.
|
inlinevirtual |
Reimplemented in QQuickWindowPrivate, QWidgetWindowPrivate, and QWidgetWindowPrivate.
Definition at line 94 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 629 of file qwindow.cpp.
Definition at line 521 of file qwindow.cpp.
Definition at line 1613 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 3168 of file qwindow.cpp.
|
virtual |
Reimplemented in QWidgetWindowPrivate, and QWidgetWindowPrivate.
Definition at line 2529 of file qwindow.cpp.
| bool QWindowPrivate::updateDevicePixelRatio | ( | ) |
Definition at line 1444 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, QWidgetWindowPrivate, and QWidgetWindowPrivate.
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 150 of file qwindow_p.h.
| bool QWindowPrivate::blockedByModalWindow = false |
Definition at line 154 of file qwindow_p.h.
| Qt::ScreenOrientation QWindowPrivate::contentOrientation = Qt::PrimaryOrientation |
Definition at line 144 of file qwindow_p.h.
| QCursor QWindowPrivate::cursor = {Qt::ArrowCursor} |
Definition at line 167 of file qwindow_p.h.
| qreal QWindowPrivate::devicePixelRatio = 1.0 |
Definition at line 132 of file qwindow_p.h.
| bool QWindowPrivate::exposed = false |
Definition at line 125 of file qwindow_p.h.
| QRect QWindowPrivate::geometry |
Definition at line 131 of file qwindow_p.h.
| bool QWindowPrivate::hasCursor = false |
Definition at line 168 of file qwindow_p.h.
| bool QWindowPrivate::inClose = false |
Definition at line 126 of file qwindow_p.h.
| QElapsedTimer QWindowPrivate::lastComposeTime |
Definition at line 171 of file qwindow_p.h.
| QRegion QWindowPrivate::mask |
Definition at line 146 of file qwindow_p.h.
| QSize QWindowPrivate::maximumSize = {QWINDOWSIZE_MAX, QWINDOWSIZE_MAX} |
Definition at line 149 of file qwindow_p.h.
| QSize QWindowPrivate::minimumSize = {0, 0} |
Definition at line 148 of file qwindow_p.h.
| Qt::WindowModality QWindowPrivate::modality = Qt::NonModal |
Definition at line 153 of file qwindow_p.h.
| qreal QWindowPrivate::opacity = 1 |
Definition at line 145 of file qwindow_p.h.
Definition at line 121 of file qwindow_p.h.
| QPlatformWindow* QWindowPrivate::platformWindow = nullptr |
Definition at line 122 of file qwindow_p.h.
| bool QWindowPrivate::positionAutomatic = true |
Definition at line 138 of file qwindow_p.h.
| PositionPolicy QWindowPrivate::positionPolicy = WindowFrameExclusive |
Definition at line 137 of file qwindow_p.h.
| bool QWindowPrivate::receivedExpose = false |
Definition at line 136 of file qwindow_p.h.
| QSurfaceFormat QWindowPrivate::requestedFormat |
Definition at line 127 of file qwindow_p.h.
| bool QWindowPrivate::resizeAutomatic = true |
Definition at line 143 of file qwindow_p.h.
| bool QWindowPrivate::resizeEventPending = true |
Definition at line 135 of file qwindow_p.h.
| QSize QWindowPrivate::sizeIncrement |
Definition at line 151 of file qwindow_p.h.
| QWindow::SurfaceType QWindowPrivate::surfaceType = QWindow::RasterSurface |
Definition at line 119 of file qwindow_p.h.
Definition at line 160 of file qwindow_p.h.
Definition at line 159 of file qwindow_p.h.
| bool QWindowPrivate::transientParentPropertySet = false |
Definition at line 157 of file qwindow_p.h.
| bool QWindowPrivate::updateRequestPending = false |
Definition at line 156 of file qwindow_p.h.
| QWindow::Visibility QWindowPrivate::visibility = QWindow::Hidden |
Definition at line 134 of file qwindow_p.h.
| bool QWindowPrivate::visibilityOnDestroy = false |
Definition at line 124 of file qwindow_p.h.
| bool QWindowPrivate::visible = false |
Definition at line 123 of file qwindow_p.h.
| QString QWindowPrivate::windowFilePath |
Definition at line 129 of file qwindow_p.h.
| Qt::WindowFlags QWindowPrivate::windowFlags = Qt::Window |
Definition at line 120 of file qwindow_p.h.
| QIcon QWindowPrivate::windowIcon |
Definition at line 130 of file qwindow_p.h.
| Qt::WindowStates QWindowPrivate::windowState = Qt::WindowNoState |
Definition at line 133 of file qwindow_p.h.
| QString QWindowPrivate::windowTitle |
Definition at line 128 of file qwindow_p.h.