![]() |
Qt 6.x
The Qt SDK
|
#include <qmainwindowlayout_p.h>
Collaboration diagram for QMainWindowLayoutState:Public Attributes | |
| QRect | rect |
| QMainWindow * | mainWindow |
| QLayoutItem * | centralWidgetItem |
| QRect | centralWidgetRect |
Definition at line 383 of file qmainwindowlayout_p.h.
| QMainWindowLayoutState::QMainWindowLayoutState | ( | QMainWindow * | win | ) |
Definition at line 604 of file qmainwindowlayout.cpp.
References mainWindow, and win.
| void QMainWindowLayoutState::apply | ( | bool | animated | ) |
Definition at line 681 of file qmainwindowlayout.cpp.
References centralWidgetItem, centralWidgetRect, layout, mainWindow, Q_ASSERT, qt_mainwindow_layout(), and QLayoutItem::widget().
Referenced by QMainWindowLayout::animationFinished().
Here is the call graph for this function:
Here is the caller graph for this function:| QWidget * QMainWindowLayoutState::centralWidget | ( | ) | const |
Definition at line 840 of file qmainwindowlayout.cpp.
References centralWidgetItem, and item.
Referenced by QMainWindowLayout::centralWidget().
Here is the caller graph for this function:| bool QMainWindowLayoutState::checkFormat | ( | QDataStream & | stream | ) |
Definition at line 1112 of file qmainwindowlayout.cpp.
References QDockAreaLayout::DockWidgetStateMarker, QDockAreaLayout::FloatingDockWidgetTabMarker, info, mainWindow, QToolBarAreaLayout::ToolBarStateMarker, and QToolBarAreaLayout::ToolBarStateMarkerEx.
Referenced by restoreState().
Here is the caller graph for this function:| void QMainWindowLayoutState::clear | ( | ) |
Definition at line 946 of file qmainwindowlayout.cpp.
References centralWidgetRect, and rect.
Referenced by QMainWindowLayout::animationFinished(), QMainWindowLayout::restore(), and QMainWindowLayout::restoreState().
Here is the caller graph for this function:| bool QMainWindowLayoutState::contains | ( | QWidget * | widget | ) | const |
Definition at line 805 of file qmainwindowlayout.cpp.
References centralWidgetItem, widget, and QLayoutItem::widget().
Here is the call graph for this function:| void QMainWindowLayoutState::deleteAllLayoutItems | ( | ) |
Definition at line 717 of file qmainwindowlayout.cpp.
Referenced by QMainWindowLayout::~QMainWindowLayout(), and QMainWindowLayout::restoreState().
Here is the caller graph for this function:| void QMainWindowLayoutState::deleteCentralWidgetItem | ( | ) |
Definition at line 728 of file qmainwindowlayout.cpp.
References centralWidgetItem.
Referenced by QMainWindowLayout::~QMainWindowLayout(), and setCentralWidget().
Here is the caller graph for this function:| void QMainWindowLayoutState::fitLayout | ( | ) |
Definition at line 699 of file qmainwindowlayout.cpp.
References centralWidgetRect, and rect.
Referenced by QMainWindowLayout::restoreState(), QMainWindowLayout::revert(), QMainWindowLayout::setGeometry(), and QMainWindowLayout::unplug().
Here is the caller graph for this function:| bool QMainWindowLayoutState::fits | ( | ) | const |
Returns whether the layout fits into the main window.
Definition at line 661 of file qmainwindowlayout.cpp.
References QInternal::BottomDock, QWidget::height, QInternal::LeftDock, mainWindow, Q_ASSERT, QInternal::RightDock, QInternal::TopDock, and QWidget::width.
Referenced by QMainWindowLayout::restoreState().
Here is the caller graph for this function:Definition at line 855 of file qmainwindowlayout.cpp.
Referenced by QMainWindowLayout::hover().
Here is the caller graph for this function:Definition at line 1003 of file qmainwindowlayout.cpp.
References i.
Definition at line 778 of file qmainwindowlayout.cpp.
References widget.
Referenced by QMainWindowLayout::animationFinished(), QMainWindowLayout::plug(), restoreState(), QMainWindowLayout::revert(), and QMainWindowLayout::unplug().
Here is the caller graph for this function:| bool QMainWindowLayoutState::insertGap | ( | const QList< int > & | path, |
| QLayoutItem * | item | ||
| ) |
Definition at line 891 of file qmainwindowlayout.cpp.
| bool QMainWindowLayoutState::isValid | ( | ) | const |
Definition at line 961 of file qmainwindowlayout.cpp.
References QRect::isValid(), and rect.
Referenced by QMainWindowLayout::hover(), QMainWindowLayout::restore(), QMainWindowLayout::revert(), QMainWindowLayout::setCentralWidget(), QMainWindowLayout::setGeometry(), and QMainWindowLayout::takeAt().
Here is the call graph for this function:
Here is the caller graph for this function:| QLayoutItem * QMainWindowLayoutState::item | ( | const QList< int > & | path | ) |
Definition at line 966 of file qmainwindowlayout.cpp.
References i, Q_ASSERT, and QToolBarAreaLayoutItem::widgetItem.
Referenced by QMainWindowLayout::unplug().
Here is the caller graph for this function:| QLayoutItem * QMainWindowLayoutState::itemAt | ( | int | index, |
| int * | x | ||
| ) | const |
Definition at line 739 of file qmainwindowlayout.cpp.
References centralWidgetItem, and ret.
Referenced by QMainWindowLayout::itemAt().
Here is the caller graph for this function:Definition at line 986 of file qmainwindowlayout.cpp.
References i.
Referenced by QMainWindowLayout::revert(), QMainWindowLayout::takeAt(), and QMainWindowLayout::unplug().
Here is the caller graph for this function:| QSize QMainWindowLayoutState::minimumSize | ( | ) | const |
Definition at line 638 of file qmainwindowlayout.cpp.
References centralWidgetItem, and QLayoutItem::minimumSize().
Referenced by QMainWindowLayout::minimumSize().
Here is the call graph for this function:
Here is the caller graph for this function:| QLayoutItem * QMainWindowLayoutState::plug | ( | const QList< int > & | path | ) |
Definition at line 1020 of file qmainwindowlayout.cpp.
References i.
Referenced by QMainWindowLayout::plug().
Here is the caller graph for this function:Definition at line 915 of file qmainwindowlayout.cpp.
References i.
Referenced by QMainWindowLayout::plug(), and QMainWindowLayout::takeAt().
Here is the caller graph for this function:| void QMainWindowLayoutState::remove | ( | QLayoutItem * | item | ) |
Definition at line 930 of file qmainwindowlayout.cpp.
References dockWidget, QListSpecialMethodsBase< T >::indexOf(), and item.
Here is the call graph for this function:| bool QMainWindowLayoutState::restoreState | ( | QDataStream & | stream, |
| const QMainWindowLayoutState & | oldState | ||
| ) |
Definition at line 1163 of file qmainwindowlayout.cpp.
References QList< T >::at(), QDataStream::atEnd(), ba, checkFormat(), QDockAreaLayout::constrainedRect(), copy(), QByteArray::data(), QDockAreaLayout::DockWidgetStateMarker, QDockAreaLayout::FloatingDockWidgetTabMarker, Qt::Horizontal, i, QListSpecialMethodsBase< T >::indexOf(), indexOf(), info, QList< T >::isEmpty(), QInternal::LeftDock, mainWindow, qt_mainwindow_layout(), QDataStream::readRawData(), QByteArray::resize(), QTabBar::RoundedSouth, QDataStream::setVersion(), QByteArray::size(), QList< T >::size(), QRect::size(), QToolBarAreaLayout::ToolBarStateMarker, QToolBarAreaLayout::ToolBarStateMarkerEx, QRect::topLeft(), and QDataStream::version().
Referenced by QMainWindowLayout::restoreState().
Here is the call graph for this function:
Here is the caller graph for this function:| void QMainWindowLayoutState::saveState | ( | QDataStream & | stream | ) | const |
Definition at line 1056 of file qmainwindowlayout.cpp.
References QObject::findChildren(), Qt::FindDirectChildrenOnly, QDockAreaLayout::FloatingDockWidgetTabMarker, and mainWindow.
Referenced by QMainWindowLayout::saveState().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 824 of file qmainwindowlayout.cpp.
References centralWidgetItem, deleteCentralWidgetItem(), item, and widget.
Referenced by QMainWindowLayout::setCentralWidget().
Here is the call graph for this function:
Here is the caller graph for this function:| QSize QMainWindowLayoutState::sizeHint | ( | ) | const |
Definition at line 619 of file qmainwindowlayout.cpp.
References centralWidgetItem, and QLayoutItem::sizeHint().
Referenced by QMainWindowLayout::sizeHint().
Here is the call graph for this function:
Here is the caller graph for this function:| QLayoutItem * QMainWindowLayoutState::takeAt | ( | int | index, |
| int * | x | ||
| ) |
Definition at line 757 of file qmainwindowlayout.cpp.
References centralWidgetItem, and ret.
Referenced by QMainWindowLayout::takeAt().
Here is the caller graph for this function:| QLayoutItem * QMainWindowLayoutState::unplug | ( | const QList< int > & | path, |
| QMainWindowLayoutState * | savedState = nullptr |
||
| ) |
Definition at line 1037 of file qmainwindowlayout.cpp.
References i, other(), and Q_UNUSED.
Referenced by QMainWindowLayout::revert(), and QMainWindowLayout::unplug().
Here is the call graph for this function:
Here is the caller graph for this function:| QLayoutItem* QMainWindowLayoutState::centralWidgetItem |
Definition at line 398 of file qmainwindowlayout_p.h.
Referenced by apply(), centralWidget(), contains(), deleteCentralWidgetItem(), itemAt(), minimumSize(), QMainWindowLayout::setCentralWidget(), setCentralWidget(), sizeHint(), and takeAt().
| QRect QMainWindowLayoutState::centralWidgetRect |
Definition at line 399 of file qmainwindowlayout_p.h.
Referenced by apply(), clear(), and fitLayout().
| QMainWindow* QMainWindowLayoutState::mainWindow |
Definition at line 387 of file qmainwindowlayout_p.h.
Referenced by QMainWindowLayoutState(), apply(), checkFormat(), fits(), restoreState(), saveState(), and QMainWindowLayout::unplug().
| QRect QMainWindowLayoutState::rect |
Definition at line 386 of file qmainwindowlayout_p.h.
Referenced by clear(), fitLayout(), isValid(), QMainWindowLayout::restoreState(), and QMainWindowLayout::setGeometry().