Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QMdiAreaPrivate Class Reference

#include <qmdiarea_p.h>

Inheritance diagram for QMdiAreaPrivate:
Collaboration diagram for QMdiAreaPrivate:

Public Member Functions

 QMdiAreaPrivate ()
void _q_deactivateAllWindows (QMdiSubWindow *aboutToActivate=nullptr)
void _q_processWindowStateChanged (Qt::WindowStates oldState, Qt::WindowStates newState)
void _q_currentTabChanged (int index)
void _q_closeTab (int index)
void _q_moveTab (int from, int to)
void appendChild (QMdiSubWindow *child)
void place (QMdi::Placer *placer, QMdiSubWindow *child)
void rearrange (QMdi::Rearranger *rearranger)
void arrangeMinimizedSubWindows ()
void activateWindow (QMdiSubWindow *child)
void activateCurrentWindow ()
void activateHighlightedWindow ()
void emitWindowActivated (QMdiSubWindow *child)
void resetActiveWindow (QMdiSubWindow *child=nullptr)
void updateActiveWindow (int removedIndex, bool activeRemoved)
void updateScrollBars ()
void internalRaise (QMdiSubWindow *child) const
bool scrollBarsEnabled () const
bool lastWindowAboutToBeDestroyed () const
void setChildActivationEnabled (bool enable=true, bool onlyNextActivationEvent=false) const
QRect resizeToMinimumTileSize (const QSize &minSubWindowSize, int subWindowCount)
void scrollBarPolicyChanged (Qt::Orientation, Qt::ScrollBarPolicy) override
QMdiSubWindownextVisibleSubWindow (int increaseFactor, QMdiArea::WindowOrder, int removed=-1, int fromIndex=-1) const
void highlightNextSubWindow (int increaseFactor)
QList< QMdiSubWindow * > subWindowList (QMdiArea::WindowOrder, bool reversed=false) const
void disconnectSubWindow (QObject *subWindow)
void setViewMode (QMdiArea::ViewMode mode)
void startResizeTimer ()
void startTabToPreviousTimer ()
bool windowStaysOnTop (QMdiSubWindow *subWindow) const
bool isExplicitlyDeactivated (QMdiSubWindow *subWindow) const
void setActive (QMdiSubWindow *subWindow, bool active=true, bool changeFocus=true) const

Public Attributes

QMdi::Rearrangercascader
QMdi::RearrangerregularTiler
QMdi::RearrangericonTiler
QMdi::Placerplacer
QMdiAreaTabBar * tabBar
QList< QMdi::Rearranger * > pendingRearrangements
QList< QPointer< QMdiSubWindow > > pendingPlacements
QList< QPointer< QMdiSubWindow > > childWindows
QList< int > indicesToActivatedChildren
QPointer< QMdiSubWindowactive
QPointer< QMdiSubWindowaboutToBecomeActive
QBrush background
QMdiArea::WindowOrder activationOrder
QMdiArea::AreaOptions options
QMdiArea::ViewMode viewMode
bool ignoreGeometryChange
bool ignoreWindowStateChange
bool isActivated
bool isSubWindowsTiled
bool showActiveWindowMaximized
bool tileCalledFromResizeEvent
bool updatesDisabledByUs
bool inViewModeChange
int indexToNextWindow
int indexToPreviousWindow
int indexToHighlighted
int indexToLastActiveTab
QBasicTimer resizeTimer
QBasicTimer tabToPreviousTimer

Detailed Description

Definition at line 105 of file qmdiarea_p.h.

Constructor & Destructor Documentation

◆ QMdiAreaPrivate()

Member Function Documentation

◆ _q_closeTab()

void QMdiAreaPrivate::_q_closeTab ( int index)

Definition at line 757 of file qmdiarea.cpp.

◆ _q_currentTabChanged()

void QMdiAreaPrivate::_q_currentTabChanged ( int index)

Definition at line 733 of file qmdiarea.cpp.

References activateWindow(), indexToLastActiveTab, and tabBar.

Here is the call graph for this function:

◆ _q_deactivateAllWindows()

void QMdiAreaPrivate::_q_deactivateAllWindows ( QMdiSubWindow * aboutToActivate = nullptr)

Definition at line 660 of file qmdiarea.cpp.

References ignoreWindowStateChange.

Referenced by emitWindowActivated().

