summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@qt.io>2017-09-12 16:11:54 +0200
committerKai Koehne <kai.koehne@qt.io>2017-10-04 09:31:25 +0000
commita20b68a6735a9191fe18860b29689371d06a5586 (patch)
tree056c5cf55750baf52400d5fa6cfbf0548da7cfa1 /examples
parentc1bd55b42e3c6ac7ccebce0452b0c1f048f2d5b8 (diff)
downloadqttools-a20b68a6735a9191fe18860b29689371d06a5586.tar.gz
Assistant Examples: Use nullptr
Change-Id: Icfede0f02c6651aa39e2a0a9d5b586a5bb7037e9 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Diffstat (limited to 'examples')
-rw-r--r--examples/assistant/remotecontrol/remotecontrol.h2
-rw-r--r--examples/assistant/simpletextviewer/assistant.cpp2
-rw-r--r--examples/assistant/simpletextviewer/findfiledialog.h2
-rw-r--r--examples/assistant/simpletextviewer/textedit.h2
4 files changed, 4 insertions, 4 deletions
diff --git a/examples/assistant/remotecontrol/remotecontrol.h b/examples/assistant/remotecontrol/remotecontrol.h
index b1a54e29b..40e370f71 100644
--- a/examples/assistant/remotecontrol/remotecontrol.h
+++ b/examples/assistant/remotecontrol/remotecontrol.h
@@ -64,7 +64,7 @@ class RemoteControl : public QMainWindow
Q_OBJECT
public:
- RemoteControl(QWidget *parent = 0, Qt::WindowFlags flags = 0);
+ RemoteControl(QWidget *parent = nullptr, Qt::WindowFlags flags = 0);
~RemoteControl();
private:
diff --git a/examples/assistant/simpletextviewer/assistant.cpp b/examples/assistant/simpletextviewer/assistant.cpp
index b7bbe6a06..9e668bb7f 100644
--- a/examples/assistant/simpletextviewer/assistant.cpp
+++ b/examples/assistant/simpletextviewer/assistant.cpp
@@ -108,7 +108,7 @@ bool Assistant::startAssistant()
proc->start(app, args);
if (!proc->waitForStarted()) {
- QMessageBox::critical(0, QObject::tr("Simple Text Viewer"),
+ QMessageBox::critical(nullptr, QObject::tr("Simple Text Viewer"),
QObject::tr("Unable to launch Qt Assistant (%1)").arg(app));
return false;
}
diff --git a/examples/assistant/simpletextviewer/findfiledialog.h b/examples/assistant/simpletextviewer/findfiledialog.h
index bc0e22409..6ca57b061 100644
--- a/examples/assistant/simpletextviewer/findfiledialog.h
+++ b/examples/assistant/simpletextviewer/findfiledialog.h
@@ -76,7 +76,7 @@ public:
private slots:
void browse();
void help();
- void openFile(QTreeWidgetItem *item = 0);
+ void openFile(QTreeWidgetItem *item = nullptr);
void update();
private:
diff --git a/examples/assistant/simpletextviewer/textedit.h b/examples/assistant/simpletextviewer/textedit.h
index d44fbb5f5..b1cb243fb 100644
--- a/examples/assistant/simpletextviewer/textedit.h
+++ b/examples/assistant/simpletextviewer/textedit.h
@@ -59,7 +59,7 @@ class TextEdit : public QTextEdit
Q_OBJECT
public:
- TextEdit(QWidget *parent = 0);
+ TextEdit(QWidget *parent = nullptr);
void setContents(const QString &fileName);
private: