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>.
Loading...
Searching...
No Matches
QMdiSubWindowPrivate Class Reference

#include <qmdisubwindow_p.h>

+ Inheritance diagram for QMdiSubWindowPrivate:
+ Collaboration diagram for QMdiSubWindowPrivate:

Classes

struct  OperationInfo
 

Public Types

enum  Operation {
  None , Move , TopResize , BottomResize ,
  LeftResize , RightResize , TopLeftResize , TopRightResize ,
  BottomLeftResize , BottomRightResize
}
 
enum  ChangeFlag {
  HMove = 0x01 , VMove = 0x02 , HResize = 0x04 , VResize = 0x08 ,
  HResizeReverse = 0x10 , VResizeReverse = 0x20
}
 
enum  WindowStateAction {
  RestoreAction , MoveAction , ResizeAction , MinimizeAction ,
  MaximizeAction , StayOnTopAction , CloseAction , NumWindowStateActions
}
 
typedef QMap< Operation, OperationInfoOperationInfoMap
 
- Public Types inherited from QWidgetPrivate
enum  DrawWidgetFlag {
  DrawAsRoot = 0x01 , DrawPaintOnScreen = 0x02 , DrawRecursive = 0x04 , DrawInvisible = 0x08 ,
  DontSubtractOpaqueChildren = 0x10 , DontDrawOpaqueChildren = 0x20 , DontDrawNativeChildren = 0x40 , DontSetCompositionMode = 0x80 ,
  UseEffectRegionBounds = 0x100
}
 
enum  Direction { DirectionNorth = 0x01 , DirectionEast = 0x10 , DirectionSouth = 0x02 , DirectionWest = 0x20 }
 
enum class  WindowHandleMode { Direct , Closest , TopLevel }
 
enum  CloseMode { CloseNoEvent , CloseWithEvent , CloseWithSpontaneousEvent }
 
enum class  FocusDirection { Previous , Next }
 
enum class  FocusChainRemovalRule { EnsureFocusOut = 0x01 , AssertConsistency = 0x02 }
 
- Public Types inherited from QObjectPrivate
typedef void(* StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **)
 
using ConnectionDataPointer = QExplicitlySharedDataPointer<ConnectionData>
 

Public Member Functions

 QMdiSubWindowPrivate ()
 
void _q_updateStaysOnTopHint ()
 
void _q_enterInteractiveMode ()
 
void _q_processFocusChanged (QWidget *old, QWidget *now)
 
void leaveInteractiveMode ()
 
void removeBaseWidget ()
 
void initOperationMap ()
 
void updateCursor ()
 
void updateDirtyRegions ()
 
void updateGeometryConstraints ()
 
void updateMask ()
 
void setNewGeometry (const QPoint &pos)
 
void setMinimizeMode ()
 
void setNormalMode ()
 
void setMaximizeMode ()
 
void setActive (bool activate, bool changeFocus=true)
 
void processClickedSubControl ()
 
QRegion getRegion (Operation operation) const
 
Operation getOperation (const QPoint &pos) const
 
QStyleOptionTitleBar titleBarOptions () const
 
void ensureWindowState (Qt::WindowState state)
 
int titleBarHeight (const QStyleOptionTitleBar &options) const
 
void sizeParameters (int *margin, int *minWidth) const
 
bool drawTitleBarWhenMaximized () const
 
void updateWindowTitle (bool requestFromChild)
 
QPalette desktopPalette () const
 
void updateActions ()
 
void setFocusWidget ()
 
bool restoreFocus ()
 
void storeFocusWidget ()
 
void setWindowFlags (Qt::WindowFlags windowFlags) override
 
void setVisible (WindowStateAction, bool visible=true)
 
void setEnabled (WindowStateAction, bool enable=true)
 
QSize iconSize () const
 
void updateInternalWindowTitle ()
 
QString originalWindowTitle ()
 
QString originalWindowTitleHelper () const
 
void setNewWindowTitle ()
 
int titleBarHeight () const
 
QStyle::SubControl getSubControl (const QPoint &pos) const
 
void setNewGeometry (QRect *geometry)
 
bool hasBorder (const QStyleOptionTitleBar &options) const
 
bool autoRaise () const
 
bool isResizeOperation () const
 
bool isMoveOperation () const
 
- Public Member Functions inherited from QWidgetPrivate
 QWidgetPrivate (int version=QObjectPrivateVersion)
 
 ~QWidgetPrivate ()
 
QWExtraextraData () const
 
QTLWExtratopData () const
 
QTLWExtramaybeTopData () const
 
QPaintersharedPainter () const
 
void setSharedPainter (QPainter *painter)
 
QWidgetRepaintManagermaybeRepaintManager () const
 
QRhirhi () const
 
QWindowwindowHandle (WindowHandleMode mode=WindowHandleMode::Direct) const
 
QWindow_q_closestWindowHandle () const
 
QScreenassociatedScreen () const
 
template<typename T >
void repaint (T t)
 
template<typename T >
void update (T t)
 
void init (QWidget *desktopWidget, Qt::WindowFlags f)
 
void create ()
 
void createRecursively ()
 
void createWinId ()
 
bool setScreenForPoint (const QPoint &pos)
 
bool setScreen (QScreen *screen)
 
void createTLExtra ()
 
void createExtra ()
 
void deleteExtra ()
 
void createSysExtra ()
 
void deleteSysExtra ()
 
void createTLSysExtra ()
 
void deleteTLSysExtra ()
 
void updateSystemBackground ()
 
void propagatePaletteChange ()
 
void setPalette_helper (const QPalette &)
 
void resolvePalette ()
 
QPalette naturalWidgetPalette (QPalette::ResolveMask inheritedMask) const
 
void setMask_sys (const QRegion &)
 
void raise_sys ()
 
void lower_sys ()
 
void stackUnder_sys (QWidget *)
 
QWidgetdeepestFocusProxy () const
 
void setFocus_sys ()
 
void updateFocusChild ()
 
