aboutsummaryrefslogtreecommitdiffstats
path: root/src/quicktemplates2/qquickswitchdelegate.cpp
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2017-01-19 10:28:27 +0100
committerJ-P Nurmi <jpnurmi@qt.io>2017-01-19 10:34:31 +0000
commit20a613ba5e04f4d899bef8a67850cfefe8111453 (patch)
tree9c484e38e7b38b05c35fa6f8223e4b334be5e5e7 /src/quicktemplates2/qquickswitchdelegate.cpp
parent0c65ffef9b021555c03081e4e60e91a268d46c98 (diff)
Format initializer lists
Initialize one member per line. Allow empty constructors with one initialized member on a single line. Change-Id: Ie115802561ebd19efd4dacda1fa868b64d279109 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/quicktemplates2/qquickswitchdelegate.cpp')
-rw-r--r--src/quicktemplates2/qquickswitchdelegate.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/quicktemplates2/qquickswitchdelegate.cpp b/src/quicktemplates2/qquickswitchdelegate.cpp
index 9455e61901..7ee2df26f4 100644
--- a/src/quicktemplates2/qquickswitchdelegate.cpp
+++ b/src/quicktemplates2/qquickswitchdelegate.cpp
@@ -79,10 +79,7 @@ class QQuickSwitchDelegatePrivate : public QQuickItemDelegatePrivate
Q_DECLARE_PUBLIC(QQuickSwitchDelegate)
public:
- QQuickSwitchDelegatePrivate() :
- position(0)
- {
- }
+ QQuickSwitchDelegatePrivate() : position(0) { }
qreal positionAt(const QPointF &point) const;