diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2017-01-19 12:33:01 +0100 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2017-01-19 12:58:21 +0000 |
commit | 17ee616c3462836c93a0a322bc944d5f1a2266dc (patch) | |
tree | 8105ba30627d3f95b493805ec3edadc80a9d2ade /src/quicktemplates2/qquicklabel_p_p.h | |
parent | b43e62ce6d989f2da1457561365e1fe3596e7561 (diff) |
Cleanup QQuickLabel
Organize QQuickLabelPrivate methods first, in the same order as they
are declared in the header, and then the QQuickLabel methods, instead
of mixing them randomly. Also, remove an empty destructor, declaration
of a non-existing resizeBackground() method, apply some cosmetic coding
style tweaks, remove an unused include...
Change-Id: If9b956c857f9e5c0f8126aa3d398beab16031464
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/quicktemplates2/qquicklabel_p_p.h')
-rw-r--r-- | src/quicktemplates2/qquicklabel_p_p.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/quicktemplates2/qquicklabel_p_p.h b/src/quicktemplates2/qquicklabel_p_p.h index 5b07a85f..9bc7c36d 100644 --- a/src/quicktemplates2/qquicklabel_p_p.h +++ b/src/quicktemplates2/qquicklabel_p_p.h @@ -69,14 +69,15 @@ public: QQuickLabelPrivate(); ~QQuickLabelPrivate(); - static QQuickLabelPrivate *get(QQuickLabel *item) { - return static_cast<QQuickLabelPrivate *>(QObjectPrivate::get(item)); } + static QQuickLabelPrivate *get(QQuickLabel *item) + { + return static_cast<QQuickLabelPrivate *>(QObjectPrivate::get(item)); + } - void resizeBackground(); void resolveFont(); void inheritFont(const QFont &f); - void _q_textChanged(const QString &text); + void textChanged(const QString &text); #ifndef QT_NO_ACCESSIBILITY void accessibilityActiveChanged(bool active) override; |