void updateFont (const QFont &)
 
void setFont_helper (const QFont &font)
 
QFont localFont () const
 
void resolveFont ()
 
QFont naturalWidgetFont (uint inheritedMask) const
 
void setLayoutDirection_helper (Qt::LayoutDirection)
 
void resolveLayoutDirection ()
 
void setLocale_helper (const QLocale &l, bool forceUpdate=false)
 
void resolveLocale ()
 
void setStyle_helper (QStyle *newStyle, bool propagate)
 
void inheritStyle ()
 
void setUpdatesEnabled_helper (bool)
 
bool updateBrushOrigin (QPainter *, const QBrush &brush) const
 
void paintBackground (QPainter *, const QRegion &, DrawWidgetFlags flags=DrawAsRoot) const
 
bool isAboutToShow () const
 The graphicsEffect function returns a pointer to the widget's graphics effect.
 
QRegion prepareToRender (const QRegion &region, QWidget::RenderFlags renderFlags)
 
void render_helper (QPainter *painter, const QPoint &targetOffset, const QRegion &sourceRegion, QWidget::RenderFlags renderFlags)
 
void render (QPaintDevice *target, const QPoint &targetOffset, const QRegion &sourceRegion, QWidget::RenderFlags renderFlags)
 
void drawWidget (QPaintDevice *pdev, const QRegion &rgn, const QPoint &offset, DrawWidgetFlags flags, QPainter *sharedPainter=nullptr, QWidgetRepaintManager *repaintManager=nullptr)
 
void sendPaintEvent (const QRegion &toBePainted)
 
void paintSiblingsRecursive (QPaintDevice *pdev, const QObjectList &children, int index, const QRegion &rgn, const QPoint &offset, DrawWidgetFlags flags, QPainter *sharedPainter, QWidgetRepaintManager *repaintManager)
 
bool shouldPaintOnScreen () const
 
void paintOnScreen (const QRegion &rgn)
 
QRect clipRect () const
 
QRegion clipRegion () const
 
void setSystemClip (QPaintEngine *paintEngine, qreal devicePixelRatio, const QRegion &region)
 
void subtractOpaqueChildren (QRegion &rgn, const QRect &clipRect) const
 
void subtractOpaqueSiblings (QRegion &source, bool *hasDirtySiblingsAbove=nullptr, bool alsoNonOpaque=false) const
 
void clipToEffectiveMask (QRegion &region) const
 
void updateIsOpaque ()
 
void setOpaque (bool opaque)
 
void updateIsTranslucent ()
 
const QRegiongetOpaqueChildren () const
 
void setDirtyOpaqueRegion ()
 
bool close ()
 
bool handleClose (CloseMode mode)
 
void setWindowIcon_helper ()
 
void setWindowIcon_sys ()
 
void setWindowOpacity_sys (qreal opacity)
 
void adjustQuitOnCloseAttribute ()
 
void scrollChildren (int dx, int dy)
 
void moveRect (const QRect &, int dx, int dy)
 
void scrollRect (const QRect &, int dx, int dy)
 
void invalidateBackingStore_resizeHelper (const QPoint &oldPos, const QSize &oldSize)
 Invalidates the backing store when the widget is resized.
 
template<class T >
void invalidateBackingStore (const T &)
 
QRegion overlappedRegion (const QRect &rect, bool breakAfterFirst=false) const
 
bool isOverlapped (const QRect &rect) const
 
void syncBackingStore ()
 
void syncBackingStore (const QRegion &region)
 
bool shouldDiscardSyncRequest () const
 
void updateWidgetTransform (QEvent *event)
 
void reparentFocusWidgets (QWidget *oldtlw)
 
void setWinId (WId)
 
void showChildren (bool spontaneous)
 
void hideChildren (bool spontaneous)
 
void setParent_sys (QWidget *parent, Qt::WindowFlags)
 
void reparentWidgetWindows (QWidget *parentWithWindow, Qt::WindowFlags windowFlags={})
 
void reparentWidgetWindowChildren (QWidget *parentWithWindow)
 
void scroll_sys (int dx, int dy)
 
void scroll_sys (int dx, int dy, const QRect &r)
 
void deactivateWidgetCleanup ()
 
void setGeometry_sys (int, int, int, int, bool)
 
void fixPosIncludesFrame ()
 
void sendPendingMoveAndResizeEvents (bool recursive=false, bool disableUpdates=false)
 
void activateChildLayoutsRecursively ()
 
void show_recursive ()
 
void show_helper ()
 
void show_sys ()
 
void hide_sys ()
 
void hide_helper ()
 
bool isExplicitlyHidden () const
 
void _q_showIfNotHidden ()
 
void setVisible (bool)
 
void setEnabled_helper (bool)
 
void updateFrameStrut ()
 
QRect frameStrut () const
 
void setWindowIconText_sys (const QString &cap)
 
void setWindowIconText_helper (const QString &cap)
 
void setWindowTitle_sys (const QString &cap)
 
void setWindowFilePath_sys (const QString &filePath)
 
void setCursor_sys (const QCursor &cursor)
 
void unsetCursor_sys ()
 
void setWindowTitle_helper (const QString &cap)
 
void setWindowFilePath_helper (const QString &filePath)
 
void setWindowModified_helper ()
 
bool setMinimumSize_helper (int &minw, int &minh)
 
bool setMaximumSize_helper (int &maxw, int &maxh)
 
void setConstraints_sys ()
 
bool pointInsideRectAndMask (const QPoint &) const
 
QWidgetchildAt_helper (const QPoint &, bool) const
 
QWidgetchildAtRecursiveHelper (const QPoint &p, bool) const
 
void updateGeometry_helper (bool forceUpdate)
 
void getLayoutItemMargins (int *left, int *top, int *right, int *bottom) const
 
void setLayoutItemMargins (int left, int top, int right, int bottom)
 
void setLayoutItemMargins (QStyle::SubElement element, const QStyleOption *opt=nullptr)
 
