summaryrefslogtreecommitdiffstats
path: root/examples/widgets/richtext
diff options
context:
space:
mode:
authorTor Arne Vestbø <[email protected]>2023-02-20 11:18:35 +0100
committerTor Arne Vestbø <[email protected]>2023-02-20 15:18:18 +0100
commit850ef55fc57e62b70bab72705038e671002ca86e (patch)
tree1fce3ac353b9878bf493382a655c3c08d9a09c52 /examples/widgets/richtext
parent0efd8854c4b32ec0b011efbf6b3a1990fe684e32 (diff)
examples: Connect Quit action to QCoreApplication::quit, not QWidget::close
Pick-to: 6.5 Change-Id: I44ca7b61a4a261a7d3aad0dfeb870eb927ee768d Reviewed-by: Volker Hilsheimer <[email protected]>
Diffstat (limited to 'examples/widgets/richtext')
-rw-r--r--examples/widgets/richtext/textedit/textedit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/widgets/richtext/textedit/textedit.cpp b/examples/widgets/richtext/textedit/textedit.cpp
index 5a4d62c6461..fd2d4a8a162 100644
--- a/examples/widgets/richtext/textedit/textedit.cpp
+++ b/examples/widgets/richtext/textedit/textedit.cpp
@@ -171,7 +171,7 @@ void TextEdit::setupFileActions()
menu->addSeparator();
#endif
- a = menu->addAction(tr("&Quit"), this, &QWidget::close);
+ a = menu->addAction(tr("&Quit"), qApp, &QCoreApplication::quit);
a->setShortcut(Qt::CTRL | Qt::Key_Q);
}