summaryrefslogtreecommitdiffstats
path: root/examples/opengl/hellogl2/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/opengl/hellogl2/mainwindow.cpp')
-rw-r--r--examples/opengl/hellogl2/mainwindow.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/opengl/hellogl2/mainwindow.cpp b/examples/opengl/hellogl2/mainwindow.cpp
index 6bfdee7785..aa20cd678c 100644
--- a/examples/opengl/hellogl2/mainwindow.cpp
+++ b/examples/opengl/hellogl2/mainwindow.cpp
@@ -72,5 +72,6 @@ void MainWindow::onAddNew()
if (!centralWidget())
setCentralWidget(new Window(this));
else
- QMessageBox::information(0, tr("Cannot add new window"), tr("Already occupied. Undock first."));
+ QMessageBox::information(nullptr, tr("Cannot add new window"),
+ tr("Already occupied. Undock first."));
}