void updateContentsRect ()
 
QMargins safeAreaMargins () const
 
virtual void aboutToDestroy ()
 
QWidgeteffectiveFocusWidget ()
 
void setModal_sys ()
 
void setRedirected (QPaintDevice *replacement, const QPoint &offset)
 
QPaintDeviceredirected (QPoint *offset) const
 
void restoreRedirected ()
 
void enforceNativeChildren ()
 
bool nativeChildrenForced () const
 
QRect effectiveRectFor (const QRegion &region) const
 
QRect effectiveRectFor (const QRect &rect) const
 
QSize adjustedSize () const
 
void handleSoftwareInputPanel (Qt::MouseButton button, bool clickCausedFocus)
 
void handleSoftwareInputPanel (bool clickCausedFocus=false)
 
void setWSGeometry ()
 
QPoint mapToWS (const QPoint &p) const
 
QPoint mapFromWS (const QPoint &p) const
 
QRect mapToWS (const QRect &r) const
 
QRect mapFromWS (const QRect &r) const
 
virtual QObjectfocusObject ()
 
virtual QPlatformBackingStoreRhiConfig rhiConfig () const
 
virtual TextureData texture () const
 
virtual QPlatformTextureList::Flags textureListFlags ()
 
virtual QImage grabFramebuffer ()
 
virtual void beginBackingStorePainting ()
 
virtual void endBackingStorePainting ()
 
virtual void beginCompose ()
 
virtual void endCompose ()
 
void setRenderToTexture ()
 
void setTextureChildSeen ()
 
virtual void initializeViewportFramebuffer ()
 
virtual void resizeViewportFramebuffer ()
 
virtual void resolveSamples ()
 
virtual bool isStereoEnabled ()
 
virtual bool toggleStereoTargetBuffer ()
 
std::string flagsForDumping () const override
 
QWidgetclosestParentWidgetWithWindowHandle () const
 
QWidgetnextPrevElementInFocusChain (FocusDirection direction) const
 
bool removeFromFocusChain (FocusChainRemovalRules rules=FocusChainRemovalRules(), FocusDirection direction=FocusDirection::Next)
 
bool insertIntoFocusChain (FocusDirection direction, QWidget *position)
 
bool insertIntoFocusChainBefore (QWidget *position)
 
bool insertIntoFocusChainAfter (QWidget *position)
 
void reparentFocusChildren (FocusDirection direction)
 
QWidgetdetermineLastFocusChild (QWidget *noFurtherThan)
 
void initFocusChain ()
 
bool isInFocusChain () const
 
bool isFocusChainConsistent () const
 
void setNetWmWindowTypes (bool skipIfMissing=false)
 
bool stealKeyboardGrab (bool grab)
 
bool stealMouseGrab (bool grab)
 
bool hasChildWithFocusPolicy (Qt::FocusPolicy policy, const QWidget *excludeChildrenOf=nullptr) const
 
- Public Member Functions inherited from QObjectPrivate
void ensureExtraData ()
 
 QObjectPrivate (int version=QObjectPrivateVersion)
 
virtual ~QObjectPrivate ()
 
void deleteChildren ()
 
void clearBindingStorage ()
 
void checkForIncompatibleLibraryVersion (int version) const
 
void setParent_helper (QObject *)
 
void moveToThread_helper ()
 
void setThreadData_helper (QThreadData *currentData, QThreadData *targetData, QBindingStatus *status)
 
QObjectList receiverList (const char *signal) const
 
void ensureConnectionData ()
 
void addConnection (int signal, Connection *c)
 
int signalIndex (const char *signalName, const QMetaObject **meta=nullptr) const
 
bool isSignalConnected (uint signalIdx, bool checkDeclarative=true) const
 
bool maybeSignalConnected (uint signalIndex) const
 
bool isDeclarativeSignalConnected (uint signalIdx) const
 
void connectNotify (const QMetaMethod &signal)
 
void disconnectNotify (const QMetaMethod &signal)
 
void reinitBindingStorageAfterThreadMove ()
 
virtual void writeToDebugStream (QDebug &) const
 
QtPrivate::QPropertyAdaptorSlotObjectgetPropertyAdaptorSlotObject (const QMetaProperty &property)
 
- Public Member Functions inherited from QObjectData
 QObjectData ()=default
 
virtual ~QObjectData ()=0
 
QMetaObjectdynamicMetaObject () const
 

Public Attributes

QPointer< QWidgetbaseWidget
 
QPointer< QWidgetrestoreFocusWidget
 
QPointer< QMdi::ControlContainercontrolContainer
 
QPoint mousePressPosition
 
QRect oldGeometry
 
QSize internalMinimumSize
 
QSize userMinimumSize
 
QSize restoreSize
 
bool resizeEnabled
 
bool moveEnabled
 
bool isInInteractiveMode
 
bool isShadeMode
 
bool ignoreWindowTitleChange
 
bool ignoreNextActivationEvent
 
bool activationEnabled
 
bool isShadeRequestFromMinimizeMode
 
bool isMaximizeMode
 
bool isWidgetHiddenByUs
 
bool isActive
 
bool isExplicitlyDeactivated
 
int keyboardSingleStep
 
int keyboardPageStep
 
int resizeTimerId
 
Operation currentOperation
 
QStyle::SubControl hoveredSubControl
 
QStyle::SubControl activeSubControl
 
Qt::FocusReason focusInReason
 
OperationInfoMap operationMap
 
QPointer< QMenusystemMenu
 
QPointer< QActionactions [NumWindowStateActions]
 
QMdiSubWindow::SubWindowOptions options
 
QString lastChildWindowTitle
 
QPalette titleBarPalette
 
QString windowTitle
 
QFont font
 
QIcon menuIcon
 
QStyleOptionTitleBar cachedStyleOptions
 
QString originalTitle
 
- Public Attributes inherited from QWidgetPrivate
std::unique_ptr< QWExtraextra
 
QWidgetfocus_next
 
