aboutsummaryrefslogtreecommitdiffstats
path: root/src/quicktemplates2/qquickgroupbox_p.h
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2018-04-19 07:20:09 +0200
committerJ-P Nurmi <jpnurmi@qt.io>2018-04-19 09:34:53 +0000
commit06071fd14d6cff4d3f9b3cdff92f5ddf4bf2b3bc (patch)
tree270a4f1d68b5b6ff30013ca0b47969fafbc96221 /src/quicktemplates2/qquickgroupbox_p.h
parent37ef78bef2a1b8f6de7b196015a0343385ba36aa (diff)
GroupBox: add implicitLabelWidth|Height
[ChangeLog][Controls][GroupBox] Added implicitLabelWidth and implicitLabelHeight properties. Change-Id: Ieae54a3b3044b306cd00f45101c6573b5291352d Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/quicktemplates2/qquickgroupbox_p.h')
-rw-r--r--src/quicktemplates2/qquickgroupbox_p.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/quicktemplates2/qquickgroupbox_p.h b/src/quicktemplates2/qquickgroupbox_p.h
index b46d91fd..de36d7d7 100644
--- a/src/quicktemplates2/qquickgroupbox_p.h
+++ b/src/quicktemplates2/qquickgroupbox_p.h
@@ -59,10 +59,14 @@ class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickGroupBox : public QQuickFrame
Q_OBJECT
Q_PROPERTY(QString title READ title WRITE setTitle NOTIFY titleChanged FINAL)
Q_PROPERTY(QQuickItem *label READ label WRITE setLabel NOTIFY labelChanged FINAL)
+ // 2.5 (Qt 5.12)
+ Q_PROPERTY(qreal implicitLabelWidth READ implicitLabelWidth NOTIFY implicitLabelWidthChanged FINAL REVISION 5)
+ Q_PROPERTY(qreal implicitLabelHeight READ implicitLabelHeight NOTIFY implicitLabelHeightChanged FINAL REVISION 5)
Q_CLASSINFO("DeferredPropertyNames", "background,contentItem,label")
public:
explicit QQuickGroupBox(QQuickItem *parent = nullptr);
+ ~QQuickGroupBox();
QString title() const;
void setTitle(const QString &title);
@@ -70,9 +74,16 @@ public:
QQuickItem *label() const;
void setLabel(QQuickItem *label);
+ // 2.5 (Qt 5.12)
+ qreal implicitLabelWidth() const;
+ qreal implicitLabelHeight() const;
+
Q_SIGNALS:
void titleChanged();
void labelChanged();
+ // 2.5 (Qt 5.12)
+ Q_REVISION(5) void implicitLabelWidthChanged();
+ Q_REVISION(5) void implicitLabelHeightChanged();
protected:
void componentComplete() override;