diff options
Diffstat (limited to 'lib/kross/test')
-rw-r--r-- | lib/kross/test/main.cpp | 4 | ||||
-rw-r--r-- | lib/kross/test/testaction.cpp | 4 | ||||
-rw-r--r-- | lib/kross/test/testgui.py | 8 | ||||
-rw-r--r-- | lib/kross/test/testobject.cpp | 14 | ||||
-rw-r--r-- | lib/kross/test/testwindow.cpp | 2 |
5 files changed, 16 insertions, 16 deletions
diff --git a/lib/kross/test/main.cpp b/lib/kross/test/main.cpp index 90665a72..146e0c20 100644 --- a/lib/kross/test/main.cpp +++ b/lib/kross/test/main.cpp @@ -114,8 +114,8 @@ void runInterpreter(const TQString& interpretername, const TQString& scriptcode) /* // Connect TQObject signal with scriptfunction. - scriptcontainer->connect(testobject, TQT_SIGNAL(testSignal()), "testobjectCallback"); - scriptcontainer->connect(testobject, TQT_SIGNAL(testSignalString(const TQString&)), "testobjectCallbackWithParams"); + scriptcontainer->connect(testobject, TQ_SIGNAL(testSignal()), "testobjectCallback"); + scriptcontainer->connect(testobject, TQ_SIGNAL(testSignalString(const TQString&)), "testobjectCallbackWithParams"); // Call the testSlot to emit the testSignal. testobject->testSlot(); */ diff --git a/lib/kross/test/testaction.cpp b/lib/kross/test/testaction.cpp index 42963904..8dd43647 100644 --- a/lib/kross/test/testaction.cpp +++ b/lib/kross/test/testaction.cpp @@ -24,11 +24,11 @@ TestAction::TestAction(Kross::Api::ScriptContainer::Ptr scriptcontainer) { m_actioncollection = new TDEActionCollection(this, this); - m_action1 = new TDEAction("Action1_Text", 0, this, TQT_SLOT(activatedAction1()), m_actioncollection, "Action1"); + m_action1 = new TDEAction("Action1_Text", 0, this, TQ_SLOT(activatedAction1()), m_actioncollection, "Action1"); m_actionlist.append(m_action1); scriptcontainer->addTDEAction(m_action1); - m_action2 = new TDEAction("Action2_Text", 0, this, TQT_SLOT(activatedAction2()), m_actioncollection, "Action2"); + m_action2 = new TDEAction("Action2_Text", 0, this, TQ_SLOT(activatedAction2()), m_actioncollection, "Action2"); m_actionlist.append(m_action2); scriptcontainer->addTDEAction(m_action2); } diff --git a/lib/kross/test/testgui.py b/lib/kross/test/testgui.py index 9c2747e8..c42f4f75 100644 --- a/lib/kross/test/testgui.py +++ b/lib/kross/test/testgui.py @@ -67,7 +67,7 @@ class TQtTest: label.setBuddy(self.edit) browsebutton = Button("...", self) - tqt.TQObject.connect(browsebutton, tqt.SIGNAL("clicked()"), self.browseButtonClicked) + tqt.TQObject.connect(browsebutton, tqt.TQ_SIGNAL("clicked()"), self.browseButtonClicked) def file(self): return self.edit.text() @@ -112,11 +112,11 @@ class TQtTest: self.layout.addWidget(buttonbox) savebutton = Button("Save", buttonbox) - tqt.TQObject.connect(savebutton, tqt.SIGNAL("clicked()"), self, tqt.SLOT("accept()")) - #tqt.TQObject.connect(savebutton, tqt.SIGNAL("clicked()"), self.exportButtonClicked) + tqt.TQObject.connect(savebutton, tqt.TQ_SIGNAL("clicked()"), self, tqt.TQ_SLOT("accept()")) + #tqt.TQObject.connect(savebutton, tqt.TQ_SIGNAL("clicked()"), self.exportButtonClicked) cancelbutton = Button("Cancel", buttonbox) - tqt.TQObject.connect(cancelbutton, tqt.SIGNAL("clicked()"), self, tqt.SLOT("close()")) + tqt.TQObject.connect(cancelbutton, tqt.TQ_SIGNAL("clicked()"), self, tqt.TQ_SLOT("close()")) def accept(self): print("ACCEPTTTTTTTT !!!!!!!!!!!!!!!!!!!!!!!!!!!!") diff --git a/lib/kross/test/testobject.cpp b/lib/kross/test/testobject.cpp index 884e7e37..30385edd 100644 --- a/lib/kross/test/testobject.cpp +++ b/lib/kross/test/testobject.cpp @@ -29,17 +29,17 @@ TestObject::TestObject() TestObject::TestObject(TQObject* parent, Kross::Api::ScriptContainer::Ptr scriptcontainer) : TQObject(parent, "TestObject") { - connect(this, TQT_SIGNAL(testSignal()), this, TQT_SLOT(testSignalSlot())); - connect(this, TQT_SIGNAL(stdoutSignal(const TQString&)), this, TQT_SLOT(stdoutSlot(const TQString&))); - connect(this, TQT_SIGNAL(stderrSignal(const TQString&)), this, TQT_SLOT(stderrSlot(const TQString&))); + connect(this, TQ_SIGNAL(testSignal()), this, TQ_SLOT(testSignalSlot())); + connect(this, TQ_SIGNAL(stdoutSignal(const TQString&)), this, TQ_SLOT(stdoutSlot(const TQString&))); + connect(this, TQ_SIGNAL(stderrSignal(const TQString&)), this, TQ_SLOT(stderrSlot(const TQString&))); scriptcontainer->addTQObject(this); -//scriptcontainer->addSignal("stdout", this, TQT_SIGNAL(stdoutSignal(const TQString&))); -//scriptcontainer->addSlot("stderr", this, TQT_SLOT(stderrSlot(const TQString&))); +//scriptcontainer->addSignal("stdout", this, TQ_SIGNAL(stdoutSignal(const TQString&))); +//scriptcontainer->addSlot("stderr", this, TQ_SLOT(stderrSlot(const TQString&))); - //scriptcontainer->addSignal("myTestSignal", this, TQT_SIGNAL(testSignal())); - //scriptcontainer->addSlot("myTestSlot", this, TQT_SLOT(testSlot())); + //scriptcontainer->addSignal("myTestSignal", this, TQ_SIGNAL(testSignal())); + //scriptcontainer->addSlot("myTestSlot", this, TQ_SLOT(testSlot())); } TestObject::~TestObject() diff --git a/lib/kross/test/testwindow.cpp b/lib/kross/test/testwindow.cpp index 4d9c90e3..9e6908f5 100644 --- a/lib/kross/test/testwindow.cpp +++ b/lib/kross/test/testwindow.cpp @@ -83,7 +83,7 @@ TestWindow::TestWindow(const TQString& interpretername, const TQString& scriptco TQHBox* btnbox = new TQHBox(mainbox); KPushButton* execbtn = new KPushButton("Execute", btnbox); - connect(execbtn, TQT_SIGNAL(clicked()), this, TQT_SLOT(execute())); + connect(execbtn, TQ_SIGNAL(clicked()), this, TQ_SLOT(execute())); setCentralWidget(mainbox); setMinimumSize(600,420); |