diff options
author | Kevin Funk <[email protected]> | 2017-09-24 23:55:01 +0200 |
---|---|---|
committer | Kevin Funk <[email protected]> | 2017-09-26 17:14:41 +0000 |
commit | a530bf57935406c5268abffb29b437cb63d04324 (patch) | |
tree | fb93ea3be360f61f1877d856e0eec7f795fb1609 | |
parent | 8370c0b6b0855db53eb41e037268cd87adf154d2 (diff) |
Replace Q_NULLPTR with nullptr
Change-Id: I43296a94e6242a9e77039a0369e3a2292891fec7
Reviewed-by: Lars Knoll <[email protected]>
-rw-r--r-- | examples/quickcontrols/controls/filesystembrowser/main.cpp | 2 | ||||
-rw-r--r-- | src/controls/Private/qquicktreemodeladaptor.cpp | 2 | ||||
-rw-r--r-- | src/controls/qquickmenupopupwindow.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/examples/quickcontrols/controls/filesystembrowser/main.cpp b/examples/quickcontrols/controls/filesystembrowser/main.cpp index 5774bc857..d8599a2ea 100644 --- a/examples/quickcontrols/controls/filesystembrowser/main.cpp +++ b/examples/quickcontrols/controls/filesystembrowser/main.cpp @@ -100,7 +100,7 @@ static inline QString sizeString(const QFileInfo &fi) class DisplayFileSystemModel : public QFileSystemModel { Q_OBJECT public: - explicit DisplayFileSystemModel(QObject *parent = Q_NULLPTR) + explicit DisplayFileSystemModel(QObject *parent = nullptr) : QFileSystemModel(parent) {} enum Roles { diff --git a/src/controls/Private/qquicktreemodeladaptor.cpp b/src/controls/Private/qquicktreemodeladaptor.cpp index 26db62a3e..495abc9c9 100644 --- a/src/controls/Private/qquicktreemodeladaptor.cpp +++ b/src/controls/Private/qquicktreemodeladaptor.cpp @@ -529,7 +529,7 @@ void QQuickTreeModelAdaptor1::modelHasBeenDestroyed() { // The model has been deleted. This should behave as if no model was set clearModelData(); - emit modelChanged(Q_NULLPTR); + emit modelChanged(nullptr); } void QQuickTreeModelAdaptor1::modelHasBeenReset() diff --git a/src/controls/qquickmenupopupwindow.cpp b/src/controls/qquickmenupopupwindow.cpp index 937a5ea59..fb2315108 100644 --- a/src/controls/qquickmenupopupwindow.cpp +++ b/src/controls/qquickmenupopupwindow.cpp @@ -182,7 +182,7 @@ bool QQuickMenuPopupWindow1::shouldForwardEventAfterDismiss(QMouseEvent *e) cons { // If the event falls inside this item the event should not be forwarded. // For example for comboboxes or top menus of the menubar - QQuickMenuBar1 *mb = m_menu ? m_menu->menuBar() : Q_NULLPTR; + QQuickMenuBar1 *mb = m_menu ? m_menu->menuBar() : nullptr; QQuickItem *item = mb && !mb->isNative() ? mb->contentItem() : menu()->visualItem(); QWindow *window = transientParent(); if (item && window && item->window() == window) { |