Here is the caller graph for this function:

◆ _q_moveTab()

void QMdiAreaPrivate::_q_moveTab ( int from,
int to )

Definition at line 768 of file qmdiarea.cpp.

◆ _q_processWindowStateChanged()

void QMdiAreaPrivate::_q_processWindowStateChanged ( Qt::WindowStates oldState,
Qt::WindowStates newState )

Definition at line 700 of file qmdiarea.cpp.

References arrangeMinimizedSubWindows(), emitWindowActivated(), ignoreWindowStateChange, internalRaise(), isSubWindowsTiled, and resetActiveWindow().

Here is the call graph for this function:

◆ activateCurrentWindow()

void QMdiAreaPrivate::activateCurrentWindow ( )

Definition at line 979 of file qmdiarea.cpp.

References isExplicitlyDeactivated().

Here is the call graph for this function:

◆ activateHighlightedWindow()

void QMdiAreaPrivate::activateHighlightedWindow ( )

Definition at line 988 of file qmdiarea.cpp.

References indexToHighlighted.

◆ activateWindow()

void QMdiAreaPrivate::activateWindow ( QMdiSubWindow * child)

Definition at line 950 of file qmdiarea.cpp.

References resetActiveWindow().

Referenced by _q_currentTabChanged(), and updateActiveWindow().

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

◆ appendChild()

void QMdiAreaPrivate::appendChild ( QMdiSubWindow * child)

Definition at line 792 of file qmdiarea.cpp.

References internalRaise(), place(), and placer.

Here is the call graph for this function:

◆ arrangeMinimizedSubWindows()

void QMdiAreaPrivate::arrangeMinimizedSubWindows ( )

Arranges all minimized windows at the bottom of the workspace.

Definition at line 940 of file qmdiarea.cpp.

References iconTiler, and rearrange().

Referenced by _q_processWindowStateChanged().

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

◆ disconnectSubWindow()

void QMdiAreaPrivate::disconnectSubWindow ( QObject * subWindow)

Definition at line 1398 of file qmdiarea.cpp.

◆ emitWindowActivated()

void QMdiAreaPrivate::emitWindowActivated ( QMdiSubWindow * activeWindow)

Definition at line 1006 of file qmdiarea.cpp.

References _q_deactivateAllWindows(), internalRaise(), showActiveWindowMaximized, updateScrollBars(), and updatesDisabledByUs.

Referenced by _q_processWindowStateChanged().

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

◆ highlightNextSubWindow()

void QMdiAreaPrivate::highlightNextSubWindow ( int increaseFactor)

Definition at line 1465 of file qmdiarea.cpp.

References indexToHighlighted.

◆ internalRaise()

void QMdiAreaPrivate::internalRaise ( QMdiSubWindow * mdiChild) const

Definition at line 1200 of file qmdiarea.cpp.

References windowStaysOnTop().

Referenced by _q_processWindowStateChanged(), appendChild(), and emitWindowActivated().

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

◆ isExplicitlyDeactivated()

bool QMdiAreaPrivate::isExplicitlyDeactivated ( QMdiSubWindow * subWindow) const
inline

Definition at line 213 of file qmdiarea_p.h.

Referenced by activateCurrentWindow().

Here is the caller graph for this function:

◆ lastWindowAboutToBeDestroyed()

bool QMdiAreaPrivate::lastWindowAboutToBeDestroyed ( ) const

Definition at line 1300 of file qmdiarea.cpp.

◆ nextVisibleSubWindow()

QMdiSubWindow * QMdiAreaPrivate::nextVisibleSubWindow ( int increaseFactor,
QMdiArea::WindowOrder order,
int removedIndex = -1,
int fromIndex = -1 ) const

Definition at line 1411 of file qmdiarea.cpp.

◆ place()

void QMdiAreaPrivate::place ( QMdi::Placer * placer,
QMdiSubWindow * child )

Definition at line 845 of file qmdiarea.cpp.

Referenced by appendChild().

Here is the caller graph for this function:

◆ rearrange()

void QMdiAreaPrivate::rearrange ( QMdi::Rearranger * rearranger)

Definition at line 884 of file qmdiarea.cpp.

References isSubWindowsTiled, QMdi::Rearranger::RegularTiler, QMdi::Rearranger::SimpleCascader, QMdi::Rearranger::type(), and updateScrollBars().

