summaryrefslogtreecommitdiffstats
path: root/examples2/widgets.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples2/widgets.py')
-rwxr-xr-xexamples2/widgets.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples2/widgets.py b/examples2/widgets.py
index 59d9249..3dfa524 100755
--- a/examples2/widgets.py
+++ b/examples2/widgets.py
@@ -136,7 +136,7 @@ class WidgetView ( TQWidget ):
self.setCaption( "TQt Widgets Demo Application" )
# Install an application-global event filter
- qApp.installEventFilter( self )
+ tqApp.installEventFilter( self )
# Create a layout to position the widgets
self.topLayout = TQVBoxLayout( self, 10 )
@@ -161,7 +161,7 @@ class WidgetView ( TQWidget ):
self.id = self.popup.insertItem( "&Open" )
self.popup.setItemEnabled( self.id, FALSE )
self.popup.insertSeparator()
- self.popup.insertItem( "&Quit", qApp, SLOT("quit()"), TQt.CTRL+TQt.Key_Q )
+ self.popup.insertItem( "&Quit", tqApp, SLOT("quit()"), TQt.CTRL+TQt.Key_Q )
self.menubar.insertItem( "&File", self.popup )