diff options
Diffstat (limited to 'qtjava/javalib/test/TQTimerTest.java')
-rw-r--r-- | qtjava/javalib/test/TQTimerTest.java | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/qtjava/javalib/test/TQTimerTest.java b/qtjava/javalib/test/TQTimerTest.java index c10af496..c68fe67e 100644 --- a/qtjava/javalib/test/TQTimerTest.java +++ b/qtjava/javalib/test/TQTimerTest.java @@ -44,7 +44,7 @@ public class TQTimerTest extends TQWidget { // create a pop-up menu _popupmenu = new TQPopupMenu(); - _popupmenu.insertItem( "&Clear", this, Qt.SLOT( "slotClearArea()" ) ); + _popupmenu.insertItem( "&Clear", this, Qt.TQ_SLOT( "slotClearArea()" ) ); } /** @@ -170,10 +170,10 @@ public class TQTimerTest extends TQWidget { /* The next lines build the menu bar. We first create the menus * one by one, then add them to the menu bar. */ _filemenu = new TQPopupMenu(); // create a file menu - _filemenu.insertItem( "&Load", this, Qt.SLOT( "slotLoad()" ) ); - _filemenu.insertItem( "&Save", this, Qt.SLOT( "slotSave()" ) ); + _filemenu.insertItem( "&Load", this, Qt.TQ_SLOT( "slotLoad()" ) ); + _filemenu.insertItem( "&Save", this, Qt.TQ_SLOT( "slotSave()" ) ); _filemenu.insertSeparator(); - _filemenu.insertItem( "&Quit", Qt.qApp(), Qt.SLOT( "quit()" ) ); + _filemenu.insertItem( "&Quit", Qt.qApp(), Qt.TQ_SLOT( "quit()" ) ); _colormenu = new TQPopupMenu(); // create a color menu _colormenu.insertItem( "B&lack", COLOR_MENU_ID_BLACK); @@ -181,12 +181,12 @@ public class TQTimerTest extends TQWidget { _colormenu.insertItem( "&Blue", COLOR_MENU_ID_BLUE); _colormenu.insertItem( "&Green", COLOR_MENU_ID_GREEN); _colormenu.insertItem( "&Yellow", COLOR_MENU_ID_YELLOW); - TQObject.connect( _colormenu, SIGNAL( "activated(int)" ), - this, SLOT( "slotColorMenu(int)" ) ); + TQObject.connect( _colormenu, TQ_SIGNAL( "activated(int)" ), + this, TQ_SLOT( "slotColorMenu(int)" ) ); _helpmenu = new TQPopupMenu(); // create a help menu - _helpmenu.insertItem( "&About QtScribble", this, SLOT( "slotAbout()" ) ); - _helpmenu.insertItem( "&About Qt", this, SLOT( "slotAboutQt()" ) ); + _helpmenu.insertItem( "&About QtScribble", this, TQ_SLOT( "slotAbout()" ) ); + _helpmenu.insertItem( "&About Qt", this, TQ_SLOT( "slotAboutQt()" ) ); _menubar = new TQMenuBar( this, "" ); // create a menu bar _menubar.insertItem( "&File", _filemenu ); @@ -201,12 +201,12 @@ public class TQTimerTest extends TQWidget { _scribblearea = new ScribbleArea(); _scribblearea.setGeometry( 0, 0, 1000, 1000 ); _scrollview.addChild( _scribblearea ); - TQObject.connect( this, SIGNAL( "colorChanged(TQColor)" ), - _scribblearea, SLOT( "setColor(TQColor)" ) ); - TQObject.connect( this, SIGNAL( "save(java.lang.String)" ), - _scribblearea, SLOT( "slotSave(java.lang.String)" ) ); - TQObject.connect( this, SIGNAL( "load(java.lang.String)" ), - _scribblearea, SLOT( "slotLoad(java.lang.String)" ) ); + TQObject.connect( this, TQ_SIGNAL( "colorChanged(TQColor)" ), + _scribblearea, TQ_SLOT( "setColor(TQColor)" ) ); + TQObject.connect( this, TQ_SIGNAL( "save(java.lang.String)" ), + _scribblearea, TQ_SLOT( "slotSave(java.lang.String)" ) ); + TQObject.connect( this, TQ_SIGNAL( "load(java.lang.String)" ), + _scribblearea, TQ_SLOT( "slotLoad(java.lang.String)" ) ); } public void resizeEvent( TQResizeEvent event ) @@ -298,8 +298,8 @@ public class TQTimerTest extends TQWidget { mywidget.setGeometry(50, 500, 400, 400); TQTimer timer = new TQTimer( mywidget ); - connect( timer, Qt.SIGNAL("timeout()"), - mywidget, Qt.SLOT("timerDone()") ); + connect( timer, Qt.TQ_SIGNAL("timeout()"), + mywidget, Qt.TQ_SLOT("timerDone()") ); timer.start( 2000, false ); // 2 seconds single-shot myapp.setMainWidget(mywidget); |