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 ,
  HorizSizeConstraintProperty = 0x100 , VertSizeConstraintProperty = 0x200 , FieldGrowthPolicyProperty = 0x400 , RowWrapPolicyProperty = 0x800 ,
  LabelAlignmentProperty = 0x1000 , FormAlignmentProperty = 0x2000 , BoxStretchProperty = 0x4000 , GridRowStretchProperty = 0x8000 ,
  GridColumnStretchProperty = 0x10000 , GridRowMinimumHeightProperty = 0x20000 , GridColumnMinimumWidthProperty = 0x40000 , AllProperties = 0xFFFFF
}

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_horizSizeConstraint
bool m_horizSizeConstraintChanged
QVariant m_vertSizeConstraint
bool m_vertSizeConstraintChanged
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 
HorizSizeConstraintProperty 
VertSizeConstraintProperty 
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 215 of file qlayout_widget.cpp.

Member Function Documentation

◆ clear()

void qdesigner_internal::LayoutProperties::clear ( )

Definition at line 220 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 303 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 379 of file qlayout_widget.cpp.

◆ visibleProperties()

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

Definition at line 244 of file qlayout_widget.cpp.

Member Data Documentation

◆ m_boxStretch

QVariant qdesigner_internal::LayoutProperties::m_boxStretch

Definition at line 96 of file qlayout_widget_p.h.

◆ m_boxStretchChanged

bool qdesigner_internal::LayoutProperties::m_boxStretchChanged

Definition at line 95 of file qlayout_widget_p.h.

◆ m_fieldGrowthPolicy

QVariant qdesigner_internal::LayoutProperties::m_fieldGrowthPolicy

Definition at line 87 of file qlayout_widget_p.h.

◆ m_fieldGrowthPolicyChanged

bool qdesigner_internal::LayoutProperties::m_fieldGrowthPolicyChanged

Definition at line 86 of file qlayout_widget_p.h.

◆ m_formAlignment

QVariant qdesigner_internal::LayoutProperties::m_formAlignment

Definition at line 93 of file qlayout_widget_p.h.

◆ m_formAlignmentChanged

bool qdesigner_internal::LayoutProperties::m_formAlignmentChanged

Definition at line 92 of file qlayout_widget_p.h.

◆ m_gridColumnMinimumWidth

QVariant qdesigner_internal::LayoutProperties::m_gridColumnMinimumWidth

Definition at line 108 of file qlayout_widget_p.h.

◆ m_gridColumnMinimumWidthChanged

bool qdesigner_internal::LayoutProperties::m_gridColumnMinimumWidthChanged

Definition at line 107 of file qlayout_widget_p.h.

◆ m_gridColumnStretch

QVariant qdesigner_internal::LayoutProperties::m_gridColumnStretch

Definition at line 102 of file qlayout_widget_p.h.

◆ m_gridColumnStretchChanged

bool qdesigner_internal::LayoutProperties::m_gridColumnStretchChanged

Definition at line 101 of file qlayout_widget_p.h.

◆ m_gridRowMinimumHeight

QVariant qdesigner_internal::LayoutProperties::m_gridRowMinimumHeight

Definition at line 105 of file qlayout_widget_p.h.

◆ m_gridRowMinimumHeightChanged

bool qdesigner_internal::LayoutProperties::m_gridRowMinimumHeightChanged

Definition at line 104 of file qlayout_widget_p.h.

◆ m_gridRowStretch

QVariant qdesigner_internal::LayoutProperties::m_gridRowStretch

Definition at line 99 of file qlayout_widget_p.h.

◆ m_gridRowStretchChanged

bool qdesigner_internal::LayoutProperties::m_gridRowStretchChanged

Definition at line 98 of file qlayout_widget_p.h.

◆ m_horizSizeConstraint

QVariant qdesigner_internal::LayoutProperties::m_horizSizeConstraint

Definition at line 80 of file qlayout_widget_p.h.

◆ m_horizSizeConstraintChanged

bool qdesigner_internal::LayoutProperties::m_horizSizeConstraintChanged

Definition at line 81 of file qlayout_widget_p.h.

◆ m_labelAlignment

QVariant qdesigner_internal::LayoutProperties::m_labelAlignment

Definition at line 91 of file qlayout_widget_p.h.

◆ m_labelAlignmentChanged

bool qdesigner_internal::LayoutProperties::m_labelAlignmentChanged

Definition at line 90 of file qlayout_widget_p.h.

◆ m_margins

int qdesigner_internal::LayoutProperties::m_margins[MarginCount]

Definition at line 68 of file qlayout_widget_p.h.

◆ m_marginsChanged

bool qdesigner_internal::LayoutProperties::m_marginsChanged[MarginCount]

Definition at line 69 of file qlayout_widget_p.h.

◆ m_objectName

QVariant qdesigner_internal::LayoutProperties::m_objectName

Definition at line 74 of file qlayout_widget_p.h.

◆ m_objectNameChanged

bool qdesigner_internal::LayoutProperties::m_objectNameChanged

Definition at line 75 of file qlayout_widget_p.h.

◆ m_rowWrapPolicy

QVariant qdesigner_internal::LayoutProperties::m_rowWrapPolicy

Definition at line 89 of file qlayout_widget_p.h.

◆ m_rowWrapPolicyChanged

bool qdesigner_internal::LayoutProperties::m_rowWrapPolicyChanged

Definition at line 88 of file qlayout_widget_p.h.

◆ m_spacings

int qdesigner_internal::LayoutProperties::m_spacings[SpacingsCount]

Definition at line 71 of file qlayout_widget_p.h.

◆ m_spacingsChanged

bool qdesigner_internal::LayoutProperties::m_spacingsChanged[SpacingsCount]

Definition at line 72 of file qlayout_widget_p.h.

◆ m_vertSizeConstraint

QVariant qdesigner_internal::LayoutProperties::m_vertSizeConstraint

Definition at line 82 of file qlayout_widget_p.h.

◆ m_vertSizeConstraintChanged

bool qdesigner_internal::LayoutProperties::m_vertSizeConstraintChanged

Definition at line 83 of file qlayout_widget_p.h.


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