diff options
Diffstat (limited to 'qtjava/javalib/examples/application')
-rw-r--r-- | qtjava/javalib/examples/application/ApplicationWindow.java | 20 | ||||
-rw-r--r-- | qtjava/javalib/examples/application/Main.java | 2 |
2 files changed, 11 insertions, 11 deletions
diff --git a/qtjava/javalib/examples/application/ApplicationWindow.java b/qtjava/javalib/examples/application/ApplicationWindow.java index 2c68a673..b6091fd3 100644 --- a/qtjava/javalib/examples/application/ApplicationWindow.java +++ b/qtjava/javalib/examples/application/ApplicationWindow.java @@ -102,30 +102,30 @@ public class ApplicationWindow extends TQMainWindow { fileQuitAction; fileNewAction = new TQAction("New", "&New", new TQKeySequence(CTRL+Key_N), this, "new", false); - connect(fileNewAction, SIGNAL("activated()"), this, SLOT("newDoc()")); + connect(fileNewAction, TQ_SIGNAL("activated()"), this, TQ_SLOT("newDoc()")); fileOpenAction = new TQAction("Open File", new TQIconSet(new TQPixmap(fileopen)), "&Open", new TQKeySequence(CTRL+Key_O), this, "open", false); - connect(fileOpenAction, SIGNAL("activated()"), this, SLOT("load()")); + connect(fileOpenAction, TQ_SIGNAL("activated()"), this, TQ_SLOT("load()")); TQMimeSourceFactory.defaultFactory().setPixmap("fileopen", new TQPixmap(fileopen)); fileOpenAction.setWhatsThis(fileOpenText); fileSaveAction = new TQAction("Save File", new TQIconSet(new TQPixmap(filesave)), "&Save", new TQKeySequence(CTRL+Key_S), this, "save", false); - connect(fileSaveAction, SIGNAL("activated()"), this, SLOT("save()")); + connect(fileSaveAction, TQ_SIGNAL("activated()"), this, TQ_SLOT("save()")); fileSaveAction.setWhatsThis(fileSaveText); fileSaveAsAction = new TQAction("Save File As", "Save &as", new TQKeySequence(), this, "save as", false); - connect(fileSaveAsAction, SIGNAL("activated()"), this, SLOT("saveAs()")); + connect(fileSaveAsAction, TQ_SIGNAL("activated()"), this, TQ_SLOT("saveAs()")); fileSaveAsAction.setWhatsThis(fileSaveText); filePrintAction = new TQAction("Print File", new TQIconSet(new TQPixmap(fileprint)), "&Print", new TQKeySequence(CTRL+Key_P), this, "print", false); - connect(filePrintAction, SIGNAL("activated()"), this, SLOT("print()")); + connect(filePrintAction, TQ_SIGNAL("activated()"), this, TQ_SLOT("print()")); filePrintAction.setWhatsThis(filePrintText); fileCloseAction = new TQAction("Close", "&Close", new TQKeySequence(CTRL+Key_W), this, "close", false); - connect(fileCloseAction, SIGNAL("activated()"), this, SLOT("close()")); + connect(fileCloseAction, TQ_SIGNAL("activated()"), this, TQ_SLOT("close()")); fileQuitAction = new TQAction("Quit", "&Quit", new TQKeySequence(CTRL+Key_Q), this, "quit", false); - connect(fileQuitAction, SIGNAL("activated()"), tqApp(), SLOT("closeAllWindows()")); + connect(fileQuitAction, TQ_SIGNAL("activated()"), tqApp(), TQ_SLOT("closeAllWindows()")); // populate a tool bar with some actions @@ -158,10 +158,10 @@ public class ApplicationWindow extends TQMainWindow { TQPopupMenu help = new TQPopupMenu(this, "help"); menuBar().insertSeparator(); menuBar().insertItem("&Help", help); - help.insertItem("&About", this, SLOT("about()"), new TQKeySequence(Key_F1), -1, -1); - help.insertItem("About &Qt", this, SLOT("aboutTQt()")); + help.insertItem("&About", this, TQ_SLOT("about()"), new TQKeySequence(Key_F1), -1, -1); + help.insertItem("About &Qt", this, TQ_SLOT("aboutTQt()")); help.insertSeparator(); - help.insertItem("What's &This", this, SLOT("whatsThis()"), new TQKeySequence(SHIFT+Key_F1), -1, -1); + help.insertItem("What's &This", this, TQ_SLOT("whatsThis()"), new TQKeySequence(SHIFT+Key_F1), -1, -1); // create and define the central widget diff --git a/qtjava/javalib/examples/application/Main.java b/qtjava/javalib/examples/application/Main.java index 34988cb8..607c6d33 100644 --- a/qtjava/javalib/examples/application/Main.java +++ b/qtjava/javalib/examples/application/Main.java @@ -6,7 +6,7 @@ public class Main extends TQObject { ApplicationWindow mw = new ApplicationWindow(); mw.setCaption("Document 1"); mw.show(); - a.connect(a, SIGNAL("lastWindowClosed()"), a, SLOT("quit()")); + a.connect(a, TQ_SIGNAL("lastWindowClosed()"), a, TQ_SLOT("quit()")); a.exec(); return; } |