QWidgetfocus_prev
 
QWidgetfocus_child
 
QLayoutlayout
 
QRegionneedsFlush
 
QPaintDeviceredirectDev
 
QWidgetItemV2widgetItem
 
QPaintEngineextraPaintEngine
 
const QMetaObjectpolished
 
QGraphicsEffectgraphicsEffect
 
Qt::InputMethodHints imHints
 
QRegion opaqueChildren
 
QRegion dirty
 
uint directFontResolveMask
 
uint inheritedFontResolveMask
 
decltype(std::declval< QPalette >().resolveMask()) directPaletteResolveMask
 
QPalette::ResolveMask inheritedPaletteResolveMask
 
short leftmargin
 
short topmargin
 
short rightmargin
 
short bottommargin
 
signed char leftLayoutItemMargin
 
signed char topLayoutItemMargin
 
signed char rightLayoutItemMargin
 
signed char bottomLayoutItemMargin
 
Qt::HANDLE hd
 
QWidgetData data
 
QSizePolicy size_policy
 
QLocale locale
 
QPoint redirectOffset
 
QList< QAction * > actions
 
QMap< Qt::GestureType, Qt::GestureFlags > gestureContext
 
uint high_attributes [4]
 
QPalette::ColorRole fg_role: 8
 
QPalette::ColorRole bg_role: 8
 
uint dirtyOpaqueChildren: 1
 
uint isOpaque: 1
 
uint retainSizeWhenHiddenChanged: 1
 
uint inDirtyList: 1
 
uint isScrolled: 1
 
uint isMoved: 1
 
uint usesDoubleBufferedGLContext: 1
 
uint mustHaveWindowHandle: 1
 
uint renderToTexture: 1
 
uint textureChildSeen: 1
 
uint inheritsInputMethodHints: 1
 
uint renderToTextureReallyDirty: 1
 
uint usesRhiFlush: 1
 
uint childrenHiddenByWState: 1
 
uint childrenShownByExpose: 1
 
- Public Attributes inherited from QObjectPrivate
ExtraDataextraData
 
QAtomicPointer< QThreadDatathreadData
 
QAtomicPointer< ConnectionDataconnections
 
union { 
 
   QObject *   currentChildBeingDeleted 
 
   QAbstractDeclarativeData *   declarativeData 
 
};  
 
QAtomicPointer< QtSharedPointer::ExternalRefCountDatasharedRefcount
 
- Public Attributes inherited from QObjectData
QObjectq_ptr
 
QObjectparent
 
QObjectList children
 
uint isWidget: 1
 
uint blockSig: 1
 
uint wasDeleted: 1
 
uint isDeletingChildren: 1
 
uint sendChildEvents: 1
 
uint receiveChildEvents: 1
 
uint isWindow: 1
 
uint deleteLaterCalled: 1
 
uint isQuickItem: 1
 
uint willBeWidget: 1
 
uint wasWidget: 1
 
uint receiveParentEvents: 1
 
uint unused: 20
 
QAtomicInt postedEvents
 
QDynamicMetaObjectDatametaObject
 
QBindingStorage bindingStorage
 

Additional Inherited Members

- Static Public Member Functions inherited from QWidgetPrivate
static QWidgetPrivateget (QWidget *w)
 
static const QWidgetPrivateget (const QWidget *w)
 
static void checkRestoredGeometry (const QRect &availableGeometry, QRect *restoredGeometry, int frameHeight)
 
static void adjustFlags (Qt::WindowFlags &flags, QWidget *w=nullptr)
 
static QWidgetparentGraphicsView (const QWidget *widget)
 
static QRect screenGeometry (const QWidget *widget)
 
static QRect availableScreenGeometry (const QWidget *widget)
 
static QScreenscreen (const QWidget *widget, const QPoint &globalPosition, bool hasPosition=true)
 
static QRect screenGeometry (const QWidget *widget, const QPoint &globalPosition, bool hasPosition=true)
 
static QRect availableScreenGeometry (const QWidget *widget, const QPoint &globalPosition, bool hasPosition=true)
 
static void sendComposeStatus (QWidget *w, bool end)
 
static void setWidgetParentHelper (QObject *widgetAsObject, QObject *newParent)
 
static bool insertIntoFocusChain (const QWidgetList &toBeInserted, FocusDirection direction, QWidget *position)
 
static QWidgetList takeFromFocusChain (QWidget *from, QWidget *to, FocusDirection direction=FocusDirection::Next)
 
- Static Public Member Functions inherited from QObjectPrivate
static bool removeConnection (Connection *c)
 
static QObjectPrivateget (QObject *o)
 
static const QObjectPrivateget (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)
 
- Static Public Attributes inherited from QWidgetPrivate
static QWidgetMappermapper = nullptr
 
static QWidgetSetallWidgets = nullptr
 
static int instanceCounter = 0
 
static int maxInstances = 0
 

Detailed Description

Definition at line 88 of file qmdisubwindow_p.h.

Member Typedef Documentation

◆ OperationInfoMap

Member Enumeration Documentation

◆ ChangeFlag

Enumerator
HMove 
VMove 
HResize 
VResize 
HResizeReverse 
VResizeReverse 

Definition at line 106 of file qmdisubwindow_p.h.

◆ Operation

Enumerator
None 
Move 
TopResize 
BottomResize 
LeftResize 
RightResize 
TopLeftResize 
TopRightResize 
BottomLeftResize 
BottomRightResize 

Definition at line 93 of file qmdisubwindow_p.h.

◆ WindowStateAction

Enumerator
RestoreAction 
MoveAction 
ResizeAction 
MinimizeAction 
MaximizeAction 
StayOnTopAction 
CloseAction 
NumWindowStateActions 

Definition at line 115 of file qmdisubwindow_p.h.

Constructor & Destructor Documentation

◆ QMdiSubWindowPrivate()

QMdiSubWindowPrivate::QMdiSubWindowPrivate ( )

Definition at line 852 of file qmdisubwindow.cpp.

