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::LayoutProperties Struct Reference

#include <qlayout_widget_p.h>

+ Collaboration diagram for qdesigner_internal::LayoutProperties:

Public Types

enum  Margins {
  LeftMargin , TopMargin , RightMargin , BottomMargin ,
  MarginCount
}
 
enum  Spacings { Spacing , HorizSpacing , VertSpacing , SpacingsCount }
 
enum  PropertyMask {
  ObjectNameProperty = 0x1 , LeftMarginProperty = 0x2 , TopMarginProperty = 0x4 , RightMarginProperty = 0x8 ,
  BottomMarginProperty = 0x10 , SpacingProperty = 0x20 , HorizSpacingProperty = 0x40 , VertSpacingProperty = 0x80 ,
  SizeConstraintProperty = 0x100 , FieldGrowthPolicyProperty = 0x200 , RowWrapPolicyProperty = 0x400 , LabelAlignmentProperty = 0x0800 ,
  FormAlignmentProperty = 0x1000 , BoxStretchProperty = 0x2000 , GridRowStretchProperty = 0x4000 , GridColumnStretchProperty = 0x8000 ,
  GridRowMinimumHeightProperty = 0x10000 , GridColumnMinimumWidthProperty = 0x20000 , AllProperties = 0xFFFF
}
 

Public Member Functions

 LayoutProperties ()
 
void clear ()
 
int fromPropertySheet (const QDesignerFormEditorInterface *core, QLayout *l, int mask=AllProperties)
 
int toPropertySheet (const QDesignerFormEditorInterface *core, QLayout *l, int mask=AllProperties, bool applyChanged=true) const
 

Static Public Member Functions

static int visibleProperties (const QLayout *layout)
 

Public Attributes

int m_margins [MarginCount]
 
bool m_marginsChanged [MarginCount]
 
int m_spacings [SpacingsCount]
 
bool m_spacingsChanged [SpacingsCount]
 
QVariant m_objectName
 
bool m_objectNameChanged
 
QVariant m_sizeConstraint
 
bool m_sizeConstraintChanged
 
bool m_fieldGrowthPolicyChanged
 
QVariant m_fieldGrowthPolicy
 
bool m_rowWrapPolicyChanged
 
QVariant m_rowWrapPolicy
 
bool m_labelAlignmentChanged
 
QVariant m_labelAlignment
 
bool m_formAlignmentChanged
 
QVariant m_formAlignment
 
bool m_boxStretchChanged
 
QVariant m_boxStretch
 
bool m_gridRowStretchChanged
 
QVariant m_gridRowStretch
 
bool m_gridColumnStretchChanged
 
QVariant m_gridColumnStretch
 
bool m_gridRowMinimumHeightChanged
 
QVariant m_gridRowMinimumHeight
 
bool m_gridColumnMinimumWidthChanged
 
QVariant m_gridColumnMinimumWidth
 

Detailed Description

Definition at line 38 of file qlayout_widget_p.h.

Member Enumeration Documentation

◆ Margins

Enumerator
LeftMargin 
TopMargin 
RightMargin 
BottomMargin 
MarginCount 

Definition at line 43 of file qlayout_widget_p.h.

◆ PropertyMask

Enumerator
ObjectNameProperty 
LeftMarginProperty 
TopMarginProperty 
RightMarginProperty 
BottomMarginProperty 
SpacingProperty 
HorizSpacingProperty 
VertSpacingProperty 
SizeConstraintProperty 
FieldGrowthPolicyProperty 
RowWrapPolicyProperty 
LabelAlignmentProperty 
FormAlignmentProperty 
BoxStretchProperty 
GridRowStretchProperty 
GridColumnStretchProperty 
GridRowMinimumHeightProperty 
GridColumnMinimumWidthProperty 
AllProperties 

Definition at line 46 of file qlayout_widget_p.h.

◆ Spacings

Enumerator
Spacing 
HorizSpacing 
VertSpacing 
SpacingsCount 

Definition at line 44 of file qlayout_widget_p.h.

Constructor & Destructor Documentation

◆ LayoutProperties()

qdesigner_internal::LayoutProperties::LayoutProperties ( )

Definition at line 210 of file qlayout_widget.cpp.

Member Function Documentation

◆ clear()

void qdesigner_internal::LayoutProperties::clear ( )

Definition at line 215 of file qlayout_widget.cpp.

Referenced by qdesigner_internal::BuddyEditor::setBackground().

+ Here is the caller graph for this function:

◆ fromPropertySheet()

int qdesigner_internal::LayoutProperties::fromPropertySheet ( const QDesignerFormEditorInterface * core,
QLayout * l,
int mask = AllProperties )

Definition at line 290 of file qlayout_widget.cpp.

◆ toPropertySheet()

int qdesigner_internal::LayoutProperties::toPropertySheet ( const QDesignerFormEditorInterface * core,
QLayout * l,
int mask = AllProperties,
bool applyChanged = true ) const

