Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qdesigner_internal::GridLayoutState Struct Reference
+ Collaboration diagram for qdesigner_internal::GridLayoutState:

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 *, QRectwidgetItemMap
 
QHash< QWidget *, Qt::Alignment > widgetAlignmentMap
 
int rowCount = 0
 
int colCount = 0
 

Detailed Description

Definition at line 562 of file qlayout_widget.cpp.

Member Typedef Documentation

◆ CellState

◆ CellStates

Member Enumeration Documentation

◆ DimensionCellState [1/2]

Enumerator
Free 
Spanned 
Occupied 
Free 
Spanned 
Occupied 

Definition at line 577 of file qlayout_widget.cpp.

◆ DimensionCellState [2/2]

Enumerator
Free 
Spanned 
Occupied 
Free 
Spanned 
Occupied 

Definition at line 577 of file qlayout_widget.cpp.

Constructor & Destructor Documentation

◆ GridLayoutState() [1/2]

qdesigner_internal::GridLayoutState::GridLayoutState ( )
default

◆ GridLayoutState() [2/2]

qdesigner_internal::GridLayoutState::GridLayoutState ( )
default

Member Function Documentation

◆ applyToLayout() [1/2]

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().

+ Here is the caller graph for this function:

◆ applyToLayout() [2/2]

void qdesigner_internal::GridLayoutState::applyToLayout ( const QDesignerFormEditorInterface * core,
QWidget * w ) const

◆ cellStates() [1/2]

GridLayoutState::CellStates qdesigner_internal::GridLayoutState::cellStates ( const QList< QRect > & rects,
int numRows,
int numColumns )
static

Definition at line 612 of file qlayout_widget.cpp.

References debugLayout.

◆ cellStates() [2/2]

static CellStates qdesigner_internal::GridLayoutState::cellStates ( const QList< QRect > & rects,
int numRows,
int numColumns )
static

◆ fromLayout() [1/2]

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().

+ Here is the caller graph for this function:

◆ fromLayout() [2/2]

void qdesigner_internal::GridLayoutState::fromLayout ( QGridLayout * l)

◆ insertColumn() [1/2]

void qdesigner_internal::GridLayoutState::insertColumn ( int column)

Definition at line 724 of file qlayout_widget.cpp.

References colCount.

◆ insertColumn() [2/2]

void qdesigner_internal::GridLayoutState::insertColumn ( int column)

◆ insertRow() [1/2]

void qdesigner_internal::GridLayoutState::insertRow ( int row)

Definition at line 709 of file qlayout_widget.cpp.

References rowCount.

Referenced by qdesigner_internal::GridLayoutHelper::insertRow().

+ Here is the caller graph for this function:

◆ insertRow() [2/2]

void qdesigner_internal::GridLayoutState::insertRow ( int row)

◆ removeFreeColumn() [1/2]

void qdesigner_internal::GridLayoutState::removeFreeColumn ( int column)

Definition at line 808 of file qlayout_widget.cpp.

References colCount.

Referenced by simplify().

+ Here is the caller graph for this function:

◆ removeFreeColumn() [2/2]

void qdesigner_internal::GridLayoutState::removeFreeColumn ( int column)

◆ removeFreeRow() [1/2]

void qdesigner_internal::GridLayoutState::removeFreeRow ( int row)

Definition at line 789 of file qlayout_widget.cpp.

References rowCount.

Referenced by simplify().

+ Here is the caller graph for this function:

◆ removeFreeRow() [2/2]

void qdesigner_internal::GridLayoutState::removeFreeRow ( int row)

◆ simplify() [1/2]

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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ simplify() [2/2]

bool qdesigner_internal::GridLayoutState::simplify ( const QRect & r,
bool testOnly )

Member Data Documentation

◆ colCount

int qdesigner_internal::GridLayoutState::colCount = 0

◆ rowCount

int qdesigner_internal::GridLayoutState::rowCount = 0

◆ widgetAlignmentMap

QHash< QWidget *, Qt::Alignment > qdesigner_internal::GridLayoutState::widgetAlignmentMap

Definition at line 591 of file qlayout_widget.cpp.

◆ widgetItemMap

QHash< QWidget *, QRect > qdesigner_internal::GridLayoutState::widgetItemMap

Definition at line 590 of file qlayout_widget.cpp.


The documentation for this struct was generated from the following file: