diff options
Diffstat (limited to 'src/controls/qquickframe.cpp')
-rw-r--r-- | src/controls/qquickframe.cpp | 42 |
1 files changed, 41 insertions, 1 deletions
diff --git a/src/controls/qquickframe.cpp b/src/controls/qquickframe.cpp index 2f2ec65d..ae642b61 100644 --- a/src/controls/qquickframe.cpp +++ b/src/controls/qquickframe.cpp @@ -50,7 +50,7 @@ QT_BEGIN_NAMESPACE TODO */ -QQuickFramePrivate::QQuickFramePrivate() : frame(Q_NULLPTR) +QQuickFramePrivate::QQuickFramePrivate() : contentWidth(0), contentHeight(0), frame(Q_NULLPTR) { } @@ -65,6 +65,46 @@ QQuickFrame::QQuickFrame(QQuickFramePrivate &dd, QQuickItem *parent) : } /*! + \qmlproperty real QtQuickControls2::Frame::contentWidth + + TODO +*/ +qreal QQuickFrame::contentWidth() const +{ + Q_D(const QQuickFrame); + return d->contentWidth; +} + +void QQuickFrame::setContentWidth(qreal width) +{ + Q_D(QQuickFrame); + if (d->contentWidth != width) { + d->contentWidth = width; + emit contentWidthChanged(); + } +} + +/*! + \qmlproperty real QtQuickControls2::Frame::contentHeight + + TODO +*/ +qreal QQuickFrame::contentHeight() const +{ + Q_D(const QQuickFrame); + return d->contentHeight; +} + +void QQuickFrame::setContentHeight(qreal height) +{ + Q_D(QQuickFrame); + if (d->contentHeight != height) { + d->contentHeight = height; + emit contentHeightChanged(); + } +} + +/*! \qmlproperty Item QtQuickControls2::Frame::frame TODO |