Referenced by arrangeMinimizedSubWindows().

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

◆ resetActiveWindow()

void QMdiAreaPrivate::resetActiveWindow ( QMdiSubWindow * deactivatedWindow = nullptr)

Definition at line 1058 of file qmdiarea.cpp.

Referenced by _q_processWindowStateChanged(), activateWindow(), and updateActiveWindow().

Here is the caller graph for this function:

◆ resizeToMinimumTileSize()

QRect QMdiAreaPrivate::resizeToMinimumTileSize ( const QSize & minSubWindowSize,
int subWindowCount )

Definition at line 1228 of file qmdiarea.cpp.

References tileCalledFromResizeEvent.

◆ scrollBarPolicyChanged()

void QMdiAreaPrivate::scrollBarPolicyChanged ( Qt::Orientation orientation,
Qt::ScrollBarPolicy policy )
override

\reimp

Definition at line 1334 of file qmdiarea.cpp.

References updateScrollBars().

Here is the call graph for this function:

◆ scrollBarsEnabled()

bool QMdiAreaPrivate::scrollBarsEnabled ( ) const

Definition at line 1292 of file qmdiarea.cpp.

Referenced by updateScrollBars().

Here is the caller graph for this function:

◆ setActive()

void QMdiAreaPrivate::setActive ( QMdiSubWindow * subWindow,
bool active = true,
bool changeFocus = true ) const
inline

Definition at line 220 of file qmdiarea_p.h.

◆ setChildActivationEnabled()

void QMdiAreaPrivate::setChildActivationEnabled ( bool enable = true,
bool onlyNextActivationEvent = false ) const

Definition at line 1318 of file qmdiarea.cpp.

◆ setViewMode()

void QMdiAreaPrivate::setViewMode ( QMdiArea::ViewMode mode)
Since
4.4

Definition at line 1526 of file qmdiarea.cpp.

References indexToLastActiveTab, and inViewModeChange.

◆ startResizeTimer()

void QMdiAreaPrivate::startResizeTimer ( )
inline

Definition at line 190 of file qmdiarea_p.h.

◆ startTabToPreviousTimer()

void QMdiAreaPrivate::startTabToPreviousTimer ( )
inline

Definition at line 198 of file qmdiarea_p.h.

◆ subWindowList()

QList< QMdiSubWindow * > QMdiAreaPrivate::subWindowList ( QMdiArea::WindowOrder order,
bool reversed = false ) const

Definition at line 1355 of file qmdiarea.cpp.

◆ updateActiveWindow()

void QMdiAreaPrivate::updateActiveWindow ( int removedIndex,
bool activeRemoved )

Definition at line 1083 of file qmdiarea.cpp.

References activateWindow(), indexToHighlighted, resetActiveWindow(), and showActiveWindowMaximized.

Here is the call graph for this function:

◆ updateScrollBars()

void QMdiAreaPrivate::updateScrollBars ( )

Definition at line 1132 of file qmdiarea.cpp.

References ignoreGeometryChange, and scrollBarsEnabled().

Referenced by emitWindowActivated(), rearrange(), and scrollBarPolicyChanged().

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

◆ windowStaysOnTop()

bool QMdiAreaPrivate::windowStaysOnTop ( QMdiSubWindow * subWindow) const
inline

Definition at line 206 of file qmdiarea_p.h.

Referenced by internalRaise().

Here is the caller graph for this function:

Member Data Documentation

◆ aboutToBecomeActive

QPointer<QMdiSubWindow> QMdiAreaPrivate::aboutToBecomeActive

Definition at line 125 of file qmdiarea_p.h.

◆ activationOrder

QMdiArea::WindowOrder QMdiAreaPrivate::activationOrder

Definition at line 127 of file qmdiarea_p.h.

◆ active

QPointer<QMdiSubWindow> QMdiAreaPrivate::active

Definition at line 124 of file qmdiarea_p.h.

◆ background

QBrush QMdiAreaPrivate::background

Definition at line 126 of file qmdiarea_p.h.

◆ cascader

QMdi::Rearranger* QMdiAreaPrivate::cascader

Definition at line 112 of file qmdiarea_p.h.

Referenced by QMdiAreaPrivate().

◆ childWindows

QList<QPointer<QMdiSubWindow> > QMdiAreaPrivate::childWindows