References initOperationMap().

+ Here is the call graph for this function:

Member Function Documentation

◆ _q_enterInteractiveMode()

void QMdiSubWindowPrivate::_q_enterInteractiveMode ( )

Definition at line 911 of file qmdisubwindow.cpp.

References actions, BottomLeftResize, BottomRightResize, currentOperation, isInInteractiveMode, mousePressPosition, Move, MoveAction, oldGeometry, QStyle::PM_MdiSubWindowFrameWidth, ResizeAction, QMdiSubWindow::RubberBandMove, QMdiSubWindow::RubberBandResize, titleBarHeight(), and updateCursor().

+ Here is the call graph for this function:

◆ _q_processFocusChanged()

void QMdiSubWindowPrivate::_q_processFocusChanged ( QWidget * old,
QWidget * now )

Definition at line 956 of file qmdisubwindow.cpp.

References isInInteractiveMode, now, Q_UNUSED, setActive(), and setFocusWidget().

+ Here is the call graph for this function:

◆ _q_updateStaysOnTopHint()

void QMdiSubWindowPrivate::_q_updateStaysOnTopHint ( )

Definition at line 892 of file qmdisubwindow.cpp.

References Qt::WindowStaysOnTopHint.

◆ autoRaise()

bool QMdiSubWindowPrivate::autoRaise ( ) const
inline

Definition at line 296 of file qmdisubwindow_p.h.

References QStyle::SH_TitleBar_AutoRaise.

Referenced by titleBarOptions().

+ Here is the caller graph for this function:

◆ desktopPalette()

QPalette QMdiSubWindowPrivate::desktopPalette ( ) const

Definition at line 1912 of file qmdisubwindow.cpp.

References QPalette::Active, QPalette::Base, QPalette::Dark, QPalette::Highlight, QPalette::HighlightedText, QPalette::Inactive, QPalette::setColor(), and QPalette::Window.

+ Here is the call graph for this function:

◆ drawTitleBarWhenMaximized()

bool QMdiSubWindowPrivate::drawTitleBarWhenMaximized ( ) const

Definition at line 1757 of file qmdisubwindow.cpp.

References isChildOfQMdiSubWindow(), isChildOfTabbedQMdiArea(), QWidget::isHidden(), Q_UNUSED, QStyle::SH_Workspace_FillSpaceOnMaximize, and Qt::WA_CanHostQMdiSubWindowTitleBar.

Referenced by sizeParameters(), titleBarHeight(), and updateMask().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ensureWindowState()

void QMdiSubWindowPrivate::ensureWindowState ( Qt::WindowState state)

Definition at line 1672 of file qmdisubwindow.cpp.

References baseWidget, QWidget::overrideWindowState(), state, Qt::WindowActive, Qt::WindowMaximized, Qt::WindowMinimized, Qt::WindowNoState, and QWidget::windowState().

Referenced by setActive(), setMaximizeMode(), setMinimizeMode(), and setNormalMode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getOperation()

QMdiSubWindowPrivate::Operation QMdiSubWindowPrivate::getOperation ( const QPoint & pos) const

Definition at line 1603 of file qmdisubwindow.cpp.

References QMap< Key, T >::constBegin(), QMap< Key, T >::constEnd(), QSet< T >::contains(), it, None, operationMap, and pos.

+ Here is the call graph for this function:

◆ getRegion()

QRegion QMdiSubWindowPrivate::getRegion ( Operation operation) const

Definition at line 1536 of file qmdisubwindow.cpp.

References BottomLeftResize, BottomResize, BottomRightResize, QStyle::CC_TitleBar, i, isMacStyle(), LeftResize, Move, NumSubControls, QStyle::PM_MdiSubWindowFrameWidth, RightResize, QStyle::SC_TitleBarLabel, SubControls, titleBarHeight(), titleBarOptions(), TopLeftResize, TopResize, and TopRightResize.

Referenced by updateDirtyRegions().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getSubControl()

QStyle::SubControl QMdiSubWindowPrivate::getSubControl ( const QPoint & pos) const
inline

Definition at line 270 of file qmdisubwindow_p.h.

References QStyle::CC_TitleBar, and pos.

◆ hasBorder()

bool QMdiSubWindowPrivate::hasBorder ( const QStyleOptionTitleBar & options) const
inline

Definition at line 290 of file qmdisubwindow_p.h.

References QStyle::SH_TitleBar_NoBorder.

Referenced by titleBarHeight(), and titleBarOptions().

+ Here is the caller graph for this function:

◆ iconSize()

QSize QMdiSubWindowPrivate::iconSize ( ) const

Definition at line 2121 of file qmdisubwindow.cpp.

References Qt::FramelessWindowHint, QObjectData::parent, QStyle::PM_MdiSubWindowMinimizedWidth, and titleBarHeight().

+ Here is the call graph for this function:

◆ initOperationMap()

void QMdiSubWindowPrivate::initOperationMap ( )

Definition at line 1016 of file qmdisubwindow.cpp.

References Qt::ArrowCursor, BottomLeftResize, BottomResize, BottomRightResize, HMove, HResize, HResizeReverse, QMap< Key, T >::insert(), LeftResize, Move, operationMap, RightResize, Qt::SizeBDiagCursor, Qt::SizeFDiagCursor, Qt::SizeHorCursor, Qt::SizeVerCursor, TopLeftResize, TopResize, TopRightResize, VMove, VResize, and VResizeReverse.

Referenced by QMdiSubWindowPrivate().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isMoveOperation()

bool QMdiSubWindowPrivate::isMoveOperation ( ) const
inline

Definition at line 307 of file qmdisubwindow_p.h.

◆ isResizeOperation()

bool QMdiSubWindowPrivate::isResizeOperation ( ) const
inline

Definition at line 302 of file qmdisubwindow_p.h.

References None.

◆ leaveInteractiveMode()

void QMdiSubWindowPrivate::leaveInteractiveMode ( )

