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>
Michele Calgaro 3 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 ):
143 143
       #printIcon = TQPixmap()
144 144
 
145 145
       self.printer = TQPopupMenu( self )
146
-      #CHECK_PTR( self.printer )
146
+      #TQ_CHECK_PTR( self.printer )
147 147
       self.printer.insertTearOffHandle()
148 148
       self.printer.insertItem( "&Print to printer", self.printDoc )
149 149
       self.printer.insertItem( "Print to &file", self.file )
@@ -152,7 +152,7 @@ class MenuExample( TQWidget ):
152 152
       self.printer.insertItem( "Printer &Setup", self.printerSetup )
153 153
 
154 154
       self.file = TQPopupMenu( self )
155
-      #CHECK_PTR( self.file );
155
+      #TQ_CHECK_PTR( self.file );
156 156
       self.file.insertItem( self.p1, "&Open", self.open, TQt.CTRL+TQt.Key_O )
157 157
       self.file.insertItem( self.p2, "&New",  self.news, TQt.CTRL+TQt.Key_N )
158 158
       self.file.insertItem( self.p3, "&Save", self.save, TQt.CTRL+TQt.Key_S )
@@ -163,14 +163,14 @@ class MenuExample( TQWidget ):
163 163
       self.file.insertItem( "E&xit",  tqApp, SLOT( "quit()" ), TQt.CTRL+TQt.Key_Q )
164 164
     
165 165
       self.edit = TQPopupMenu( self )
166
-      #CHECK_PTR( self.edit )
166
+      #TQ_CHECK_PTR( self.edit )
167 167
       undoID = self.edit.insertItem( "&Undo", self.undo )
168 168
       redoID = self.edit.insertItem( "&Redo", self.redo )
169 169
       self.edit.setItemEnabled( undoID, TRUE )
170 170
       self.edit.setItemEnabled( redoID, FALSE )
171 171
 
172 172
       self.options = TQPopupMenu( self )
173
-      #CHECK_PTR( self.options )
173
+      #TQ_CHECK_PTR( self.options )
174 174
       self.options.insertTearOffHandle()
175 175
       self.options.setCaption( 'Options' )
176 176
       self.options.insertItem( "&Normal Font", self.normal )
@@ -194,7 +194,7 @@ class MenuExample( TQWidget ):
194 194
       self.options.setCheckable( TRUE )
195 195
     
196 196
       self.options = TQPopupMenu()
197
-      #CHECK_PTR( self.options )
197
+      #TQ_CHECK_PTR( self.options )
198 198
       self.options.insertItem( "&Normal Font", self.normal )
199 199
       self.options.insertSeparator()
200 200
       self.boldID = self.options.insertItem( "&Bold", self.bold )
@@ -205,12 +205,12 @@ class MenuExample( TQWidget ):
205 205
       self.options.setCheckable( TRUE )
206 206
 
207 207
       self.help = TQPopupMenu( self )
208
-      #CHECK_PTR( self.help )
208
+      #TQ_CHECK_PTR( self.help )
209 209
       self.help.insertItem( "&About", self.about, TQt.CTRL+TQt.Key_H )
210 210
       self.help.insertItem( "About &TQt", self.aboutTQt )
211 211
 
212 212
       self.menu = TQMenuBar( self )
213
-      #CHECK_PTR( self.menu );
213
+      #TQ_CHECK_PTR( self.menu );
214 214
       self.menu.insertItem( "&File", self.file )
215 215
       self.menu.insertItem( "&Edit", self.edit )
216 216
       self.menu.insertItem( "&Options", self.options )
@@ -219,7 +219,7 @@ class MenuExample( TQWidget ):
219 219
       self.menu.setSeparator( TQMenuBar.InWindowsStyle )
220 220
 
221 221
       self.label = TQLabel( self )
222
-      #CHECK_PTR( self.label )
222
+      #TQ_CHECK_PTR( self.label )
223 223
       self.label.setGeometry( 20, self.rect().center().y()-20, self.width()-40, 40 )
224 224
       self.label.setFrameStyle( TQFrame.Box | TQFrame.Raised )
225 225
       self.label.setLineWidth( 1 )

Loading…
Cancel
Save