63 class Q_GUI_EXPORT QLayoutIterator
66 inline QT3_SUPPORT_CONSTRUCTOR QLayoutIterator(QLayout *i) : layout(i),
index(0) {}
67 inline QLayoutIterator(
const QLayoutIterator &i)
69 inline QLayoutIterator &operator=(
const QLayoutIterator &i) {
77 inline QT3_SUPPORT
void deleteCurrent();
82 inline QLayoutIterator(QLayout *i,
bool) :
layout(i),
index(0) {}
93 Q_DECLARE_PRIVATE(QLayout)
107 #if defined(QT3_SUPPORT) && !defined(Q_MOC_RUN)
108 , Auto = SetDefaultConstraint,
109 FreeResize = SetNoConstraint,
110 Minimum = SetMinimumSize,
123 void setSpacing(
int);
125 void setContentsMargins(
int left,
int top,
int right,
int bottom);
126 void setContentsMargins(
const QMargins &margins);
127 void getContentsMargins(
int *
left,
int *top,
int *
right,
int *bottom)
const;
129 QRect contentsRect()
const;
133 #ifdef Q_NO_USING_KEYWORD
139 void setSizeConstraint(SizeConstraint);
140 SizeConstraint sizeConstraint()
const;
142 inline QT3_SUPPORT
void setResizeMode(SizeConstraint
s) {setSizeConstraint(s);}
143 inline QT3_SUPPORT SizeConstraint resizeMode()
const {
return sizeConstraint();}
167 virtual int indexOf(
QWidget *)
const;
168 virtual int count()
const = 0;
171 int totalHeightForWidth(
int w)
const;
172 QSize totalMinimumSize()
const;
173 QSize totalMaximumSize()
const;
174 QSize totalSizeHint()
const;
177 void setEnabled(
bool);
178 bool isEnabled()
const;
181 QT3_SUPPORT
void freeze(
int w=0,
int h=0);
182 QT3_SUPPORT
bool isTopLevel()
const;
185 static QSize closestAcceptableSize(
const QWidget *
w,
const QSize &
s);
188 void widgetEvent(
QEvent *);
190 void addChildLayout(QLayout *l);
192 bool adoptLayout(QLayout *layout);
194 QT3_SUPPORT
void deleteAllItems();
199 QLayout(QLayoutPrivate &d, QLayout*,
QWidget*);
202 Q_DISABLE_COPY(QLayout)
204 static
void activateRecursiveHelper(
QLayoutItem *item);
206 friend class QApplicationPrivate;
211 QT3_SUPPORT_CONSTRUCTOR QLayout(QWidget *parent,
int margin,
int spacing = -1,
212 const char *
name = 0);
213 QT3_SUPPORT_CONSTRUCTOR QLayout(QLayout *parentLayout,
int spacing = -1,
const char *
name = 0);
214 QT3_SUPPORT_CONSTRUCTOR QLayout(
int spacing,
const char *
name = 0);
215 inline QT3_SUPPORT QWidget *mainWidget()
const {
return parentWidget(); }
216 inline QT3_SUPPORT
void remove(QWidget *
w) { removeWidget(
w); }
217 inline QT3_SUPPORT
void add(QWidget *
w) { addWidget(w); }
219 QT3_SUPPORT
void setAutoAdd(
bool a);
220 QT3_SUPPORT
bool autoAdd()
const;
221 inline QT3_SUPPORT QLayoutIterator iterator() {
return QLayoutIterator(
this,
true); }
223 inline QT3_SUPPORT
int defaultBorder()
const {
return spacing(); }
228 inline QLayoutItem *QLayoutIterator::operator++() {
return layout->itemAt(++
index); }
229 inline QLayoutItem *QLayoutIterator::current() {
return layout->itemAt(
index); }
230 inline QLayoutItem *QLayoutIterator::takeCurrent() {
return layout->takeAt(
index); }
231 inline void QLayoutIterator::deleteCurrent() {
delete layout->takeAt(
index); }
235 #if 1 //def QT3_SUPPORT
virtual Qt::Orientations expandingDirections() const =0
virtual QLayout * layout()
virtual QRect geometry() const =0
#define QT_END_INCLUDE_NAMESPACE
Q_CORE_EXPORT QTextStream & right(QTextStream &s)
#define QT_BEGIN_NAMESPACE
virtual bool isEmpty() const =0
virtual QSize minimumSize() const =0
virtual void invalidate()
void setAlignment(Qt::Alignment a)
GLuint GLuint GLsizei count
virtual QSize maximumSize() const =0
int int int int int int h
GLuint const GLchar * name
virtual void setGeometry(const QRect &)=0
GLubyte GLubyte GLubyte a
#define QT_BEGIN_INCLUDE_NAMESPACE
GLubyte GLubyte GLubyte GLubyte w
Q_CORE_EXPORT QTextStream & left(QTextStream &s)
virtual void childEvent(QChildEvent *)