Definition at line 970 of file qmdisubwindow.cpp.

References baseWidget, currentOperation, QWidget::focusWidget(), isInInteractiveMode, None, QWidget::setFocus(), updateCursor(), and updateDirtyRegions().

+ Here is the call graph for this function:

◆ originalWindowTitle()

QString QMdiSubWindowPrivate::originalWindowTitle ( )

Definition at line 250 of file qmdisubwindow.cpp.

References QString::isNull(), originalTitle, and originalWindowTitleHelper().

Referenced by setNewWindowTitle().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ originalWindowTitleHelper()

QString QMdiSubWindowPrivate::originalWindowTitleHelper ( ) const

Definition at line 232 of file qmdisubwindow.cpp.

References originalTitle, and qt_widget_private().

Referenced by originalWindowTitle().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ processClickedSubControl()

void QMdiSubWindowPrivate::processClickedSubControl ( )

Definition at line 1480 of file qmdisubwindow.cpp.

References activeSubControl, QWhatsThis::enterWhatsThisMode(), hoveredSubControl, isMacStyle(), QStyle::SC_TitleBarCloseButton, QStyle::SC_TitleBarContextHelpButton, QStyle::SC_TitleBarMaxButton, QStyle::SC_TitleBarMinButton, QStyle::SC_TitleBarNormalButton, QStyle::SC_TitleBarShadeButton, and QStyle::SC_TitleBarUnshadeButton.

+ Here is the call graph for this function:

◆ removeBaseWidget()

void QMdiSubWindowPrivate::removeBaseWidget ( )

Definition at line 990 of file qmdisubwindow.cpp.

References baseWidget, QString::clear(), ignoreWindowTitleChange, isWidgetHiddenByUs, lastChildWindowTitle, QWidgetPrivate::layout, QWidget::parentWidget(), QObject::removeEventFilter(), QLayout::removeWidget(), QWidget::setParent(), and QWidget::windowTitle.

+ Here is the call graph for this function:

◆ restoreFocus()

bool QMdiSubWindowPrivate::restoreFocus ( )

Definition at line 2016 of file qmdisubwindow.cpp.

References QPointer< T >::clear(), QWidget::focusPolicy, QWidget::hasFocus(), QPointer< T >::isNull(), QWidget::isVisible(), Qt::NoFocus, restoreFocusWidget, and QWidget::setFocus().

Referenced by setFocusWidget(), setMaximizeMode(), and setNormalMode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setActive()

void QMdiSubWindowPrivate::setActive ( bool activate,
bool changeFocus = true )

Definition at line 1419 of file qmdisubwindow.cpp.

References activationEnabled, baseWidget, QWidget::clearFocus(), emit, ensureWindowState(), QApplication::focusWidget(), isActive, QWidget::isAncestorOf(), isExplicitlyDeactivated, menuBar, QWidget::overrideWindowState(), QObjectData::parent, QStyle::PM_MdiSubWindowFrameWidth, Q_ASSERT, resizeTimerId, setFocusWidget(), storeFocusWidget(), titleBarHeight(), updateDirtyRegions(), Qt::WindowActive, and QWidget::windowState().

Referenced by _q_processFocusChanged(), setMinimizeMode(), and setNormalMode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setEnabled()

void QMdiSubWindowPrivate::setEnabled ( WindowStateAction action,
bool enable = true )

Definition at line 2101 of file qmdisubwindow.cpp.

References actions, and QAction::setEnabled().

Referenced by setMaximizeMode(), setMinimizeMode(), and setNormalMode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setFocusWidget()

void QMdiSubWindowPrivate::setFocusWidget ( )

Definition at line 1969 of file qmdisubwindow.cpp.

References Qt::BacktabFocusReason, baseWidget, focusInReason, QWidget::focusPolicy, QWidget::focusWidget(), QWidget::isAncestorOf(), QWidget::nextInFocusChain(), Qt::NoFocus, restoreFocus(), QWidget::setFocus(), Qt::TabFocusReason, and Qt::WindowMinimized.

Referenced by _q_processFocusChanged(), and setActive().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setMaximizeMode()

◆ setMinimizeMode()

void QMdiSubWindowPrivate::setMinimizeMode ( )

Definition at line 1224 of file qmdisubwindow.cpp.

References ensureWindowState(), isShadeRequestFromMinimizeMode, MoveAction, moveEnabled, QObjectData::parent, Q_ASSERT, setActive(), setEnabled(), Qt::WindowMaximized, and Qt::WindowMinimized.

+ Here is the call graph for this function:

◆ setNewGeometry() [1/2]

void QMdiSubWindowPrivate::setNewGeometry ( const QPoint & pos)

Definition at line 1156 of file qmdisubwindow.cpp.

References QMdiSubWindow::AllowOutsideAreaHorizontally, QMdiSubWindow::AllowOutsideAreaVertically, BoundaryMargin, currentOperation, QMap< Key, T >::find(), getMoveDeltaComponent(), getResizeDeltaComponent(), QRect::height(), QSize::height(), HMove, HResize, HResizeReverse, internalMinimumSize, mousePressPosition, Move, None, oldGeometry, operationMap, QObjectData::parent, pos, Q_ASSERT, qMax(), qMin(), setNewGeometry(), QRect::setSize(), QRect::setTopLeft(), QRect::size(), QRect::topLeft(), VMove, VResize, VResizeReverse, QRect::width(), QSize::width(), QPoint::x(), QRect::x(), QPoint::y(), and QRect::y().

Referenced by setMaximizeMode(), and setNewGeometry().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setNewGeometry() [2/2]

void QMdiSubWindowPrivate::setNewGeometry ( QRect * geometry)
inline

Definition at line 277 of file qmdisubwindow_p.h.

References Q_ASSERT, QRect::setSize(), and QRect::size().

+ Here is the call graph for this function:

◆ setNewWindowTitle()

void QMdiSubWindowPrivate::setNewWindowTitle ( )

