diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2023-09-12 15:32:51 +0200 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2023-09-18 22:45:36 +0200 |
| commit | 62eaaeb4f58388dc56cb1b23beae892e2fd6df89 (patch) | |
| tree | 16436f8c5ec774d5e06ee0b069c5df76492d0957 /examples/opengl/hellogl2/mainwindow.cpp | |
| parent | 6f8398c8eb5476a6e98126d5b63421896b874271 (diff) | |
hellogl2 example: Decouple mainwindow from window
The circular dependency cannot be ported to the corresponding Python
example.
Task-number: PYSIDE-2206
Pick-to: 6.6 6.5
Change-Id: I031b3fffdd7bd677d2fc55e132975a65f66ad128
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'examples/opengl/hellogl2/mainwindow.cpp')
| -rw-r--r-- | examples/opengl/hellogl2/mainwindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/opengl/hellogl2/mainwindow.cpp b/examples/opengl/hellogl2/mainwindow.cpp index 4ec8fcb8b10..5ee2b738c2f 100644 --- a/examples/opengl/hellogl2/mainwindow.cpp +++ b/examples/opengl/hellogl2/mainwindow.cpp @@ -23,7 +23,7 @@ MainWindow::MainWindow() void MainWindow::onAddNew() { if (!centralWidget()) - setCentralWidget(new Window(this)); + setCentralWidget(new Window); else QMessageBox::information(this, tr("Cannot Add New Window"), tr("Already occupied. Undock first.")); |
