diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-13 11:29:06 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-13 11:45:40 +0900 |
commit | faf33629bb6562a6f43f930afafe4b22e9cdb60b (patch) | |
tree | 8fc6dc6d999a3a039ace28db2fe5b96712fa18e0 /qtjava/javalib/examples/qwerty/Editor.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 <michele.calgaro@yahoo.it>
Diffstat (limited to 'qtjava/javalib/examples/qwerty/Editor.java')
-rw-r--r-- | qtjava/javalib/examples/qwerty/Editor.java | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/qtjava/javalib/examples/qwerty/Editor.java b/qtjava/javalib/examples/qwerty/Editor.java index 5175b7da..36934685 100644 --- a/qtjava/javalib/examples/qwerty/Editor.java +++ b/qtjava/javalib/examples/qwerty/Editor.java @@ -46,35 +46,35 @@ Editor( TQWidget parent , String name ) TQPopupMenu file = new TQPopupMenu(this); m.insertItem( "&File", file ); - file.insertItem( "&New", this, SLOT("newDoc()"), new TQKeySequence(ALT+Key_N) ); - file.insertItem( "&Open...", this, SLOT("load()"), new TQKeySequence(ALT+Key_O) ); - file.insertItem( "&Save...", this, SLOT("save()"), new TQKeySequence(ALT+Key_S) ); + file.insertItem( "&New", this, TQ_SLOT("newDoc()"), new TQKeySequence(ALT+Key_N) ); + file.insertItem( "&Open...", this, TQ_SLOT("load()"), new TQKeySequence(ALT+Key_O) ); + file.insertItem( "&Save...", this, TQ_SLOT("save()"), new TQKeySequence(ALT+Key_S) ); file.insertSeparator(); open_as = new TQPopupMenu(file); file.insertItem( "Open &As", open_as ); save_as = new TQPopupMenu(file); file.insertItem( "Sa&ve As", save_as ); - file.insertItem( "Add &Encoding", this, SLOT("addEncoding()") ); + file.insertItem( "Add &Encoding", this, TQ_SLOT("addEncoding()") ); file.insertSeparator(); - file.insertItem( "&Print...", this, SLOT("print()"), new TQKeySequence(ALT+Key_P) ); + file.insertItem( "&Print...", this, TQ_SLOT("print()"), new TQKeySequence(ALT+Key_P) ); file.insertSeparator(); - file.insertItem( "&Close", this, SLOT("close()"),new TQKeySequence(ALT+Key_W) ); - file.insertItem( "&Quit", tqApp(), SLOT("closeAllWindows()"), new TQKeySequence(ALT+Key_Q) ); + file.insertItem( "&Close", this, TQ_SLOT("close()"),new TQKeySequence(ALT+Key_W) ); + file.insertItem( "&Quit", tqApp(), TQ_SLOT("closeAllWindows()"), new TQKeySequence(ALT+Key_Q) ); - connect( save_as, SIGNAL("activated(int)"), this, SLOT("saveAsEncoding(int)") ); - connect( open_as, SIGNAL("activated(int)"), this, SLOT("openAsEncoding(int)") ); + connect( save_as, TQ_SIGNAL("activated(int)"), this, TQ_SLOT("saveAsEncoding(int)") ); + connect( open_as, TQ_SIGNAL("activated(int)"), this, TQ_SLOT("openAsEncoding(int)") ); rebuildCodecList(); TQPopupMenu edit = new TQPopupMenu(m); m.insertItem( "&Edit", edit ); - edit.insertItem( "To &Uppercase", this, SLOT("toUpper()"), new TQKeySequence(ALT+Key_U) ); - edit.insertItem( "To &Lowercase", this, SLOT("toLower()"), new TQKeySequence(ALT+Key_L) ); + edit.insertItem( "To &Uppercase", this, TQ_SLOT("toUpper()"), new TQKeySequence(ALT+Key_U) ); + edit.insertItem( "To &Lowercase", this, TQ_SLOT("toLower()"), new TQKeySequence(ALT+Key_L) ); edit.insertSeparator(); - edit.insertItem( "&Select Font" , this, SLOT("getFont()"), new TQKeySequence(ALT+Key_F) ); + edit.insertItem( "&Select Font" , this, TQ_SLOT("getFont()"), new TQKeySequence(ALT+Key_F) ); changed = false; e = new TQMultiLineEdit( this, "editor" ); - connect( e, SIGNAL(" textChanged()"), this, SLOT(" textChanged()") ); + connect( e, TQ_SIGNAL(" textChanged()"), this, TQ_SLOT(" textChanged()") ); // We use Unifont - if you have it installed you'll see all // Unicode character glyphs. |