Definition at line 260 of file qmdisubwindow.cpp.

References QString::arg(), QString::contains(), ignoreWindowTitleChange, QString::isEmpty(), originalWindowTitle(), and title.

Referenced by updateWindowTitle().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setNormalMode()

◆ setVisible()

void QMdiSubWindowPrivate::setVisible ( WindowStateAction action,
bool visible = true )

Definition at line 2083 of file qmdisubwindow.cpp.

References actions, controlContainer, QMdi::ControlContainer::controllerWidget(), and QAction::setVisible().

Referenced by updateActions().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setWindowFlags()

void QMdiSubWindowPrivate::setWindowFlags ( Qt::WindowFlags windowFlags)
overridevirtual

◆ sizeParameters()

void QMdiSubWindowPrivate::sizeParameters ( int * margin,
int * minWidth ) const

Definition at line 1724 of file qmdisubwindow.cpp.

References QStyle::CC_TitleBar, drawTitleBarWhenMaximized(), Qt::FramelessWindowHint, i, NumSubControls, opt, QObjectData::parent, QStyle::PM_MdiSubWindowFrameWidth, rect, QStyle::SC_TitleBarLabel, SubControls, titleBarOptions(), and QRect::width().

Referenced by updateGeometryConstraints().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ storeFocusWidget()

void QMdiSubWindowPrivate::storeFocusWidget ( )
inline

Definition at line 1320 of file qmdisubwindow.cpp.

References focus, QApplication::focusWidget(), and restoreFocusWidget.

Referenced by setActive(), and setMaximizeMode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ titleBarHeight() [1/2]

int QMdiSubWindowPrivate::titleBarHeight ( ) const
inline

Definition at line 256 of file qmdisubwindow_p.h.

References Qt::FramelessWindowHint, QRect::height(), and QStyleOption::rect.

Referenced by _q_enterInteractiveMode(), getRegion(), iconSize(), setActive(), titleBarOptions(), updateGeometryConstraints(), and updateInternalWindowTitle().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ titleBarHeight() [2/2]

int QMdiSubWindowPrivate::titleBarHeight ( const QStyleOptionTitleBar & options) const

Definition at line 1707 of file qmdisubwindow.cpp.

References drawTitleBarWhenMaximized(), Qt::FramelessWindowHint, hasBorder(), options, QObjectData::parent, and QStyle::PM_TitleBarHeight.

+ Here is the call graph for this function:

◆ titleBarOptions()

◆ updateActions()

void QMdiSubWindowPrivate::updateActions ( )

Definition at line 1931 of file qmdisubwindow.cpp.

References actions, CloseAction, Qt::FramelessWindowHint, i, inherits(), MaximizeAction, MinimizeAction, MoveAction, moveEnabled, NumWindowStateActions, ResizeAction, resizeEnabled, RestoreAction, setVisible(), StayOnTopAction, Qt::WindowMaximizeButtonHint, Qt::WindowMinimizeButtonHint, and Qt::WindowSystemMenuHint.

Referenced by setWindowFlags().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateCursor()

void QMdiSubWindowPrivate::updateCursor ( )

Definition at line 1069 of file qmdisubwindow.cpp.

References currentOperation, QMap< Key, T >::find(), isMacStyle(), Move, None, and operationMap.

Referenced by _q_enterInteractiveMode(), and leaveInteractiveMode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateDirtyRegions()

void QMdiSubWindowPrivate::updateDirtyRegions ( )

Definition at line 1091 of file qmdisubwindow.cpp.

References QMap< Key, T >::begin(), QMap< Key, T >::end(), getRegion(), it, operationMap, and QObjectData::parent.

Referenced by leaveInteractiveMode(), setActive(), and updateGeometryConstraints().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateGeometryConstraints()

void QMdiSubWindowPrivate::updateGeometryConstraints ( )

Definition at line 1104 of file qmdisubwindow.cpp.

References internalMinimumSize, moveEnabled, Qt::MSWindowsFixedSizeDialogHint, QObjectData::parent, resizeEnabled, sizeParameters(), titleBarHeight(), and updateDirtyRegions().

Referenced by setMaximizeMode(), setNormalMode(), and setWindowFlags().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateInternalWindowTitle()

void QMdiSubWindowPrivate::updateInternalWindowTitle ( )

Definition at line 2176 of file qmdisubwindow.cpp.

References qt_setWindowTitle_helperHelper(), QString::replace(), titleBarHeight(), and windowTitle.

+ Here is the call graph for this function:

◆ updateMask()

void QMdiSubWindowPrivate::updateMask ( )

Definition at line 1131 of file qmdisubwindow.cpp.

References cachedStyleOptions, drawTitleBarWhenMaximized(), Qt::FramelessWindowHint, QObjectData::parent, QStyleOption::rect, resizeTimerId, QStyle::SH_WindowFrame_Mask, and titleBarOptions().

Referenced by setMaximizeMode(), and setNormalMode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateWindowTitle()

void QMdiSubWindowPrivate::updateWindowTitle ( bool requestFromChild)

Definition at line 1854 of file qmdisubwindow.cpp.

References baseWidget, ignoreWindowTitleChange, QString::isEmpty(), lastChildWindowTitle, setNewWindowTitle(), and QWidget::setWindowTitle().

+ Here is the call graph for this function:

Member Data Documentation

◆ actions

QPointer<QAction> QMdiSubWindowPrivate::actions[NumWindowStateActions]

◆ activationEnabled

bool QMdiSubWindowPrivate::activationEnabled

Definition at line 167 of file qmdisubwindow_p.h.

Referenced by setActive().

◆ activeSubControl

QStyle::SubControl QMdiSubWindowPrivate::activeSubControl

Definition at line 178 of file qmdisubwindow_p.h.

Referenced by processClickedSubControl(), and titleBarOptions().

◆ baseWidget

◆ cachedStyleOptions

QStyleOptionTitleBar QMdiSubWindowPrivate::cachedStyleOptions

