Browse Source

Removed obsolete CHECK_PTR and replaced CHECK_PTR/Q_CHECK_PTR with TQ_CHECK_PTR.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
master
Michele Calgaro 11 months ago
parent
commit
ae59056eb2
Signed by: Michele Calgaro <michele.calgaro@yahoo.it> GPG Key ID: 2A75B7CA8ADED5CF
1 changed files with 8 additions and 8 deletions
  1. 8
    8
      examples2/menu.py

+ 8
- 8
examples2/menu.py View File

@@ -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 )

Loading…
Cancel
Save