summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2018-10-27 23:55:04 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2018-10-27 23:55:04 +0900
commitae59056eb2dcf9a20c2935e869150aca386d27f1 (patch)
tree948df06c29db572e514d708233ac290f317d514f
parentcdb2c767da66815beaddd0cbceda777ddcbe9b6a (diff)
downloadpytqt-ae59056eb2dcf9a20c2935e869150aca386d27f1.tar.gz
pytqt-ae59056eb2dcf9a20c2935e869150aca386d27f1.zip
Removed obsolete CHECK_PTR and replaced CHECK_PTR/Q_CHECK_PTR with TQ_CHECK_PTR.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rwxr-xr-xexamples2/menu.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/examples2/menu.py b/examples2/menu.py
index b5c14d8..4b67156 100755
--- a/examples2/menu.py
+++ b/examples2/menu.py
@@ -143,7 +143,7 @@ class MenuExample( TQWidget ):
#printIcon = TQPixmap()
self.printer = TQPopupMenu( self )
- #CHECK_PTR( self.printer )
+ #TQ_CHECK_PTR( self.printer )
self.printer.insertTearOffHandle()
self.printer.insertItem( "&Print to printer", self.printDoc )
self.printer.insertItem( "Print to &file", self.file )
@@ -152,7 +152,7 @@ class MenuExample( TQWidget ):
self.printer.insertItem( "Printer &Setup", self.printerSetup )
self.file = TQPopupMenu( self )
- #CHECK_PTR( self.file );
+ #TQ_CHECK_PTR( self.file );
self.file.insertItem( self.p1, "&Open", self.open, TQt.CTRL+TQt.Key_O )
self.file.insertItem( self.p2, "&New", self.news, TQt.CTRL+TQt.Key_N )
self.file.insertItem( self.p3, "&Save", self.save, TQt.CTRL+TQt.Key_S )
@@ -163,14 +163,14 @@ class MenuExample( TQWidget ):
self.file.insertItem( "E&xit", tqApp, SLOT( "quit()" ), TQt.CTRL+TQt.Key_Q )
self.edit = TQPopupMenu( self )
- #CHECK_PTR( self.edit )
+ #TQ_CHECK_PTR( self.edit )
undoID = self.edit.insertItem( "&Undo", self.undo )
redoID = self.edit.insertItem( "&Redo", self.redo )
self.edit.setItemEnabled( undoID, TRUE )
self.edit.setItemEnabled( redoID, FALSE )
self.options = TQPopupMenu( self )
- #CHECK_PTR( self.options )
+ #TQ_CHECK_PTR( self.options )
self.options.insertTearOffHandle()
self.options.setCaption( 'Options' )
self.options.insertItem( "&Normal Font", self.normal )
@@ -194,7 +194,7 @@ class MenuExample( TQWidget ):
self.options.setCheckable( TRUE )
self.options = TQPopupMenu()
- #CHECK_PTR( self.options )
+ #TQ_CHECK_PTR( self.options )
self.options.insertItem( "&Normal Font", self.normal )
self.options.insertSeparator()
self.boldID = self.options.insertItem( "&Bold", self.bold )
@@ -205,12 +205,12 @@ class MenuExample( TQWidget ):
self.options.setCheckable( TRUE )
self.help = TQPopupMenu( self )
- #CHECK_PTR( self.help )
+ #TQ_CHECK_PTR( self.help )
self.help.insertItem( "&About", self.about, TQt.CTRL+TQt.Key_H )
self.help.insertItem( "About &TQt", self.aboutTQt )
self.menu = TQMenuBar( self )
- #CHECK_PTR( self.menu );
+ #TQ_CHECK_PTR( self.menu );
self.menu.insertItem( "&File", self.file )
self.menu.insertItem( "&Edit", self.edit )
self.menu.insertItem( "&Options", self.options )
@@ -219,7 +219,7 @@ class MenuExample( TQWidget ):
self.menu.setSeparator( TQMenuBar.InWindowsStyle )
self.label = TQLabel( self )
- #CHECK_PTR( self.label )
+ #TQ_CHECK_PTR( self.label )
self.label.setGeometry( 20, self.rect().center().y()-20, self.width()-40, 40 )
self.label.setFrameStyle( TQFrame.Box | TQFrame.Raised )
self.label.setLineWidth( 1 )