45 #include <QtGui/qframe.h> 46 #include <QtGui/qsizepolicy.h> 54 #ifndef QT_NO_SPLITTER 58 template <
typename T>
class QList;
82 void setChildrenCollapsible(
bool);
83 bool childrenCollapsible()
const;
85 void setCollapsible(
int index,
bool);
86 bool isCollapsible(
int index)
const;
87 void setOpaqueResize(
bool opaque =
true);
88 bool opaqueResize()
const;
100 int handleWidth()
const;
101 void setHandleWidth(
int);
107 void getRange(
int index,
int *,
int *)
const;
110 void setStretchFactor(
int index,
int stretch);
113 void splitterMoved(
int pos,
int index);
124 void moveSplitter(
int pos,
int index);
126 int closestLegalPosition(
int,
int);
132 enum ResizeMode {
Stretch, KeepSize, FollowSizeHint, Auto };
133 QT3_SUPPORT
void setResizeMode(
QWidget *w, ResizeMode mode);
134 inline QT3_SUPPORT
void moveToFirst(
QWidget *w) { insertWidget(0,w); }
135 inline QT3_SUPPORT
void moveToLast(
QWidget *w) { addWidget(w); }
136 inline QT3_SUPPORT
void setCollapsible(
QWidget *w,
bool collapse)
137 { setCollapsible(indexOf(w), collapse); }
138 QT3_SUPPORT
void setMargin(
int margin) {
setContentsMargins(margin, margin, margin, margin); }
139 QT3_SUPPORT
int margin()
const 140 {
int margin;
int dummy;
getContentsMargins(&margin, &dummy, &dummy, &dummy);
return margin; }
151 #ifndef QT_NO_TEXTSTREAM 165 bool opaqueResize()
const;
178 void moveSplitter(
int p);
179 int closestLegalPosition(
int p);
186 #endif // QT_NO_SPLITTER 192 #endif // QSPLITTER_H Q_GUI_EXPORT QTextStream & operator>>(QTextStream &, QSplitter &)
#define QT_END_NAMESPACE
This macro expands to.
QPointer< QWidget > widget
Qt::Orientation orientation
the orientation of the splitter
The QByteArray class provides an array of bytes.
static qreal position(QGraphicsObject *item, QDeclarativeAnchorLine::AnchorLine anchorLine)
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
The QSplitterHandle class provides handle functionality of the splitter.
bool opaqueResize
whether resizing is opaque
#define QT_BEGIN_NAMESPACE
This macro expands to.
void changeEvent(QEvent *)
This event handler can be reimplemented to handle state changes.
virtual void childEvent(QChildEvent *)
This event handler can be reimplemented in a subclass to receive child events.
The QResizeEvent class contains event parameters for resize events.
int handleWidth
the width of the splitter handles
bool childrenCollapsible
whether child widgets can be resized down to size 0 by the user
The QMouseEvent class contains parameters that describe a mouse event.
The QChildEvent class contains event parameters for child object events.
The QTextStream class provides a convenient interface for reading and writing text.
Q_GUI_EXPORT QTextStream & operator<<(QTextStream &, const QSplitter &)
bool event(QEvent *e)
Reimplemented Function
QSize sizeHint() const
em>Reimplemented Function
The QSize class defines the size of a two-dimensional object using integer point precision.
#define Q_DECLARE_PRIVATE(Class)
The QPaintEvent class contains event parameters for paint events.
The QEvent class is the base class of all event classes.
The QFrame class is the base class of widgets that can have a frame.
The QSplitter class implements a splitter widget.
The QList class is a template class that provides lists.