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> |
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 562 of file qlayout_widget.cpp.
typedef std::pair< DimensionCellState, DimensionCellState > qdesigner_internal::GridLayoutState::CellState = std::pair<DimensionCellState, DimensionCellState> |
Definition at line 583 of file qlayout_widget.cpp.
Definition at line 584 of file qlayout_widget.cpp.
Enumerator | |
---|---|
Free | |
Spanned | |
Occupied | |
Free | |
Spanned | |
Occupied |
Definition at line 577 of file qlayout_widget.cpp.
Enumerator | |
---|---|
Free | |
Spanned | |
Occupied | |
Free | |
Spanned | |
Occupied |
Definition at line 577 of file qlayout_widget.cpp.
|
default |
|
default |
void qdesigner_internal::GridLayoutState::applyToLayout | ( | const QDesignerFormEditorInterface * | core, |
QWidget * | w ) const |
Definition at line 665 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 612 of file qlayout_widget.cpp.
References debugLayout.
|
static |
void qdesigner_internal::GridLayoutState::fromLayout | ( | QGridLayout * | l | ) |
Definition at line 650 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 724 of file qlayout_widget.cpp.
References colCount.
void qdesigner_internal::GridLayoutState::insertColumn | ( | int | column | ) |
void qdesigner_internal::GridLayoutState::insertRow | ( | int | row | ) |
Definition at line 709 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 808 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 789 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 744 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 594 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 593 of file qlayout_widget.cpp.
Referenced by applyToLayout(), fromLayout(), insertRow(), qdesigner_internal::operator<<(), removeFreeRow(), and simplify().
Definition at line 591 of file qlayout_widget.cpp.
Definition at line 590 of file qlayout_widget.cpp.