diff options
author | Artur Duque de Souza <artur.souza@openbossa.org> | 2009-11-06 22:01:09 (GMT) |
---|---|---|
committer | Artur Duque de Souza <artur.souza@openbossa.org> | 2009-11-06 22:01:09 (GMT) |
commit | 76a0ea27dd4e377ab5d32c7559f4b9700cd5618a (patch) | |
tree | 4b2dce0ed3d21f59406008df7355409001574021 | |
parent | 5e04d74a9fd339384bd6808ff6edc4c47f99fee0 (diff) | |
download | Qt-76a0ea27dd4e377ab5d32c7559f4b9700cd5618a.zip Qt-76a0ea27dd4e377ab5d32c7559f4b9700cd5618a.tar.gz Qt-76a0ea27dd4e377ab5d32c7559f4b9700cd5618a.tar.bz2 |
Make sizePolicy a property of QGraphicsWidget too
The widget has sizePolicy as a property and declaring that properly
helps scripting. Just as it was done with min/pref/max sizes.
Signed-off-by: Artur Duque de Souza <artur.souza@openbossa.org>
-rw-r--r-- | src/gui/graphicsview/qgraphicswidget.cpp | 6 | ||||
-rw-r--r-- | src/gui/graphicsview/qgraphicswidget.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/graphicsview/qgraphicswidget.cpp b/src/gui/graphicsview/qgraphicswidget.cpp index 35a3c13..1496798 100644 --- a/src/gui/graphicsview/qgraphicswidget.cpp +++ b/src/gui/graphicsview/qgraphicswidget.cpp @@ -318,6 +318,12 @@ void QGraphicsWidget::resize(const QSizeF &size) */ /*! + \property QGraphicsWidget::sizePolicy + \brief the size policy for the widget + \sa sizePolicy(), setSizePolicy(), QWidget::sizePolicy() +*/ + +/*! \property QGraphicsWidget::geometry \brief the geometry of the widget diff --git a/src/gui/graphicsview/qgraphicswidget.h b/src/gui/graphicsview/qgraphicswidget.h index 38f72f0..15dc878 100644 --- a/src/gui/graphicsview/qgraphicswidget.h +++ b/src/gui/graphicsview/qgraphicswidget.h @@ -77,6 +77,7 @@ class Q_GUI_EXPORT QGraphicsWidget : public QGraphicsObject, public QGraphicsLay Q_PROPERTY(QSizeF minimumSize READ minimumSize WRITE setMinimumSize) Q_PROPERTY(QSizeF preferredSize READ preferredSize WRITE setPreferredSize) Q_PROPERTY(QSizeF maximumSize READ maximumSize WRITE setMaximumSize) + Q_PROPERTY(QSizePolicy::Policy sizePolicy READ sizePolicy WRITE setSizePolicy) Q_PROPERTY(Qt::FocusPolicy focusPolicy READ focusPolicy WRITE setFocusPolicy) Q_PROPERTY(Qt::WindowFlags windowFlags READ windowFlags WRITE setWindowFlags) Q_PROPERTY(QString windowTitle READ windowTitle WRITE setWindowTitle) |