diff options
Diffstat (limited to 'examples/opengl/hellogl2/window.cpp')
| -rw-r--r-- | examples/opengl/hellogl2/window.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/opengl/hellogl2/window.cpp b/examples/opengl/hellogl2/window.cpp index 5a7ddf826fd..c129142a893 100644 --- a/examples/opengl/hellogl2/window.cpp +++ b/examples/opengl/hellogl2/window.cpp @@ -45,10 +45,13 @@ Window::Window() container->addWidget(zSlider); mainLayout->addWidget(w); + dockBtn = nullptr; + +#ifndef Q_OS_WASM dockBtn = new QPushButton(tr("Undock"), this); connect(dockBtn, &QPushButton::clicked, this, &Window::dockUndock); mainLayout->addWidget(dockBtn); - +#endif xSlider->setValue(15 * 16); ySlider->setValue(345 * 16); zSlider->setValue(0 * 16); |