Definition at line 358 of file qlayout_widget.cpp.

◆ visibleProperties()

int qdesigner_internal::LayoutProperties::visibleProperties ( const QLayout * layout)
static

Definition at line 234 of file qlayout_widget.cpp.

Member Data Documentation

◆ m_boxStretch

QVariant qdesigner_internal::LayoutProperties::m_boxStretch

Definition at line 84 of file qlayout_widget_p.h.

◆ m_boxStretchChanged

bool qdesigner_internal::LayoutProperties::m_boxStretchChanged

Definition at line 83 of file qlayout_widget_p.h.

◆ m_fieldGrowthPolicy

QVariant qdesigner_internal::LayoutProperties::m_fieldGrowthPolicy

Definition at line 75 of file qlayout_widget_p.h.

◆ m_fieldGrowthPolicyChanged

bool qdesigner_internal::LayoutProperties::m_fieldGrowthPolicyChanged

Definition at line 74 of file qlayout_widget_p.h.

◆ m_formAlignment

QVariant qdesigner_internal::LayoutProperties::m_formAlignment

Definition at line 81 of file qlayout_widget_p.h.

◆ m_formAlignmentChanged

bool qdesigner_internal::LayoutProperties::m_formAlignmentChanged

Definition at line 80 of file qlayout_widget_p.h.

◆ m_gridColumnMinimumWidth

QVariant qdesigner_internal::LayoutProperties::m_gridColumnMinimumWidth

Definition at line 96 of file qlayout_widget_p.h.

◆ m_gridColumnMinimumWidthChanged

bool qdesigner_internal::LayoutProperties::m_gridColumnMinimumWidthChanged

Definition at line 95 of file qlayout_widget_p.h.

◆ m_gridColumnStretch

QVariant qdesigner_internal::LayoutProperties::m_gridColumnStretch

Definition at line 90 of file qlayout_widget_p.h.

◆ m_gridColumnStretchChanged

bool qdesigner_internal::LayoutProperties::m_gridColumnStretchChanged

Definition at line 89 of file qlayout_widget_p.h.

◆ m_gridRowMinimumHeight

QVariant qdesigner_internal::LayoutProperties::m_gridRowMinimumHeight

Definition at line 93 of file qlayout_widget_p.h.

◆ m_gridRowMinimumHeightChanged

bool qdesigner_internal::LayoutProperties::m_gridRowMinimumHeightChanged

Definition at line 92 of file qlayout_widget_p.h.

◆ m_gridRowStretch

QVariant qdesigner_internal::LayoutProperties::m_gridRowStretch

Definition at line 87 of file qlayout_widget_p.h.

◆ m_gridRowStretchChanged

bool qdesigner_internal::LayoutProperties::m_gridRowStretchChanged

Definition at line 86 of file qlayout_widget_p.h.

◆ m_labelAlignment

QVariant qdesigner_internal::LayoutProperties::m_labelAlignment

Definition at line 79 of file qlayout_widget_p.h.

◆ m_labelAlignmentChanged

bool qdesigner_internal::LayoutProperties::m_labelAlignmentChanged

Definition at line 78 of file qlayout_widget_p.h.

◆ m_margins

int qdesigner_internal::LayoutProperties::m_margins[MarginCount]

Definition at line 63 of file qlayout_widget_p.h.

◆ m_marginsChanged

bool qdesigner_internal::LayoutProperties::m_marginsChanged[MarginCount]

Definition at line 64 of file qlayout_widget_p.h.

◆ m_objectName

QVariant qdesigner_internal::LayoutProperties::m_objectName

Definition at line 69 of file qlayout_widget_p.h.

◆ m_objectNameChanged

bool qdesigner_internal::LayoutProperties::m_objectNameChanged

Definition at line 70 of file qlayout_widget_p.h.

◆ m_rowWrapPolicy

QVariant qdesigner_internal::LayoutProperties::m_rowWrapPolicy

Definition at line 77 of file qlayout_widget_p.h.

◆ m_rowWrapPolicyChanged

bool qdesigner_internal::LayoutProperties::m_rowWrapPolicyChanged

Definition at line 76 of file qlayout_widget_p.h.

◆ m_sizeConstraint

QVariant qdesigner_internal::LayoutProperties::m_sizeConstraint

Definition at line 71 of file qlayout_widget_p.h.

◆ m_sizeConstraintChanged

bool qdesigner_internal::LayoutProperties::m_sizeConstraintChanged

Definition at line 72 of file qlayout_widget_p.h.

◆ m_spacings

int qdesigner_internal::LayoutProperties::m_spacings[SpacingsCount]

Definition at line 66 of file qlayout_widget_p.h.

◆ m_spacingsChanged

bool qdesigner_internal::LayoutProperties::m_spacingsChanged[SpacingsCount]

Definition at line 67 of file qlayout_widget_p.h.


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