From 1935d3bace96a9942e098ab119fa085d9e00bf87 Mon Sep 17 00:00:00 2001 From: Sergio Martins Date: Sun, 19 Jun 2022 11:32:37 +0100 Subject: [PATCH] example: Allow to test propagation of close event in the mdi example (cherry-picked from commit 701069617c2aaf01ff3ee115014c66b7a11a7f4e) --- examples/mdi/main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/mdi/main.cpp b/examples/mdi/main.cpp index 4e945bd9..b58ce725 100644 --- a/examples/mdi/main.cpp +++ b/examples/mdi/main.cpp @@ -55,6 +55,9 @@ int main(int argc, char **argv) auto widget3 = new MyWidget3(); dock3->setWidget(widget3); + // Just for my personal testing: Overkill to add an option + // widget3->blockCloseEvent(); + // # 3. Dock them mainWindow.addDockWidget(dock1->dockWidget(), QPoint(10, 10)); mainWindow.addDockWidget(dock2->dockWidget(), QPoint(50, 50));