summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--examples/quickcontrols/controls/filesystembrowser/main.cpp2
-rw-r--r--src/controls/Private/qquicktreemodeladaptor.cpp2
-rw-r--r--src/controls/qquickmenupopupwindow.cpp2
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) {