![]() |
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>.
|
#include <qmainwindowlayout_p.h>
Public Attributes | |
QRect | rect |
QMainWindow * | mainWindow |
QLayoutItem * | centralWidgetItem |
QRect | centralWidgetRect |
Definition at line 398 of file qmainwindowlayout_p.h.
QMainWindowLayoutState::QMainWindowLayoutState | ( | QMainWindow * | win | ) |
QDockWidgetGroupWindow is a floating window, containing several QDockWidgets floating together. This requires QMainWindow::GroupedDragging to be enabled. QDockWidgets floating jointly in a QDockWidgetGroupWindow are considered to be docked. Their isFloating
property is false
. QDockWidget children of a QDockWidgetGroupWindow are either: \list
tabbar
feature), or QDockWidgetGroupWindow uses QDockWidgetGroupLayout to lay out its QDockWidget children. It stores layout information in a QDockAreaLayoutInfo, including temporary spacer items and rubber bands.
If its QDockWidget children are tabbed, the QDockWidgetGroupWindow shows the active QDockWidget's title as its own window title.
QDockWidgetGroupWindow is designed to hold more than one QDockWidget. A QDockWidgetGroupWindow with only one QDockWidget child may occur only temporarily \list
A QDockWidgetGroupWindow with only one QDockWidget child must never get focus, be dragged or dropped. To enforce this restriction, QDockWidgetGrouWindow will remove itself after its second QDockWidget child has been removed. It will make its last QDockWidget child a single, floating QDockWidget. Eventually, the empty QDockWidgetGroupWindow will call deleteLater() on itself.
Definition at line 759 of file qmainwindowlayout.cpp.
References mainWindow, and win.
void QMainWindowLayoutState::apply | ( | bool | animated | ) |
Definition at line 836 of file qmainwindowlayout.cpp.
References centralWidgetItem, centralWidgetRect, layout, mainWindow, Q_ASSERT, qt_mainwindow_layout(), and QLayoutItem::widget().
QWidget * QMainWindowLayoutState::centralWidget | ( | ) | const |
Definition at line 995 of file qmainwindowlayout.cpp.
References centralWidgetItem, and item.
Referenced by QMainWindowLayout::centralWidget().
bool QMainWindowLayoutState::checkFormat | ( | QDataStream & | stream | ) |
Definition at line 1267 of file qmainwindowlayout.cpp.
References QDockAreaLayout::DockWidgetStateMarker, QDockAreaLayout::FloatingDockWidgetTabMarker, info, mainWindow, QToolBarAreaLayout::ToolBarStateMarker, and QToolBarAreaLayout::ToolBarStateMarkerEx.
Referenced by restoreState().
void QMainWindowLayoutState::clear | ( | ) |
Definition at line 1101 of file qmainwindowlayout.cpp.
References centralWidgetRect, and rect.
Referenced by QMainWindowLayout::restoreState().
bool QMainWindowLayoutState::contains | ( | QWidget * | widget | ) | const |
Definition at line 960 of file qmainwindowlayout.cpp.
References centralWidgetItem, widget, and QLayoutItem::widget().
void QMainWindowLayoutState::deleteAllLayoutItems | ( | ) |
Definition at line 872 of file qmainwindowlayout.cpp.
Referenced by QMainWindowLayout::~QMainWindowLayout(), and QMainWindowLayout::restoreState().
void QMainWindowLayoutState::deleteCentralWidgetItem | ( | ) |
Definition at line 883 of file qmainwindowlayout.cpp.
References centralWidgetItem.
Referenced by QMainWindowLayout::~QMainWindowLayout(), and setCentralWidget().
void QMainWindowLayoutState::fitLayout | ( | ) |
Definition at line 854 of file qmainwindowlayout.cpp.
References centralWidgetRect, and rect.
Referenced by QMainWindowLayout::restoreState(), and QMainWindowLayout::unplug().
bool QMainWindowLayoutState::fits | ( | ) | const |
Returns whether the layout fits into the main window.
Definition at line 816 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().
Definition at line 1010 of file qmainwindowlayout.cpp.
Referenced by QMainWindowLayout::hover().
Definition at line 1158 of file qmainwindowlayout.cpp.
References i.
Definition at line 933 of file qmainwindowlayout.cpp.
References widget.
Referenced by restoreState(), and QMainWindowLayout::unplug().
bool QMainWindowLayoutState::insertGap | ( | const QList< int > & | path, |
QLayoutItem * | item ) |
Definition at line 1046 of file qmainwindowlayout.cpp.
bool QMainWindowLayoutState::isValid | ( | ) | const |
Definition at line 1116 of file qmainwindowlayout.cpp.
References QRect::isValid(), and rect.
Referenced by QMainWindowLayout::hover(), and QMainWindowLayout::setCentralWidget().
QLayoutItem * QMainWindowLayoutState::item | ( | const QList< int > & | path | ) |
Definition at line 1121 of file qmainwindowlayout.cpp.
Referenced by QMainWindowLayout::unplug().
QLayoutItem * QMainWindowLayoutState::itemAt | ( | int | index, |
int * | x ) const |
Definition at line 894 of file qmainwindowlayout.cpp.
References centralWidgetItem, and ret.
Definition at line 1141 of file qmainwindowlayout.cpp.
References i.
Referenced by QMainWindowLayout::unplug().
QSize QMainWindowLayoutState::minimumSize | ( | ) | const |
Definition at line 793 of file qmainwindowlayout.cpp.
References centralWidgetItem, and QLayoutItem::minimumSize().
QLayoutItem * QMainWindowLayoutState::plug | ( | const QList< int > & | path | ) |
Definition at line 1175 of file qmainwindowlayout.cpp.
References i.
Definition at line 1070 of file qmainwindowlayout.cpp.
References i.
void QMainWindowLayoutState::remove | ( | QLayoutItem * | item | ) |
Definition at line 1085 of file qmainwindowlayout.cpp.
References dockWidget, and item.
bool QMainWindowLayoutState::restoreState | ( | QDataStream & | stream, |
const QMainWindowLayoutState & | oldState ) |
Definition at line 1318 of file qmainwindowlayout.cpp.
References ba, checkFormat(), QDockAreaLayout::constrainedRect(), copy(), QByteArray::data(), QDockAreaLayout::DockWidgetStateMarker, QDockAreaLayout::FloatingDockWidgetTabMarker, Qt::Horizontal, i, indexOf(), info, QInternal::LeftDock, mainWindow, qt_mainwindow_layout(), QByteArray::resize(), QTabBar::RoundedSouth, QDataStream::setVersion(), QByteArray::size(), QRect::size(), QToolBarAreaLayout::ToolBarStateMarker, QToolBarAreaLayout::ToolBarStateMarkerEx, and QRect::topLeft().
Referenced by QMainWindowLayout::restoreState().
void QMainWindowLayoutState::saveState | ( | QDataStream & | stream | ) | const |
Definition at line 1211 of file qmainwindowlayout.cpp.
References QObject::findChildren(), Qt::FindDirectChildrenOnly, QDockAreaLayout::FloatingDockWidgetTabMarker, and mainWindow.
Referenced by QMainWindowLayout::saveState().
Definition at line 979 of file qmainwindowlayout.cpp.
References centralWidgetItem, deleteCentralWidgetItem(), item, and widget.
Referenced by QMainWindowLayout::setCentralWidget().
QSize QMainWindowLayoutState::sizeHint | ( | ) | const |
Definition at line 774 of file qmainwindowlayout.cpp.
References centralWidgetItem, and QLayoutItem::sizeHint().
QLayoutItem * QMainWindowLayoutState::takeAt | ( | int | index, |
int * | x ) |
Definition at line 912 of file qmainwindowlayout.cpp.
References centralWidgetItem, and ret.
QLayoutItem * QMainWindowLayoutState::unplug | ( | const QList< int > & | path, |
QMainWindowLayoutState * | savedState = nullptr ) |
Definition at line 1192 of file qmainwindowlayout.cpp.
References i, other(), and Q_UNUSED.
Referenced by QMainWindowLayout::unplug().
QLayoutItem* QMainWindowLayoutState::centralWidgetItem |
Definition at line 413 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 414 of file qmainwindowlayout_p.h.
Referenced by apply(), clear(), and fitLayout().
QMainWindow* QMainWindowLayoutState::mainWindow |
Definition at line 402 of file qmainwindowlayout_p.h.
Referenced by QMainWindowLayoutState(), apply(), checkFormat(), fits(), restoreState(), and saveState().
QRect QMainWindowLayoutState::rect |
Definition at line 401 of file qmainwindowlayout_p.h.
Referenced by clear(), fitLayout(), isValid(), and QMainWindowLayout::restoreState().