QtGui/qlayoutitem.h Source File
Go to the documentation of this file.
64 class Q_GUI_EXPORT QLayoutItem
67 inline explicit QLayoutItem(Qt::Alignment alignment = 0);
68 virtual ~QLayoutItem();
69 virtual QSize sizeHint()
const = 0;
70 virtual QSize minimumSize()
const = 0;
71 virtual QSize maximumSize()
const = 0;
72 virtual Qt::Orientations expandingDirections()
const = 0;
73 virtual void setGeometry(
const QRect&) = 0;
74 virtual QRect geometry()
const = 0;
75 virtual bool isEmpty()
const = 0;
76 virtual bool hasHeightForWidth()
const;
77 virtual int heightForWidth(
int)
const;
78 virtual int minimumHeightForWidth(
int)
const;
79 virtual void invalidate();
81 virtual QWidget *widget();
82 virtual QLayout *layout();
83 virtual QSpacerItem *spacerItem();
86 void setAlignment(Qt::Alignment
a);
87 QSizePolicy::ControlTypes controlTypes()
const;
94 : align(aalignment) { }
103 void changeSize(
int w,
int h,
156 enum { Dirty = -123, HfwCacheMaxSize = 3 };
158 inline bool useSizeCache()
const;
159 void updateCacheIfNecessary()
const;
160 inline void invalidateSizeCache() {
161 q_cachedMinimumSize.setWidth(Dirty);
165 mutable QSize q_cachedMinimumSize;
166 mutable QSize q_cachedSizeHint;
167 mutable QSize q_cachedMaximumSize;
168 mutable QSize q_cachedHfws[HfwCacheMaxSize];
169 mutable short q_firstCachedHfw;
170 mutable short q_hfwCacheSize;
173 friend class QWidgetPrivate;
182 #endif // QLAYOUTITEM_H
virtual QSize sizeHint() const =0
virtual Qt::Orientations expandingDirections() const =0
QT_BEGIN_HEADER static QT_BEGIN_NAMESPACE const int QLAYOUTSIZE_MAX
virtual QWidget * widget()
virtual QRect geometry() const =0
#define QT_BEGIN_NAMESPACE
virtual QSpacerItem * spacerItem()
GLenum GLsizei GLsizei height
virtual bool hasHeightForWidth() const
virtual bool isEmpty() const =0
virtual QSize minimumSize() const =0
QSpacerItem(int w, int h, QSizePolicy::Policy hData=QSizePolicy::Minimum, QSizePolicy::Policy vData=QSizePolicy::Minimum)
QLayoutItem(Qt::Alignment alignment=0)
virtual QSize maximumSize() const =0
int int int int int int h
virtual void setGeometry(const QRect &)=0
GLubyte GLubyte GLubyte a
Qt::Alignment alignment() const
virtual int heightForWidth(int) const
GLubyte GLubyte GLubyte GLubyte w