summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/examples/qwerty/Editor.java
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-01-13 11:29:06 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-01-14 20:32:49 +0900
commit1eb017313b2ebc441dfc81e73a5d6573d03ea08d (patch)
tree8d37ac85ad8a529697fc81479852a039de534b8e /qtjava/javalib/examples/qwerty/Editor.java
parent673e65a4a15e713643f4bb804f7af6dfdaa0d6d6 (diff)
downloadtdebindings-1eb017313b2ebc441dfc81e73a5d6573d03ea08d.tar.gz
tdebindings-1eb017313b2ebc441dfc81e73a5d6573d03ea08d.zip
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit faf33629bb6562a6f43f930afafe4b22e9cdb60b)
Diffstat (limited to 'qtjava/javalib/examples/qwerty/Editor.java')
-rw-r--r--qtjava/javalib/examples/qwerty/Editor.java26
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.