Qt 4.8
Classes | Typedefs | Enumerations | Functions
qgridlayoutengine_p.h File Reference
#include "qalgorithms.h"
#include "qbitarray.h"
#include "qlist.h"
#include "qmap.h"
#include "qpair.h"
#include "qvector.h"
#include "qgraphicslayout_p.h"
#include <float.h>

Go to the source code of this file.

Classes

class  QGridLayoutBox
 
class  QGridLayoutEngine
 
class  QGridLayoutItem
 
class  QGridLayoutMultiCellData
 
class  QGridLayoutRowData
 
class  QGridLayoutRowInfo
 
class  QLayoutParameter< T >
 
class  QStretchParameter
 

Typedefs

typedef QMap< QPair< int, int >, QGridLayoutMultiCellDataMultiCellMap
 

Enumerations

enum  { MinimumSize = Qt::MinimumSize, PreferredSize = Qt::PreferredSize, MaximumSize = Qt::MaximumSize, NSizes }
 
enum  { Hor, Ver, NOrientations }
 
enum  {
  NoConstraint, HorizontalConstraint, VerticalConstraint, UnknownConstraint,
  UnfeasibleConstraint
}
 
enum  LayoutSide { Left, Top, Right, Bottom }
 

Functions

bool operator!= (const QGridLayoutBox &box1, const QGridLayoutBox &box2)
 
bool operator== (const QGridLayoutBox &box1, const QGridLayoutBox &box2)
 

Typedef Documentation

◆ MultiCellMap

Definition at line 225 of file qgridlayoutengine_p.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
MinimumSize 
PreferredSize 
MaximumSize 
NSizes 

Definition at line 72 of file qgridlayoutengine_p.h.

◆ anonymous enum

anonymous enum
Enumerator
Hor 
Ver 
NOrientations 

Definition at line 80 of file qgridlayoutengine_p.h.

◆ anonymous enum

anonymous enum
Enumerator
NoConstraint 
HorizontalConstraint 
VerticalConstraint 
UnknownConstraint 
UnfeasibleConstraint 

Definition at line 94 of file qgridlayoutengine_p.h.

94  {
96  HorizontalConstraint, // Width depends on the height
97  VerticalConstraint, // Height depends on the width
98  UnknownConstraint, // need to update cache
99  UnfeasibleConstraint // not feasible, it be has some items with Vertical and others with Horizontal constraints
100 };

◆ LayoutSide

enum LayoutSide
Enumerator
Left 
Top 
Right 
Bottom 

Definition at line 87 of file qgridlayoutengine_p.h.

87  {
88  Left,
89  Top,
90  Right,
91  Bottom
92 };

Function Documentation

◆ operator!=()

bool operator!= ( const QGridLayoutBox box1,
const QGridLayoutBox box2 
)
inline

Definition at line 213 of file qgridlayoutengine_p.h.

214  { return !operator==(box1, box2); }
bool operator==(const T *o, const QPointer< T > &p)
Definition: qpointer.h:87

◆ operator==()

bool operator== ( const QGridLayoutBox box1,
const QGridLayoutBox box2 
)

Definition at line 149 of file qgridlayoutengine.cpp.

Referenced by operator!=(), and QGridLayoutBox::q_sizes().

150 {
151  for (int i = 0; i < NSizes; ++i) {
152  if (box1.q_sizes(i) != box2.q_sizes(i))
153  return false;
154  }
155  return box1.q_minimumDescent == box2.q_minimumDescent
156  && box1.q_minimumAscent == box2.q_minimumAscent;
157 }
qreal & q_sizes(int which)