Definition at line 191 of file qmdisubwindow_p.h.

Referenced by updateMask().

◆ controlContainer

QPointer<QMdi::ControlContainer> QMdiSubWindowPrivate::controlContainer

Definition at line 146 of file qmdisubwindow_p.h.

Referenced by setMaximizeMode(), and setVisible().

◆ currentOperation

Operation QMdiSubWindowPrivate::currentOperation

◆ focusInReason

Qt::FocusReason QMdiSubWindowPrivate::focusInReason

Definition at line 179 of file qmdisubwindow_p.h.

Referenced by setFocusWidget().

◆ font

QFont QMdiSubWindowPrivate::font

Definition at line 189 of file qmdisubwindow_p.h.

Referenced by titleBarOptions().

◆ hoveredSubControl

QStyle::SubControl QMdiSubWindowPrivate::hoveredSubControl

Definition at line 177 of file qmdisubwindow_p.h.

Referenced by processClickedSubControl(), and titleBarOptions().

◆ ignoreNextActivationEvent

bool QMdiSubWindowPrivate::ignoreNextActivationEvent

Definition at line 166 of file qmdisubwindow_p.h.

◆ ignoreWindowTitleChange

bool QMdiSubWindowPrivate::ignoreWindowTitleChange

Definition at line 165 of file qmdisubwindow_p.h.

Referenced by removeBaseWidget(), setNewWindowTitle(), and updateWindowTitle().

◆ internalMinimumSize

QSize QMdiSubWindowPrivate::internalMinimumSize

◆ isActive

bool QMdiSubWindowPrivate::isActive

Definition at line 171 of file qmdisubwindow_p.h.

Referenced by setActive(), and titleBarOptions().

◆ isExplicitlyDeactivated

bool QMdiSubWindowPrivate::isExplicitlyDeactivated

Definition at line 172 of file qmdisubwindow_p.h.

Referenced by setActive().

◆ isInInteractiveMode

bool QMdiSubWindowPrivate::isInInteractiveMode

◆ isMaximizeMode

bool QMdiSubWindowPrivate::isMaximizeMode

Definition at line 169 of file qmdisubwindow_p.h.

Referenced by setMaximizeMode(), and setNormalMode().

◆ isShadeMode

bool QMdiSubWindowPrivate::isShadeMode

Definition at line 164 of file qmdisubwindow_p.h.

Referenced by setMaximizeMode(), and setNormalMode().

◆ isShadeRequestFromMinimizeMode

bool QMdiSubWindowPrivate::isShadeRequestFromMinimizeMode

Definition at line 168 of file qmdisubwindow_p.h.

Referenced by setMinimizeMode().

◆ isWidgetHiddenByUs

bool QMdiSubWindowPrivate::isWidgetHiddenByUs

Definition at line 170 of file qmdisubwindow_p.h.

Referenced by removeBaseWidget(), setMaximizeMode(), and setNormalMode().

◆ keyboardPageStep

int QMdiSubWindowPrivate::keyboardPageStep

Definition at line 174 of file qmdisubwindow_p.h.

◆ keyboardSingleStep

int QMdiSubWindowPrivate::keyboardSingleStep

Definition at line 173 of file qmdisubwindow_p.h.

◆ lastChildWindowTitle

QString QMdiSubWindowPrivate::lastChildWindowTitle

Definition at line 186 of file qmdisubwindow_p.h.

Referenced by removeBaseWidget(), and updateWindowTitle().

◆ menuIcon

QIcon QMdiSubWindowPrivate::menuIcon

Definition at line 190 of file qmdisubwindow_p.h.

Referenced by titleBarOptions().

◆ mousePressPosition

QPoint QMdiSubWindowPrivate::mousePressPosition

Definition at line 153 of file qmdisubwindow_p.h.

Referenced by _q_enterInteractiveMode(), and setNewGeometry().

◆ moveEnabled

bool QMdiSubWindowPrivate::moveEnabled

◆ oldGeometry

QRect QMdiSubWindowPrivate::oldGeometry

◆ operationMap

OperationInfoMap QMdiSubWindowPrivate::operationMap

◆ options

QMdiSubWindow::SubWindowOptions QMdiSubWindowPrivate::options

Definition at line 185 of file qmdisubwindow_p.h.

Referenced by titleBarHeight().

◆ originalTitle

QString QMdiSubWindowPrivate::originalTitle

Definition at line 192 of file qmdisubwindow_p.h.

Referenced by originalWindowTitle(), and originalWindowTitleHelper().

◆ resizeEnabled

bool QMdiSubWindowPrivate::resizeEnabled

◆ resizeTimerId

int QMdiSubWindowPrivate::resizeTimerId

Definition at line 175 of file qmdisubwindow_p.h.

Referenced by setActive(), and updateMask().

◆ restoreFocusWidget

QPointer<QWidget> QMdiSubWindowPrivate::restoreFocusWidget

Definition at line 145 of file qmdisubwindow_p.h.

Referenced by restoreFocus(), and storeFocusWidget().

◆ restoreSize

QSize QMdiSubWindowPrivate::restoreSize

Definition at line 157 of file qmdisubwindow_p.h.

Referenced by setMaximizeMode(), and setNormalMode().

◆ systemMenu

QPointer<QMenu> QMdiSubWindowPrivate::systemMenu

Definition at line 181 of file qmdisubwindow_p.h.

◆ titleBarPalette

QPalette QMdiSubWindowPrivate::titleBarPalette

Definition at line 187 of file qmdisubwindow_p.h.

Referenced by titleBarOptions().

◆ userMinimumSize

QSize QMdiSubWindowPrivate::userMinimumSize

Definition at line 156 of file qmdisubwindow_p.h.

Referenced by setNormalMode().

◆ windowTitle

QString QMdiSubWindowPrivate::windowTitle

Definition at line 188 of file qmdisubwindow_p.h.

Referenced by titleBarOptions(), and updateInternalWindowTitle().


The documentation for this class was generated from the following files: