aboutsummaryrefslogtreecommitdiffstats
path: root/src/templates/qquickstackview_p.cpp
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2016-01-20 17:31:18 +0100
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2016-01-21 12:26:21 +0000
commitf4f5e857447d42738b1b60b5c4184f39df2f1593 (patch)
treecae2e6a223cb48350b9634c0a04b39847ebc4299 /src/templates/qquickstackview_p.cpp
parent7cad85c2f0930e4f8531a0508c28abdae0f3e0de (diff)
C++11 keywords
- Q_NULLPTR -> nullptr - Q_DECL_OVERRIDE -> override Change-Id: I8ee65caafd43ab41b6de43835200cac6c8ffa278 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'src/templates/qquickstackview_p.cpp')
-rw-r--r--src/templates/qquickstackview_p.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/templates/qquickstackview_p.cpp b/src/templates/qquickstackview_p.cpp
index 1240d162..a34b62e9 100644
--- a/src/templates/qquickstackview_p.cpp
+++ b/src/templates/qquickstackview_p.cpp
@@ -62,15 +62,15 @@ public:
QQuickStackIncubator(QQuickStackElement *element) : QQmlIncubator(Synchronous), element(element) { }
protected:
- void setInitialState(QObject *object) Q_DECL_OVERRIDE { element->incubate(object); }
+ void setInitialState(QObject *object) override { element->incubate(object); }
private:
QQuickStackElement *element;
};
-QQuickStackElement::QQuickStackElement() : QQuickItemViewTransitionableItem(Q_NULLPTR),
+QQuickStackElement::QQuickStackElement() : QQuickItemViewTransitionableItem(nullptr),
index(-1), init(false), removal(false), ownItem(false), ownComponent(false), widthValid(false), heightValid(false),
- context(Q_NULLPTR), component(Q_NULLPTR), incubator(Q_NULLPTR), view(Q_NULLPTR),
+ context(nullptr), component(nullptr), incubator(nullptr), view(nullptr),
status(QQuickStackView::Inactive)
{
}
@@ -84,9 +84,9 @@ QQuickStackElement::~QQuickStackElement()
delete component;
if (ownItem && item) {
- item->setParentItem(Q_NULLPTR);
+ item->setParentItem(nullptr);
item->deleteLater();
- item = Q_NULLPTR;
+ item = nullptr;
} else if (item) {
item->setVisible(false);
if (item->parentItem() != originalParent) {
@@ -94,7 +94,7 @@ QQuickStackElement::~QQuickStackElement()
} else {
QQuickStackAttached *attached = attachedStackObject(this);
if (attached)
- QQuickStackAttachedPrivate::get(attached)->itemParentChanged(item, Q_NULLPTR);
+ QQuickStackAttachedPrivate::get(attached)->itemParentChanged(item, nullptr);
}
}
@@ -239,10 +239,10 @@ void QQuickStackElement::startTransition(QQuickItemViewTransitioner *transitione
void QQuickStackElement::itemDestroyed(QQuickItem *)
{
- item = Q_NULLPTR;
+ item = nullptr;
}
-QQuickStackViewPrivate::QQuickStackViewPrivate() : busy(false), currentItem(Q_NULLPTR), transitioner(Q_NULLPTR)
+QQuickStackViewPrivate::QQuickStackViewPrivate() : busy(false), currentItem(nullptr), transitioner(nullptr)
{
}
@@ -317,14 +317,14 @@ QQuickStackElement *QQuickStackViewPrivate::findElement(QQuickItem *item) const
return e;
}
}
- return Q_NULLPTR;
+ return nullptr;
}
QQuickStackElement *QQuickStackViewPrivate::findElement(const QV4::Value &value) const
{
if (const QV4::QObjectWrapper *o = value.as<QV4::QObjectWrapper>())
return findElement(qobject_cast<QQuickItem *>(o->object()));
- return Q_NULLPTR;
+ return nullptr;
}
QQuickStackElement *QQuickStackViewPrivate::createElement(const QV4::Value &value)
@@ -334,7 +334,7 @@ QQuickStackElement *QQuickStackViewPrivate::createElement(const QV4::Value &valu
return QQuickStackElement::fromString(s->toQString(), q);
if (const QV4::QObjectWrapper *o = value.as<QV4::QObjectWrapper>())
return QQuickStackElement::fromObject(o->object(), q);
- return Q_NULLPTR;
+ return nullptr;
}
bool QQuickStackViewPrivate::pushElements(const QList<QQuickStackElement *> &elems)