18class DBoxWidget :
public QFrame,
public DTK_CORE_NAMESPACE::DObject
22 Q_PROPERTY(QBoxLayout::Direction direction READ direction WRITE setDirection NOTIFY directionChanged)
25 explicit DBoxWidget(QBoxLayout::Direction direction, QWidget *parent = 0);
27 QBoxLayout::Direction direction()
const;
28 QBoxLayout *layout()
const;
30 void addWidget(QWidget *widget);
31 QSize sizeHint() const Q_DECL_OVERRIDE;
34 void setDirection(QBoxLayout::Direction direction);
37 void sizeChanged(QSize size);
38 void directionChanged(QBoxLayout::Direction direction);
41 virtual
void updateSize(const QSize &size);
42 bool event(QEvent *ee) Q_DECL_OVERRIDE;