45 #include <QtCore/qobject.h> 46 #include <QtGui/qlayoutitem.h> 47 #include <QtGui/qsizepolicy.h> 48 #include <QtCore/qrect.h> 49 #include <QtCore/qmargins.h> 67 inline QLayoutIterator(
const QLayoutIterator &i)
69 inline QLayoutIterator &operator=(
const QLayoutIterator &i) {
77 inline QT3_SUPPORT
void deleteCurrent();
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 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;
188 void widgetEvent(
QEvent *);
191 void addChildWidget(
QWidget *w);
194 QT3_SUPPORT
void deleteAllItems();
204 static void activateRecursiveHelper(
QLayoutItem *item);
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);
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(); }
231 inline void QLayoutIterator::deleteCurrent() {
delete layout->takeAt(
index); }
235 #if 1 //def QT3_SUPPORT 237 #include <QtGui/qboxlayout.h> 238 #include <QtGui/qgridlayout.h>
#define QT_END_NAMESPACE
This macro expands to.
virtual QRect geometry() const =0
Returns the rectangle covered by this layout item.
virtual bool isEmpty() const =0
Implemented in subclasses to return whether this item is empty, i.
virtual void invalidate()
Invalidates any cached information in this layout item.
virtual Qt::Orientations expandingDirections() const =0
Returns whether this layout item can make use of more space than sizeHint().
#define QT_END_INCLUDE_NAMESPACE
This macro is equivalent to QT_BEGIN_NAMESPACE.
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
long ASN1_INTEGER_get ASN1_INTEGER * a
virtual QSize minimumSize() const =0
Implemented in subclasses to return the minimum size of this item.
The QObject class is the base class of all Qt objects.
Q_CORE_EXPORT QTextStream & right(QTextStream &s)
void setAlignment(Qt::Alignment a)
Sets the alignment of this item to alignment.
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QLayoutItem class provides an abstract item that a QLayout manipulates.
virtual void childEvent(QChildEvent *)
This event handler can be reimplemented in a subclass to receive child events.
The QLayout class is the base class of geometry managers.
static QWidget * parentWidget(const QWidget *w)
virtual void setGeometry(const QRect &)=0
Implemented in subclasses to set this item's geometry to r.
The QChildEvent class contains event parameters for child object events.
SizeConstraint
The possible values are:
virtual QLayout * layout()
If this item is a QLayout, it is returned as a QLayout; otherwise 0 is returned.
QObject * parent() const
Returns a pointer to the parent object.
virtual QSize maximumSize() const =0
Implemented in subclasses to return the maximum size of this item.
The QRect class defines a rectangle in the plane using integer precision.
#define QT_BEGIN_INCLUDE_NAMESPACE
This macro is equivalent to QT_END_NAMESPACE.
The QSize class defines the size of a two-dimensional object using integer point precision.
#define Q_DECLARE_PRIVATE(Class)
The QMargins class defines the four margins of a rectangle.
The QEvent class is the base class of all event classes.
Q_CORE_EXPORT QTextStream & left(QTextStream &s)