aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBartlomiej Moskal <bartlomiej.moskal@qt.io>2025-04-09 13:46:49 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2025-04-14 10:23:24 +0000
commit74e3d0d4c6a2da8c939e1f36d72e2273aa158775 (patch)
tree57bdef1f4ca6d14da9a166cefc21219db265efde
parent9ccd3c6d87f106574832a7267b13abb478c7d64e (diff)
QQuickMaterialPlaceholderText: Add MEMBER to Q_PROPERTY declarations
In e70994631407b16738d2c2be8c956d8d3bbf5499 commit, two new Q_PROPERTY declarations were added: leftPadding and floatingLeftPadding. Both were missing the MEMBER keyword, which allows the Qt meta-object system to access the member variables directly. Without this fix, the following compilation warning appears: "Property declaration leftPadding has neither an associated QProperty<> member, nor a READ accessor function nor an associated MEMBER variable. The property will be invalid." Task-number: QTBUG-133492 Change-Id: I11dc288463c0966821fe09f7f9fe85be1aa2c56b Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> (cherry picked from commit a12dcbc8d5488641868ca5e867044f3fe3d099ac) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit 08004bca4581e5e5d51042feeb5e5d51f31116b7)
-rw-r--r--src/quickcontrols/material/impl/qquickmaterialplaceholdertext_p.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/quickcontrols/material/impl/qquickmaterialplaceholdertext_p.h b/src/quickcontrols/material/impl/qquickmaterialplaceholdertext_p.h
index 3e9cebddc1..263c656d02 100644
--- a/src/quickcontrols/material/impl/qquickmaterialplaceholdertext_p.h
+++ b/src/quickcontrols/material/impl/qquickmaterialplaceholdertext_p.h
@@ -37,8 +37,8 @@ class QQuickMaterialPlaceholderText : public QQuickPlaceholderText
Q_PROPERTY(qreal controlImplicitBackgroundHeight READ controlImplicitBackgroundHeight
WRITE setControlImplicitBackgroundHeight NOTIFY controlImplicitBackgroundHeightChanged FINAL)
Q_PROPERTY(qreal controlHeight READ controlHeight WRITE setControlHeight FINAL)
- Q_PROPERTY(int leftPadding WRITE setLeftPadding FINAL)
- Q_PROPERTY(int floatingLeftPadding WRITE setFloatingLeftPadding FINAL)
+ Q_PROPERTY(int leftPadding MEMBER m_leftPadding WRITE setLeftPadding FINAL)
+ Q_PROPERTY(int floatingLeftPadding MEMBER m_floatingLeftPadding WRITE setFloatingLeftPadding FINAL)
QML_NAMED_ELEMENT(FloatingPlaceholderText)
QML_ADDED_IN_VERSION(6, 5)