aboutsummaryrefslogtreecommitdiffstats
path: root/src/quicktemplates2/qquickstackelement.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/qquickstackelement.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/qquickstackelement.cpp')
-rw-r--r--src/quicktemplates2/qquickstackelement.cpp23
1 files changed, 18 insertions, 5 deletions
diff --git a/src/quicktemplates2/qquickstackelement.cpp b/src/quicktemplates2/qquickstackelement.cpp
index 6dcd5e75..2744c3e9 100644
--- a/src/quicktemplates2/qquickstackelement.cpp
+++ b/src/quicktemplates2/qquickstackelement.cpp
@@ -58,7 +58,11 @@ static QQuickStackViewAttached *attachedStackObject(QQuickStackElement *element)
class QQuickStackIncubator : public QQmlIncubator
{
public:
- QQuickStackIncubator(QQuickStackElement *element) : QQmlIncubator(Synchronous), element(element) { }
+ QQuickStackIncubator(QQuickStackElement *element)
+ : QQmlIncubator(Synchronous),
+ element(element)
+ {
+ }
protected:
void setInitialState(QObject *object) override { element->incubate(object); }
@@ -67,10 +71,19 @@ private:
QQuickStackElement *element;
};
-QQuickStackElement::QQuickStackElement() : QQuickItemViewTransitionableItem(nullptr),
- index(-1), init(false), removal(false), ownItem(false), ownComponent(false), widthValid(false), heightValid(false),
- context(nullptr), component(nullptr), view(nullptr),
- status(QQuickStackView::Inactive)
+QQuickStackElement::QQuickStackElement()
+ : QQuickItemViewTransitionableItem(nullptr),
+ index(-1),
+ init(false),
+ removal(false),
+ ownItem(false),
+ ownComponent(false),
+ widthValid(false),
+ heightValid(false),
+ context(nullptr),
+ component(nullptr),
+ view(nullptr),
+ status(QQuickStackView::Inactive)
{
}