From 1eb017313b2ebc441dfc81e73a5d6573d03ea08d Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 13 Jan 2024 11:29:06 +0900 Subject: Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines Signed-off-by: Michele Calgaro (cherry picked from commit faf33629bb6562a6f43f930afafe4b22e9cdb60b) --- qtjava/javalib/examples/showimg/ImageViewer.java | 32 ++++++++++++------------ 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'qtjava/javalib/examples/showimg/ImageViewer.java') diff --git a/qtjava/javalib/examples/showimg/ImageViewer.java b/qtjava/javalib/examples/showimg/ImageViewer.java index 86f8af26..974a189a 100644 --- a/qtjava/javalib/examples/showimg/ImageViewer.java +++ b/qtjava/javalib/examples/showimg/ImageViewer.java @@ -73,32 +73,32 @@ ImageViewer( TQWidget parent, String name, int wFlags ) saveimage.insertItem( f ); savepixmap.insertItem( f ); } - connect( saveimage, SIGNAL("activated(int)"), this, SLOT("saveImage(int)") ); - connect( savepixmap, SIGNAL("activated(int)"), this, SLOT("savePixmap(int)") ); + connect( saveimage, TQ_SIGNAL("activated(int)"), this, TQ_SLOT("saveImage(int)") ); + connect( savepixmap, TQ_SIGNAL("activated(int)"), this, TQ_SLOT("savePixmap(int)") ); file = new TQPopupMenu( menubar ); menubar.insertItem( "&File", file ); - file.insertItem( "&New window", this, SLOT("newWindow()"), new TQKeySequence(CTRL+Key_N) ); - file.insertItem( "&Open...", this, SLOT("openFile()"), new TQKeySequence(CTRL+Key_O) ); + file.insertItem( "&New window", this, TQ_SLOT("newWindow()"), new TQKeySequence(CTRL+Key_N) ); + file.insertItem( "&Open...", this, TQ_SLOT("openFile()"), new TQKeySequence(CTRL+Key_O) ); si = file.insertItem( "Save image", saveimage ); sp = file.insertItem( "Save pixmap", savepixmap ); file.insertSeparator(); - file.insertItem( "E&xit", tqApp(), SLOT("quit()"), new TQKeySequence(CTRL+Key_Q) ); + file.insertItem( "E&xit", tqApp(), TQ_SLOT("quit()"), new TQKeySequence(CTRL+Key_Q) ); edit = new TQPopupMenu( menubar ); menubar.insertItem( "&Edit", edit ); - edit.insertItem("&Copy", this, SLOT("copy()"), new TQKeySequence(CTRL+Key_C)); - edit.insertItem("&Paste", this, SLOT("paste()"), new TQKeySequence(CTRL+Key_V)); + edit.insertItem("&Copy", this, TQ_SLOT("copy()"), new TQKeySequence(CTRL+Key_C)); + edit.insertItem("&Paste", this, TQ_SLOT("paste()"), new TQKeySequence(CTRL+Key_V)); edit.insertSeparator(); - edit.insertItem("&Horizontal flip", this, SLOT("hFlip()"), new TQKeySequence(ALT+Key_H)); - edit.insertItem("&Vertical flip", this, SLOT("vFlip()"), new TQKeySequence(ALT+Key_V)); - edit.insertItem("&Rotate 180", this, SLOT("rot180()"), new TQKeySequence(ALT+Key_R)); + edit.insertItem("&Horizontal flip", this, TQ_SLOT("hFlip()"), new TQKeySequence(ALT+Key_H)); + edit.insertItem("&Vertical flip", this, TQ_SLOT("vFlip()"), new TQKeySequence(ALT+Key_V)); + edit.insertItem("&Rotate 180", this, TQ_SLOT("rot180()"), new TQKeySequence(ALT+Key_R)); edit.insertSeparator(); - edit.insertItem("&Text...", this, SLOT("editText()")); + edit.insertItem("&Text...", this, TQ_SLOT("editText()")); edit.insertSeparator(); - t1 = edit.insertItem( "Convert to &1 bit", this, SLOT("to1Bit()") ); - t8 = edit.insertItem( "Convert to &8 bit", this, SLOT("to8Bit()") ); - t32 = edit.insertItem( "Convert to &32 bit", this, SLOT("to32Bit()") ); + t1 = edit.insertItem( "Convert to &1 bit", this, TQ_SLOT("to1Bit()") ); + t8 = edit.insertItem( "Convert to &8 bit", this, TQ_SLOT("to8Bit()") ); + t32 = edit.insertItem( "Convert to &32 bit", this, TQ_SLOT("to32Bit()") ); options = new TQPopupMenu( menubar ); menubar.insertItem( "&Options", options ); @@ -128,9 +128,9 @@ ImageViewer( TQWidget parent, String name, int wFlags ) TQPopupMenu help = new TQPopupMenu( menubar ); menubar.insertItem( "&Help", help ); - help.insertItem( "Help!", this, SLOT("giveHelp()"), new TQKeySequence(CTRL+Key_H) ); + help.insertItem( "Help!", this, TQ_SLOT("giveHelp()"), new TQKeySequence(CTRL+Key_H) ); - connect( options, SIGNAL("activated(int)"), this, SLOT("doOption(int)") ); + connect( options, TQ_SIGNAL("activated(int)"), this, TQ_SLOT("doOption(int)") ); status = new TQLabel(this); status.setFrameStyle( TQFrame.WinPanel | TQFrame.Sunken ); -- cgit v1.2.1