summaryrefslogtreecommitdiffstats
path: root/examples/widgets/widgets/windowflags/controllerwindow.cpp
diff options
context:
space:
mode:
authorChristian Ehrlicher <ch.ehrlicher@gmx.de>2018-12-02 14:17:21 +0100
committerChristian Ehrlicher <ch.ehrlicher@gmx.de>2018-12-13 16:57:05 +0000
commit588bd92228efa7ed3a92929e0eb90c22be189e04 (patch)
treeb92c71975554764161cddeacac9e14824f7a4c5f /examples/widgets/widgets/windowflags/controllerwindow.cpp
parentfd83e03e7f634cda97ab793d67deb0e0b2377562 (diff)
Cleanup Widgets examples - parent ctor
Cleanup the Widgets examples - add missing parent parameter Change-Id: I5cd7aa333dbb8e6e4b7b9e05c085120733da83ec Reviewed-by: Samuel Gaist <samuel.gaist@idiap.ch> Reviewed-by: Konstantin Shegunov <kshegunov@gmail.com> Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io> Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Diffstat (limited to 'examples/widgets/widgets/windowflags/controllerwindow.cpp')
-rw-r--r--examples/widgets/widgets/windowflags/controllerwindow.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/widgets/widgets/windowflags/controllerwindow.cpp b/examples/widgets/widgets/windowflags/controllerwindow.cpp
index 78323810ed..c19f23c513 100644
--- a/examples/widgets/widgets/windowflags/controllerwindow.cpp
+++ b/examples/widgets/widgets/windowflags/controllerwindow.cpp
@@ -53,7 +53,8 @@
#include "controllerwindow.h"
//! [0]
-ControllerWindow::ControllerWindow()
+ControllerWindow::ControllerWindow(QWidget *parent)
+ : QWidget(parent)
{
previewWindow = new PreviewWindow(this);