Qt 4.8
Public Functions | Public Variables | List of all members
QLayoutStruct Struct Reference

#include <qlayoutengine_p.h>

Public Functions

int effectiveSpacer (int uniformSpacer) const
 
void init (int stretchFactor=0, int minSize=0)
 
int smartSizeHint ()
 

Public Variables

bool done
 
bool empty
 
bool expansive
 
int maximumSize
 
int minimumSize
 
int pos
 
int size
 
int sizeHint
 
int spacing
 
int stretch
 

Detailed Description

Definition at line 63 of file qlayoutengine_p.h.

Functions

◆ effectiveSpacer()

int QLayoutStruct::effectiveSpacer ( int  uniformSpacer) const
inline

Definition at line 77 of file qlayoutengine_p.h.

Referenced by qGeomCalc().

77  {
78  Q_ASSERT(uniformSpacer >= 0 || spacing >= 0);
79  return (uniformSpacer >= 0) ? uniformSpacer : spacing;
80  }
#define Q_ASSERT(cond)
Definition: qglobal.h:1823

◆ init()

void QLayoutStruct::init ( int  stretchFactor = 0,
int  minSize = 0 
)
inline

Definition at line 65 of file qlayoutengine_p.h.

Referenced by QDockAreaLayoutInfo::fitItems(), and initLayoutStruct().

65  {
66  stretch = stretchFactor;
67  minimumSize = sizeHint = minSize;
69  expansive = false;
70  empty = true;
71  spacing = 0;
72  }
static const int QLAYOUTSIZE_MAX
Definition: qlayoutitem.h:56

◆ smartSizeHint()

int QLayoutStruct::smartSizeHint ( )
inline

Definition at line 74 of file qlayoutengine_p.h.

Referenced by qGeomCalc().

74  {
75  return (stretch > 0) ? minimumSize : sizeHint;
76  }

Properties

◆ done

bool QLayoutStruct::done

Definition at line 92 of file qlayoutengine_p.h.

Referenced by qGeomCalc().

◆ empty

bool QLayoutStruct::empty

◆ expansive

bool QLayoutStruct::expansive

◆ maximumSize

int QLayoutStruct::maximumSize

◆ minimumSize

int QLayoutStruct::minimumSize

◆ pos

int QLayoutStruct::pos

◆ size

int QLayoutStruct::size

◆ sizeHint

int QLayoutStruct::sizeHint

◆ spacing

int QLayoutStruct::spacing

◆ stretch

int QLayoutStruct::stretch

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