diff options
author | Michele Calgaro <[email protected]> | 2024-01-13 11:29:06 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-01-13 11:45:40 +0900 |
commit | faf33629bb6562a6f43f930afafe4b22e9cdb60b (patch) | |
tree | 8fc6dc6d999a3a039ace28db2fe5b96712fa18e0 /qtjava/javalib/test/ScribbleWindow.java | |
parent | 0ff7d227c65fecb4fb7482ecd679acb594ef5cf7 (diff) | |
download | tdebindings-faf33629bb6562a6f43f930afafe4b22e9cdb60b.tar.gz tdebindings-faf33629bb6562a6f43f930afafe4b22e9cdb60b.zip |
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'qtjava/javalib/test/ScribbleWindow.java')
-rw-r--r-- | qtjava/javalib/test/ScribbleWindow.java | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/qtjava/javalib/test/ScribbleWindow.java b/qtjava/javalib/test/ScribbleWindow.java index 33296e3d..fc040f17 100644 --- a/qtjava/javalib/test/ScribbleWindow.java +++ b/qtjava/javalib/test/ScribbleWindow.java @@ -42,7 +42,7 @@ public class ScribbleWindow extends TQWidget { // create a pop-up menu _popupmenu = new TQPopupMenu(); - _popupmenu.insertItem( "&Clear", this, SLOT( "slotClearArea()" ) ); + _popupmenu.insertItem( "&Clear", this, TQ_SLOT( "slotClearArea()" ) ); } /** @@ -167,10 +167,10 @@ public class ScribbleWindow 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, SLOT( "slotLoad()" ) ); - _filemenu.insertItem( "&Save", this, SLOT( "slotSave()" ) ); + _filemenu.insertItem( "&Load", this, TQ_SLOT( "slotLoad()" ) ); + _filemenu.insertItem( "&Save", this, TQ_SLOT( "slotSave()" ) ); _filemenu.insertSeparator(); - _filemenu.insertItem( "&Quit", tqApp(), SLOT( "quit()" ) ); + _filemenu.insertItem( "&Quit", tqApp(), TQ_SLOT( "quit()" ) ); _colormenu = new TQPopupMenu(); // create a color menu _colormenu.insertItem( "B&lack", COLOR_MENU_ID_BLACK); @@ -178,12 +178,12 @@ public class ScribbleWindow 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 ); @@ -198,12 +198,12 @@ public class ScribbleWindow 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( String )" ), - _scribblearea, SLOT( "slotSave( String )" ) ); - TQObject.connect( this, SIGNAL( "load(String)" ), - _scribblearea, SLOT( "slotLoad( String )" ) ); + TQObject.connect( this, TQ_SIGNAL( "colorChanged( TQColor )" ), + _scribblearea, TQ_SLOT( "setColor( TQColor )" ) ); + TQObject.connect( this, TQ_SIGNAL( "save( String )" ), + _scribblearea, TQ_SLOT( "slotSave( String )" ) ); + TQObject.connect( this, TQ_SIGNAL( "load(String)" ), + _scribblearea, TQ_SLOT( "slotLoad( String )" ) ); } protected void resizeEvent( TQResizeEvent event ) |