![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
Public Types | |
| enum | DimensionCellState { Free , Spanned , Occupied , Free , Spanned , Occupied } |
| enum | DimensionCellState { Free , Spanned , Occupied , Free , Spanned , Occupied } |
| using | CellState = std::pair<DimensionCellState, DimensionCellState> |
| using | CellStates = QList<CellState> |
| using | CellState = std::pair<DimensionCellState, DimensionCellState> |
| using | CellStates = QList<CellState> |
Public Member Functions | |
| GridLayoutState ()=default | |
| void | fromLayout (QGridLayout *l) |
| void | applyToLayout (const QDesignerFormEditorInterface *core, QWidget *w) const |
| void | insertRow (int row) |
| void | insertColumn (int column) |
| bool | simplify (const QRect &r, bool testOnly) |
| void | removeFreeRow (int row) |
| void | removeFreeColumn (int column) |
| GridLayoutState ()=default | |
| void | fromLayout (QGridLayout *l) |
| void | applyToLayout (const QDesignerFormEditorInterface *core, QWidget *w) const |
| void | insertRow (int row) |
| void | insertColumn (int column) |
| bool | simplify (const QRect &r, bool testOnly) |
| void | removeFreeRow (int row) |
| void | removeFreeColumn (int column) |
Static Public Member Functions | |
| static CellStates | cellStates (const QList< QRect > &rects, int numRows, int numColumns) |
| static CellStates | cellStates (const QList< QRect > &rects, int numRows, int numColumns) |
Public Attributes | |
| QHash< QWidget *, QRect > | widgetItemMap |
| QHash< QWidget *, Qt::Alignment > | widgetAlignmentMap |
| int | rowCount = 0 |
| int | colCount = 0 |
Definition at line 591 of file qlayout_widget.cpp.
| using qdesigner_internal::GridLayoutState::CellState = std::pair<DimensionCellState, DimensionCellState> |
Definition at line 612 of file qlayout_widget.cpp.
| using qdesigner_internal::GridLayoutState::CellState = std::pair<DimensionCellState, DimensionCellState> |
Definition at line 612 of file qlayout_widget.cpp.
Definition at line 613 of file qlayout_widget.cpp.
Definition at line 613 of file qlayout_widget.cpp.
| Enumerator | |
|---|---|
| Free | |
| Spanned | |
| Occupied | |
| Free | |
| Spanned | |
| Occupied | |
Definition at line 606 of file qlayout_widget.cpp.
| Enumerator | |
|---|---|
| Free | |
| Spanned | |
| Occupied | |
| Free | |
| Spanned | |
| Occupied | |
Definition at line 606 of file qlayout_widget.cpp.
|
default |
|
default |
| void qdesigner_internal::GridLayoutState::applyToLayout | ( | const QDesignerFormEditorInterface * | core, |
| QWidget * | w ) const |
Definition at line 694 of file qlayout_widget.cpp.
References colCount, debugLayout, QPainter::QWidget, and rowCount.
Referenced by qdesigner_internal::GridLayoutHelper::insertRow(), qdesigner_internal::GridLayoutHelper::popState(), and qdesigner_internal::GridLayoutHelper::simplify().
| void qdesigner_internal::GridLayoutState::applyToLayout | ( | const QDesignerFormEditorInterface * | core, |
| QWidget * | w ) const |
|
static |
Definition at line 641 of file qlayout_widget.cpp.
References debugLayout, and Free.
|
static |
| void qdesigner_internal::GridLayoutState::fromLayout | ( | QGridLayout * | l | ) |
Definition at line 679 of file qlayout_widget.cpp.
References colCount, and rowCount.
Referenced by qdesigner_internal::GridLayoutHelper::canSimplify(), qdesigner_internal::GridLayoutHelper::insertRow(), qdesigner_internal::GridLayoutHelper::pushState(), and qdesigner_internal::GridLayoutHelper::simplify().
| void qdesigner_internal::GridLayoutState::fromLayout | ( | QGridLayout * | l | ) |
| void qdesigner_internal::GridLayoutState::insertColumn | ( | int | column | ) |
Definition at line 753 of file qlayout_widget.cpp.
References colCount.
| void qdesigner_internal::GridLayoutState::insertColumn | ( | int | column | ) |
| void qdesigner_internal::GridLayoutState::insertRow | ( | int | row | ) |
Definition at line 738 of file qlayout_widget.cpp.
References rowCount.
Referenced by qdesigner_internal::GridLayoutHelper::insertRow().
| void qdesigner_internal::GridLayoutState::insertRow | ( | int | row | ) |
| void qdesigner_internal::GridLayoutState::removeFreeColumn | ( | int | column | ) |
Definition at line 837 of file qlayout_widget.cpp.
References colCount.
Referenced by simplify().
| void qdesigner_internal::GridLayoutState::removeFreeColumn | ( | int | column | ) |
| void qdesigner_internal::GridLayoutState::removeFreeRow | ( | int | row | ) |
Definition at line 818 of file qlayout_widget.cpp.
References rowCount.
Referenced by simplify().
| void qdesigner_internal::GridLayoutState::removeFreeRow | ( | int | row | ) |
| bool qdesigner_internal::GridLayoutState::simplify | ( | const QRect & | r, |
| bool | testOnly ) |
Definition at line 773 of file qlayout_widget.cpp.
References colCount, removeFreeColumn(), removeFreeRow(), and rowCount.
Referenced by qdesigner_internal::GridLayoutHelper::canSimplify(), and qdesigner_internal::GridLayoutHelper::simplify().
| bool qdesigner_internal::GridLayoutState::simplify | ( | const QRect & | r, |
| bool | testOnly ) |
| int qdesigner_internal::GridLayoutState::colCount = 0 |
Definition at line 623 of file qlayout_widget.cpp.
Referenced by applyToLayout(), fromLayout(), insertColumn(), qdesigner_internal::operator<<(), removeFreeColumn(), and simplify().
| int qdesigner_internal::GridLayoutState::rowCount = 0 |
Definition at line 622 of file qlayout_widget.cpp.
Referenced by applyToLayout(), fromLayout(), insertRow(), qdesigner_internal::operator<<(), removeFreeRow(), and simplify().
Definition at line 620 of file qlayout_widget.cpp.
Definition at line 619 of file qlayout_widget.cpp.