Definition at line 122 of file qmdiarea_p.h.

◆ iconTiler

QMdi::Rearranger* QMdiAreaPrivate::iconTiler

Definition at line 114 of file qmdiarea_p.h.

Referenced by QMdiAreaPrivate(), and arrangeMinimizedSubWindows().

◆ ignoreGeometryChange

bool QMdiAreaPrivate::ignoreGeometryChange

Definition at line 139 of file qmdiarea_p.h.

Referenced by QMdiAreaPrivate(), and updateScrollBars().

◆ ignoreWindowStateChange

bool QMdiAreaPrivate::ignoreWindowStateChange

◆ indexToHighlighted

int QMdiAreaPrivate::indexToHighlighted

◆ indexToLastActiveTab

int QMdiAreaPrivate::indexToLastActiveTab

Definition at line 150 of file qmdiarea_p.h.

Referenced by QMdiAreaPrivate(), _q_currentTabChanged(), and setViewMode().

◆ indexToNextWindow

int QMdiAreaPrivate::indexToNextWindow

Definition at line 147 of file qmdiarea_p.h.

Referenced by QMdiAreaPrivate().

◆ indexToPreviousWindow

int QMdiAreaPrivate::indexToPreviousWindow

Definition at line 148 of file qmdiarea_p.h.

Referenced by QMdiAreaPrivate().

◆ indicesToActivatedChildren

QList<int> QMdiAreaPrivate::indicesToActivatedChildren

Definition at line 123 of file qmdiarea_p.h.

◆ inViewModeChange

bool QMdiAreaPrivate::inViewModeChange

Definition at line 146 of file qmdiarea_p.h.

Referenced by QMdiAreaPrivate(), and setViewMode().

◆ isActivated

bool QMdiAreaPrivate::isActivated

Definition at line 141 of file qmdiarea_p.h.

Referenced by QMdiAreaPrivate().

◆ isSubWindowsTiled

bool QMdiAreaPrivate::isSubWindowsTiled

Definition at line 142 of file qmdiarea_p.h.

Referenced by QMdiAreaPrivate(), _q_processWindowStateChanged(), and rearrange().

◆ options

◆ pendingPlacements

QList<QPointer<QMdiSubWindow> > QMdiAreaPrivate::pendingPlacements

Definition at line 121 of file qmdiarea_p.h.

◆ pendingRearrangements

QList<QMdi::Rearranger *> QMdiAreaPrivate::pendingRearrangements

Definition at line 120 of file qmdiarea_p.h.

◆ placer

QMdi::Placer* QMdiAreaPrivate::placer

Definition at line 115 of file qmdiarea_p.h.

Referenced by QMdiAreaPrivate(), and appendChild().

◆ regularTiler

QMdi::Rearranger* QMdiAreaPrivate::regularTiler

Definition at line 113 of file qmdiarea_p.h.

Referenced by QMdiAreaPrivate().

◆ resizeTimer

QBasicTimer QMdiAreaPrivate::resizeTimer

Definition at line 151 of file qmdiarea_p.h.

◆ showActiveWindowMaximized

bool QMdiAreaPrivate::showActiveWindowMaximized

Definition at line 143 of file qmdiarea_p.h.

Referenced by QMdiAreaPrivate(), emitWindowActivated(), and updateActiveWindow().

◆ tabBar

QMdiAreaTabBar* QMdiAreaPrivate::tabBar

Definition at line 119 of file qmdiarea_p.h.

Referenced by _q_currentTabChanged().

◆ tabToPreviousTimer

QBasicTimer QMdiAreaPrivate::tabToPreviousTimer

Definition at line 152 of file qmdiarea_p.h.

◆ tileCalledFromResizeEvent

bool QMdiAreaPrivate::tileCalledFromResizeEvent

Definition at line 144 of file qmdiarea_p.h.

Referenced by QMdiAreaPrivate(), and resizeToMinimumTileSize().

◆ updatesDisabledByUs

bool QMdiAreaPrivate::updatesDisabledByUs

Definition at line 145 of file qmdiarea_p.h.

Referenced by QMdiAreaPrivate(), and emitWindowActivated().

◆ viewMode

QMdiArea::ViewMode QMdiAreaPrivate::viewMode

Definition at line 129 of file qmdiarea_p.h.


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