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 5ee2b738c2f..3f57b4fe30c 100644
--- a/examples/opengl/hellogl2/mainwindow.cpp
+++ b/examples/opengl/hellogl2/mainwindow.cpp
@@ -11,12 +11,13 @@
MainWindow::MainWindow()
{
+#ifndef Q_OS_WASM
QMenu *menuWindow = menuBar()->addMenu(tr("&Window"));
menuWindow->addAction(tr("Add new"), QKeySequence(Qt::CTRL | Qt::Key_N),
this, &MainWindow::onAddNew);
menuWindow->addAction(tr("Quit"), QKeySequence(Qt::CTRL | Qt::Key_Q),
qApp, QApplication::closeAllWindows);
-
+#endif
onAddNew();
}