![]() |
Qt 6.x
The Qt SDK
|
#include <qmdiarea_p.h>
Inheritance diagram for QMdiAreaPrivate:
Collaboration diagram for QMdiAreaPrivate:Public Attributes | |
| QMdi::Rearranger * | cascader |
| QMdi::Rearranger * | regularTiler |
| QMdi::Rearranger * | iconTiler |
| QMdi::Placer * | placer |
| QMdiAreaTabBar * | tabBar |
| QList< QMdi::Rearranger * > | pendingRearrangements |
| QList< QPointer< QMdiSubWindow > > | pendingPlacements |
| QList< QPointer< QMdiSubWindow > > | childWindows |
| QList< int > | indicesToActivatedChildren |
| QPointer< QMdiSubWindow > | active |
| QPointer< QMdiSubWindow > | aboutToBecomeActive |
| 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 |
| int | resizeTimerId |
| int | tabToPreviousTimerId |
Definition at line 102 of file qmdiarea_p.h.
| QMdiAreaPrivate::QMdiAreaPrivate | ( | ) |
Definition at line 620 of file qmdiarea.cpp.
| void QMdiAreaPrivate::_q_closeTab | ( | int | index | ) |
Definition at line 755 of file qmdiarea.cpp.
References QList< T >::at(), childWindows, QWidget::close(), Q_ASSERT, and Q_UNUSED.
Here is the call graph for this function:| void QMdiAreaPrivate::_q_currentTabChanged | ( | int | index | ) |
Definition at line 731 of file qmdiarea.cpp.
References activateWindow(), QList< T >::at(), childWindows, indexToLastActiveTab, QWidget::isHidden(), Q_ASSERT, Q_UNUSED, QList< T >::size(), and tabBar.
Here is the call graph for this function:| void QMdiAreaPrivate::_q_deactivateAllWindows | ( | QMdiSubWindow * | aboutToActivate = nullptr | ) |
Definition at line 662 of file qmdiarea.cpp.
References aboutToBecomeActive, child, childWindows, QMdiArea::DontMaximizeSubWindowOnActivation, ignoreWindowStateChange, options, Q_ASSERT, sanityCheck(), showActiveWindowMaximized, updatesDisabledByUs, and windowStaysOnTop().
Referenced by appendChild(), and emitWindowActivated().
Here is the call graph for this function:
Here is the caller graph for this function:| void QMdiAreaPrivate::_q_moveTab | ( | int | from, |
| int | to | ||
| ) |
Definition at line 766 of file qmdiarea.cpp.
References childWindows, QList< T >::move(), and Q_UNUSED.
Here is the call graph for this function:| void QMdiAreaPrivate::_q_processWindowStateChanged | ( | Qt::WindowStates | oldState, |
| Qt::WindowStates | newState | ||
| ) |
Definition at line 698 of file qmdiarea.cpp.
References arrangeMinimizedSubWindows(), child, emitWindowActivated(), ignoreWindowStateChange, internalRaise(), isSubWindowsTiled, newState(), resetActiveWindow(), Qt::WindowActive, Qt::WindowMaximized, and Qt::WindowMinimized.
Referenced by appendChild().
Here is the call graph for this function:
Here is the caller graph for this function:| void QMdiAreaPrivate::activateCurrentWindow | ( | ) |
Definition at line 966 of file qmdiarea.cpp.
References isExplicitlyDeactivated().
Here is the call graph for this function:| void QMdiAreaPrivate::activateHighlightedWindow | ( | ) |
Definition at line 975 of file qmdiarea.cpp.
References activateWindow(), QMdiArea::ActivationHistoryOrder, QList< T >::at(), childWindows, indexToHighlighted, nextVisibleSubWindow(), Q_ASSERT, QList< T >::size(), and tabToPreviousTimerId.
Here is the call graph for this function:| void QMdiAreaPrivate::activateWindow | ( | QMdiSubWindow * | child | ) |
Definition at line 937 of file qmdiarea.cpp.
References active, child, childWindows, QList< T >::isEmpty(), Q_ASSERT, and resetActiveWindow().
Referenced by _q_currentTabChanged(), activateHighlightedWindow(), and updateActiveWindow().
Here is the call graph for this function:
Here is the caller graph for this function:| void QMdiAreaPrivate::appendChild | ( | QMdiSubWindow * | child | ) |
Definition at line 779 of file qmdiarea.cpp.
References _q_deactivateAllWindows(), _q_processWindowStateChanged(), QMdiSubWindow::AllowOutsideAreaHorizontally, QMdiSubWindow::AllowOutsideAreaVertically, QList< T >::append(), QSize::boundedTo(), child, childWindows, QObject::connect(), QMdiArea::DontMaximizeSubWindowOnActivation, QSize::expandedTo(), QListSpecialMethodsBase< T >::indexOf(), indicesToActivatedChildren, internalRaise(), options, place(), placer, QList< T >::prepend(), Q_ASSERT, qSmartMinSize(), Qt::ScrollBarAlwaysOff, showActiveWindowMaximized, SIGNAL, QList< T >::size(), QLayoutItem::sizeHint(), SLOT, Qt::SubWindow, tabBar, tabTextFor(), viewport(), and Qt::WA_Resized.
Here is the call graph for this function:| void QMdiAreaPrivate::arrangeMinimizedSubWindows | ( | ) |
Arranges all minimized windows at the bottom of the workspace.
Definition at line 927 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:Definition at line 1379 of file qmdiarea.cpp.
References QObject::disconnect(), and QObject::removeEventFilter().
Here is the call graph for this function:| void QMdiAreaPrivate::emitWindowActivated | ( | QMdiSubWindow * | activeWindow | ) |
Definition at line 993 of file qmdiarea.cpp.
References _q_deactivateAllWindows(), aboutToBecomeActive, active, childWindows, emit, QListSpecialMethodsBase< T >::indexOf(), indicesToActivatedChildren, internalRaise(), QWidget::isMaximized(), QList< T >::move(), Q_ASSERT, scrollBarsEnabled(), showActiveWindowMaximized, QWidget::showMaximized(), tabBar, updateScrollBars(), and updatesDisabledByUs.
Referenced by _q_processWindowStateChanged().
Here is the call graph for this function:
Here is the caller graph for this function:| void QMdiAreaPrivate::highlightNextSubWindow | ( | int | increaseFactor | ) |
Definition at line 1446 of file qmdiarea.cpp.
References activationOrder, childWindows, QListSpecialMethodsBase< T >::indexOf(), indexToHighlighted, nextVisibleSubWindow(), Q_ASSERT, QRubberBand::Rectangle, QList< T >::size(), tabToPreviousTimerId, and Qt::WindowStaysOnTopHint.
Here is the call graph for this function:| void QMdiAreaPrivate::internalRaise | ( | QMdiSubWindow * | mdiChild | ) | const |
Definition at line 1185 of file qmdiarea.cpp.
References child, childWindows, QListSpecialMethodsBase< T >::contains(), QWidget::raise(), sanityCheck(), QList< T >::size(), QWidget::stackUnder(), viewport(), and windowStaysOnTop().
Referenced by _q_processWindowStateChanged(), appendChild(), and emitWindowActivated().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 210 of file qmdiarea_p.h.
Referenced by activateCurrentWindow(), and resetActiveWindow().
Here is the caller graph for this function:| bool QMdiAreaPrivate::lastWindowAboutToBeDestroyed | ( | ) | const |
Definition at line 1285 of file qmdiarea.cpp.
References QList< T >::at(), childWindows, QList< T >::size(), QWidget::testAttribute(), and Qt::WA_DeleteOnClose.
Referenced by resetActiveWindow().
Here is the call graph for this function:
Here is the caller graph for this function:| QMdiSubWindow * QMdiAreaPrivate::nextVisibleSubWindow | ( | int | increaseFactor, |
| QMdiArea::WindowOrder | order, | ||
| int | removedIndex = -1, |
||
| int | fromIndex = -1 |
||
| ) | const |
Definition at line 1392 of file qmdiarea.cpp.
References QList< T >::at(), QList< T >::back(), childWindows, QMdiArea::CreationOrder, QListSpecialMethodsBase< T >::indexOf(), QList< T >::isEmpty(), Q_ASSERT, setIndex(), and QList< T >::size().
Referenced by activateHighlightedWindow(), highlightNextSubWindow(), and updateActiveWindow().
Here is the call graph for this function:
Here is the caller graph for this function:| void QMdiAreaPrivate::place | ( | QMdi::Placer * | placer, |
| QMdiSubWindow * | child | ||
| ) |
Definition at line 832 of file qmdiarea.cpp.
References QList< T >::append(), child, childWindows, pendingPlacements, QMdi::Placer::place(), placer, QList< T >::reserve(), sanityCheck(), QLayoutItem::setGeometry(), QList< T >::size(), QStyle::visualRect(), Qt::WA_Moved, window(), QPoint::x(), and QPoint::y().
Referenced by appendChild().
Here is the call graph for this function:
Here is the caller graph for this function:| void QMdiAreaPrivate::rearrange | ( | QMdi::Rearranger * | rearranger | ) |
Definition at line 871 of file qmdiarea.cpp.
References activationOrder, QList< T >::append(), child, QSize::expandedTo(), QMdi::Rearranger::IconTiler, QListSpecialMethodsBase< T >::indexOf(), QList< T >::isEmpty(), isSubWindowsTiled, QLayoutItem::minimumSize(), QList< T >::move(), pendingRearrangements, QMdi::Rearranger::rearrange(), QMdi::Rearranger::RegularTiler, resizeToMinimumTileSize(), sanityCheck(), QMdi::Rearranger::SimpleCascader, QList< T >::size(), subWindowList(), QMdi::Rearranger::type(), updateScrollBars(), viewport(), and widgets.
Referenced by arrangeMinimizedSubWindows().
Here is the call graph for this function:
Here is the caller graph for this function:| void QMdiAreaPrivate::resetActiveWindow | ( | QMdiSubWindow * | deactivatedWindow = nullptr | ) |
Definition at line 1045 of file qmdiarea.cpp.
References aboutToBecomeActive, active, emit, isActivated, isExplicitlyDeactivated(), and lastWindowAboutToBeDestroyed().
Referenced by _q_processWindowStateChanged(), activateWindow(), and updateActiveWindow().
Here is the call graph for this function:
Here is the caller graph for this function:| QRect QMdiAreaPrivate::resizeToMinimumTileSize | ( | const QSize & | minSubWindowSize, |
| int | subWindowCount | ||
| ) |
Definition at line 1213 of file qmdiarea.cpp.
References QSize::expandedTo(), frame, QRect::height(), QSize::height(), QWidget::height, QSize::isValid(), QWidget::isWindow(), QWidget::parentWidget(), QStyle::pixelMetric(), QStyle::PM_DefaultFrameWidth, qCeil(), qMax(), qSqrt(), QWidget::resize(), Qt::ScrollBarAlwaysOff, Qt::ScrollBarAsNeeded, QRect::setHeight(), QRect::setWidth(), QStyle::SH_ScrollView_FrameOnlyAroundContents, QWidget::size, QWidget::style(), Qt::SubWindow, tileCalledFromResizeEvent, viewport(), QRect::width(), QSize::width(), and QWidget::windowType().
Referenced by rearrange().
Here is the call graph for this function:
Here is the caller graph for this function:
|
override |
\reimp
Definition at line 1319 of file qmdiarea.cpp.
References QMdiSubWindow::AllowOutsideAreaHorizontally, QMdiSubWindow::AllowOutsideAreaVertically, child, childWindows, Qt::Horizontal, QList< T >::isEmpty(), policy, sanityCheck(), Qt::ScrollBarAlwaysOff, and updateScrollBars().
Here is the call graph for this function:| bool QMdiAreaPrivate::scrollBarsEnabled | ( | ) | const |
Definition at line 1277 of file qmdiarea.cpp.
References Qt::ScrollBarAlwaysOff.
Referenced by emitWindowActivated(), and updateScrollBars().
Here is the caller graph for this function:
|
inline |
Definition at line 217 of file qmdiarea_p.h.
References active.
| void QMdiAreaPrivate::setChildActivationEnabled | ( | bool | enable = true, |
| bool | onlyNextActivationEvent = false |
||
| ) | const |
Definition at line 1303 of file qmdiarea.cpp.
References childWindows, and QWidget::isVisible().
Here is the call graph for this function:| void QMdiAreaPrivate::setViewMode | ( | QMdiArea::ViewMode | mode | ) |
Definition at line 1507 of file qmdiarea.cpp.
References _q_tb_tabBarShapeFrom(), QObject::connect(), QMdiArea::DontMaximizeSubWindowOnActivation, QWidget::isMaximized(), Q_ASSERT, QWidget::showMaximized(), QWidget::showNormal(), SIGNAL, SLOT, QMdiArea::TabbedView, tabTextFor(), and QWidget::windowIcon.
Here is the call graph for this function:
|
inline |
Definition at line 187 of file qmdiarea_p.h.
References resizeTimerId.
|
inline |
Definition at line 195 of file qmdiarea_p.h.
References QApplication::keyboardInputInterval, and tabToPreviousTimerId.
| QList< QMdiSubWindow * > QMdiAreaPrivate::subWindowList | ( | QMdiArea::WindowOrder | order, |
| bool | reversed = false |
||
| ) | const |
Definition at line 1336 of file qmdiarea.cpp.
References QList< T >::append(), QList< T >::at(), child, childWindows, QListSpecialMethodsBase< T >::contains(), QMdiArea::CreationOrder, i, indicesToActivatedChildren, QList< T >::isEmpty(), list, QList< T >::prepend(), Q_ASSERT, QList< T >::size(), QMdiArea::StackingOrder, and viewport().
Referenced by rearrange().
Here is the call graph for this function:
Here is the caller graph for this function:| void QMdiAreaPrivate::updateActiveWindow | ( | int | removedIndex, |
| bool | activeRemoved | ||
| ) |
Definition at line 1070 of file qmdiarea.cpp.
References activateWindow(), activationOrder, childWindows, i, indexToHighlighted, indicesToActivatedChildren, QList< T >::isEmpty(), next, nextVisibleSubWindow(), Q_ASSERT, resetActiveWindow(), showActiveWindowMaximized, QList< T >::size(), and tabBar.
Here is the call graph for this function:| void QMdiAreaPrivate::updateScrollBars | ( | ) |
Definition at line 1119 of file qmdiarea.cpp.
References active, QWidget::geometry, QRect::height(), QSize::height(), Qt::Horizontal, ignoreGeometryChange, QWidget::isMaximized(), isSubWindowsTiled, QRect::left(), qMax(), qMin(), QSize::rheight(), QRect::right(), QSize::rwidth(), Qt::ScrollBarAlwaysOn, scrollBarsEnabled(), QStyle::SH_ScrollView_FrameOnlyAroundContents, QRect::top(), useScrollBar(), Qt::Vertical, viewport(), QRect::width(), and QSize::width().
Referenced by emitWindowActivated(), rearrange(), and scrollBarPolicyChanged().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 203 of file qmdiarea_p.h.
References QWidget::windowFlags(), and Qt::WindowStaysOnTopHint.
Referenced by _q_deactivateAllWindows(), and internalRaise().
Here is the call graph for this function:
Here is the caller graph for this function:| QPointer<QMdiSubWindow> QMdiAreaPrivate::aboutToBecomeActive |
Definition at line 122 of file qmdiarea_p.h.
Referenced by _q_deactivateAllWindows(), emitWindowActivated(), and resetActiveWindow().
| QMdiArea::WindowOrder QMdiAreaPrivate::activationOrder |
Definition at line 124 of file qmdiarea_p.h.
Referenced by highlightNextSubWindow(), rearrange(), and updateActiveWindow().
| QPointer<QMdiSubWindow> QMdiAreaPrivate::active |
Definition at line 121 of file qmdiarea_p.h.
Referenced by activateWindow(), emitWindowActivated(), resetActiveWindow(), setActive(), and updateScrollBars().
| QBrush QMdiAreaPrivate::background |
Definition at line 123 of file qmdiarea_p.h.
| QMdi::Rearranger* QMdiAreaPrivate::cascader |
Definition at line 109 of file qmdiarea_p.h.
| QList<QPointer<QMdiSubWindow> > QMdiAreaPrivate::childWindows |
Definition at line 119 of file qmdiarea_p.h.
Referenced by _q_closeTab(), _q_currentTabChanged(), _q_deactivateAllWindows(), _q_moveTab(), activateHighlightedWindow(), activateWindow(), appendChild(), emitWindowActivated(), highlightNextSubWindow(), internalRaise(), lastWindowAboutToBeDestroyed(), nextVisibleSubWindow(), place(), scrollBarPolicyChanged(), setChildActivationEnabled(), subWindowList(), and updateActiveWindow().
| QMdi::Rearranger* QMdiAreaPrivate::iconTiler |
Definition at line 111 of file qmdiarea_p.h.
Referenced by arrangeMinimizedSubWindows().
| bool QMdiAreaPrivate::ignoreGeometryChange |
Definition at line 136 of file qmdiarea_p.h.
Referenced by updateScrollBars().
| bool QMdiAreaPrivate::ignoreWindowStateChange |
Definition at line 137 of file qmdiarea_p.h.
Referenced by _q_deactivateAllWindows(), and _q_processWindowStateChanged().
| int QMdiAreaPrivate::indexToHighlighted |
Definition at line 146 of file qmdiarea_p.h.
Referenced by activateHighlightedWindow(), highlightNextSubWindow(), and updateActiveWindow().
| int QMdiAreaPrivate::indexToLastActiveTab |
Definition at line 147 of file qmdiarea_p.h.
Referenced by _q_currentTabChanged().
| int QMdiAreaPrivate::indexToNextWindow |
Definition at line 144 of file qmdiarea_p.h.
| int QMdiAreaPrivate::indexToPreviousWindow |
Definition at line 145 of file qmdiarea_p.h.
| QList<int> QMdiAreaPrivate::indicesToActivatedChildren |
Definition at line 120 of file qmdiarea_p.h.
Referenced by appendChild(), emitWindowActivated(), subWindowList(), and updateActiveWindow().
| bool QMdiAreaPrivate::inViewModeChange |
Definition at line 143 of file qmdiarea_p.h.
| bool QMdiAreaPrivate::isActivated |
Definition at line 138 of file qmdiarea_p.h.
Referenced by resetActiveWindow().
| bool QMdiAreaPrivate::isSubWindowsTiled |
Definition at line 139 of file qmdiarea_p.h.
Referenced by _q_processWindowStateChanged(), rearrange(), and updateScrollBars().
| QMdiArea::AreaOptions QMdiAreaPrivate::options |
Definition at line 125 of file qmdiarea_p.h.
Referenced by _q_deactivateAllWindows(), and appendChild().
| QList<QPointer<QMdiSubWindow> > QMdiAreaPrivate::pendingPlacements |
Definition at line 118 of file qmdiarea_p.h.
Referenced by place().
| QList<QMdi::Rearranger *> QMdiAreaPrivate::pendingRearrangements |
Definition at line 117 of file qmdiarea_p.h.
Referenced by rearrange().
| QMdi::Placer* QMdiAreaPrivate::placer |
Definition at line 112 of file qmdiarea_p.h.
Referenced by appendChild(), and place().
| QMdi::Rearranger* QMdiAreaPrivate::regularTiler |
Definition at line 110 of file qmdiarea_p.h.
| int QMdiAreaPrivate::resizeTimerId |
Definition at line 148 of file qmdiarea_p.h.
Referenced by startResizeTimer().
| bool QMdiAreaPrivate::showActiveWindowMaximized |
Definition at line 140 of file qmdiarea_p.h.
Referenced by _q_deactivateAllWindows(), appendChild(), emitWindowActivated(), and updateActiveWindow().
| QMdiAreaTabBar* QMdiAreaPrivate::tabBar |
Definition at line 116 of file qmdiarea_p.h.
Referenced by _q_currentTabChanged(), appendChild(), emitWindowActivated(), and updateActiveWindow().
| int QMdiAreaPrivate::tabToPreviousTimerId |
Definition at line 149 of file qmdiarea_p.h.
Referenced by activateHighlightedWindow(), highlightNextSubWindow(), and startTabToPreviousTimer().
| bool QMdiAreaPrivate::tileCalledFromResizeEvent |
Definition at line 141 of file qmdiarea_p.h.
Referenced by resizeToMinimumTileSize().
| bool QMdiAreaPrivate::updatesDisabledByUs |
Definition at line 142 of file qmdiarea_p.h.
Referenced by _q_deactivateAllWindows(), and emitWindowActivated().
| QMdiArea::ViewMode QMdiAreaPrivate::viewMode |
Definition at line 126 of file qmdiarea_p.h.