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/examples/application/ApplicationWindow.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/examples/application/ApplicationWindow.java')
-rw-r--r-- | qtjava/javalib/examples/application/ApplicationWindow.java | 20 |
1 files changed, 10 insertions, 10 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 |