aboutsummaryrefslogtreecommitdiffstats
path: root/examples/widgets/richtext/syntaxhighlighter.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/widgets/richtext/syntaxhighlighter.py')
-rw-r--r--examples/widgets/richtext/syntaxhighlighter.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/widgets/richtext/syntaxhighlighter.py b/examples/widgets/richtext/syntaxhighlighter.py
index 5a5d7c8e0..82e4c79a1 100644
--- a/examples/widgets/richtext/syntaxhighlighter.py
+++ b/examples/widgets/richtext/syntaxhighlighter.py
@@ -102,14 +102,14 @@ class MainWindow(QtWidgets.QMainWindow):
fileMenu.addAction("&New...", self.newFile, "Ctrl+N")
fileMenu.addAction("&Open...", self.openFile, "Ctrl+O")
- fileMenu.addAction("E&xit", QtWidgets.qApp.quit, "Ctrl+Q")
+ fileMenu.addAction("E&xit", qApp.quit, "Ctrl+Q")
def setupHelpMenu(self):
helpMenu = QtWidgets.QMenu("&Help", self)
self.menuBar().addMenu(helpMenu)
helpMenu.addAction("&About", self.about)
- helpMenu.addAction("About &Qt", QtWidgets.qApp.aboutQt)
+ helpMenu.addAction("About &Qt", qApp.aboutQt)
class Highlighter(QtGui.QSyntaxHighlighter):