summaryrefslogtreecommitdiffstats
path: root/kjsembed
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-13 11:45:40 +0900
commitfaf33629bb6562a6f43f930afafe4b22e9cdb60b (patch)
tree8fc6dc6d999a3a039ace28db2fe5b96712fa18e0 /kjsembed
parent0ff7d227c65fecb4fb7482ecd679acb594ef5cf7 (diff)
downloadtdebindings-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 'kjsembed')
-rw-r--r--kjsembed/jsconsolewidget.cpp16
-rw-r--r--kjsembed/kjscmd.cpp2
-rw-r--r--kjsembed/ksimpleprocess.cpp6
-rw-r--r--kjsembed/plugin/jsconsoleplugin.cpp2
-rw-r--r--kjsembed/qjscmd.cpp2
-rw-r--r--kjsembed/testkjsembed.cpp2
-rw-r--r--kjsembed/tests/testkjsembed.cpp2
-rw-r--r--kjsembed/xmlactionclient.cpp4
8 files changed, 18 insertions, 18 deletions
diff --git a/kjsembed/jsconsolewidget.cpp b/kjsembed/jsconsolewidget.cpp
index 594cfce8..e536fba5 100644
--- a/kjsembed/jsconsolewidget.cpp
+++ b/kjsembed/jsconsolewidget.cpp
@@ -94,12 +94,12 @@ void JSConsoleWidget::createView()
go = new TQPushButton( i18n("&Run"), cmdBox, "run_button" );
go->setFixedSize( go->sizeHint() );
- connect( cmd, TQT_SIGNAL(returnPressed(const TQString&)), go, TQT_SLOT( animateClick() ) );
- connect( go, TQT_SIGNAL( clicked() ), TQT_SLOT( invoke() ) );
+ connect( cmd, TQ_SIGNAL(returnPressed(const TQString&)), go, TQ_SLOT( animateClick() ) );
+ connect( go, TQ_SIGNAL( clicked() ), TQ_SLOT( invoke() ) );
// Setup completion
TDECompletion *comp = cmd->completionObject();
- connect( cmd, TQT_SIGNAL(returnPressed(const TQString&)), comp, TQT_SLOT(addItem(const TQString&)) );
+ connect( cmd, TQ_SIGNAL(returnPressed(const TQString&)), comp, TQ_SLOT(addItem(const TQString&)) );
// Layout
TQVBoxLayout *vert = new TQVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() );
@@ -192,11 +192,11 @@ bool JSConsoleWidget::run( const TQString &cmd )
proc = new KShellProcess("/bin/sh");
*proc << cmd;
- connect( proc, TQT_SIGNAL( processExited(TDEProcess *) ), TQT_SLOT( childExited() ) );
- connect( proc, TQT_SIGNAL( receivedStdout(TDEProcess *, char *, int) ),
- this, TQT_SLOT( receivedStdOutput(TDEProcess *, char *, int) ) );
- connect( proc, TQT_SIGNAL( receivedStderr(TDEProcess *, char *, int) ),
- this, TQT_SLOT( receivedStdError(TDEProcess *, char *, int) ) );
+ connect( proc, TQ_SIGNAL( processExited(TDEProcess *) ), TQ_SLOT( childExited() ) );
+ connect( proc, TQ_SIGNAL( receivedStdout(TDEProcess *, char *, int) ),
+ this, TQ_SLOT( receivedStdOutput(TDEProcess *, char *, int) ) );
+ connect( proc, TQ_SIGNAL( receivedStderr(TDEProcess *, char *, int) ),
+ this, TQ_SLOT( receivedStdError(TDEProcess *, char *, int) ) );
return proc->start( TDEProcess::NotifyOnExit,
TDEProcess::Communication( TDEProcess::Stdout|TDEProcess::Stderr ));
diff --git a/kjsembed/kjscmd.cpp b/kjsembed/kjscmd.cpp
index 316944ed..d8ee0817 100644
--- a/kjsembed/kjscmd.cpp
+++ b/kjsembed/kjscmd.cpp
@@ -99,7 +99,7 @@ int main( int argc, char **argv )
}
else {
app = new TDEApplication;
- app->connect( app, TQT_SIGNAL( lastWindowClosed() ), TQT_SLOT(quit()) );
+ app->connect( app, TQ_SIGNAL( lastWindowClosed() ), TQ_SLOT(quit()) );
}
// Setup the rest
diff --git a/kjsembed/ksimpleprocess.cpp b/kjsembed/ksimpleprocess.cpp
index 96d3fea3..8777c2b9 100644
--- a/kjsembed/ksimpleprocess.cpp
+++ b/kjsembed/ksimpleprocess.cpp
@@ -34,10 +34,10 @@ TQString KSimpleProcess::exec( const TQString &args, bool addStdErr )
TQString KSimpleProcess::execInternal( const TQString &args, bool addStdError)
{
m_proc->setArguments( splitArgList( args ));
- connect(m_proc, TQT_SIGNAL(processExited()), this, TQT_SLOT(slotProcessExited()));
- connect(m_proc, TQT_SIGNAL(readyReadStdout()), this, TQT_SLOT(slotReceivedStdout()));
+ connect(m_proc, TQ_SIGNAL(processExited()), this, TQ_SLOT(slotProcessExited()));
+ connect(m_proc, TQ_SIGNAL(readyReadStdout()), this, TQ_SLOT(slotReceivedStdout()));
if( addStdError )
- connect(m_proc, TQT_SIGNAL(readyReadStderr()), this, TQT_SLOT(slotReceivedStderr()));
+ connect(m_proc, TQ_SIGNAL(readyReadStderr()), this, TQ_SLOT(slotReceivedStderr()));
if ( !m_proc->start() )
return i18n("Could not run command '%1'.").arg( args.latin1() );
diff --git a/kjsembed/plugin/jsconsoleplugin.cpp b/kjsembed/plugin/jsconsoleplugin.cpp
index 3dc8d7cf..5f6a9e8f 100644
--- a/kjsembed/plugin/jsconsoleplugin.cpp
+++ b/kjsembed/plugin/jsconsoleplugin.cpp
@@ -51,7 +51,7 @@ JSConsolePlugin::JSConsolePlugin( TQObject *parent, const char *name, const TQSt
menu->setDelayed( false );
menu->insert( new TDEAction( i18n("&Console"), 0,
- this, TQT_SLOT( showConsole() ),
+ this, TQ_SLOT( showConsole() ),
actionCollection(), "jsconsole_show") );
}
diff --git a/kjsembed/qjscmd.cpp b/kjsembed/qjscmd.cpp
index f621374e..ae4fe736 100644
--- a/kjsembed/qjscmd.cpp
+++ b/kjsembed/qjscmd.cpp
@@ -43,7 +43,7 @@ int main( int argc, char **argv )
// Setup TQApplication
TQApplication *app;
app = new TQApplication( argc, argv );
- app->connect( app, TQT_SIGNAL( lastWindowClosed() ), TQT_SLOT(quit()) );
+ app->connect( app, TQ_SIGNAL( lastWindowClosed() ), TQ_SLOT(quit()) );
// Setup Interpreter
KJSEmbed::JSSecurityPolicy::setDefaultPolicy( KJSEmbed::JSSecurityPolicy::CapabilityAll );
diff --git a/kjsembed/testkjsembed.cpp b/kjsembed/testkjsembed.cpp
index 42f3ad07..4b138e8e 100644
--- a/kjsembed/testkjsembed.cpp
+++ b/kjsembed/testkjsembed.cpp
@@ -49,7 +49,7 @@ int main( int argc, char **argv )
// Setup Window
app.setMainWidget( console );
- app.connect( &app, TQT_SIGNAL( lastWindowClosed() ), TQT_SLOT(quit()) );
+ app.connect( &app, TQ_SIGNAL( lastWindowClosed() ), TQ_SLOT(quit()) );
console->resize( 600, 450 );
console->show();
diff --git a/kjsembed/tests/testkjsembed.cpp b/kjsembed/tests/testkjsembed.cpp
index 1986cc2d..7018497f 100644
--- a/kjsembed/tests/testkjsembed.cpp
+++ b/kjsembed/tests/testkjsembed.cpp
@@ -52,7 +52,7 @@ int main( int argc, char **argv )
// Setup Window
app.setMainWidget( console );
- app.connect( &app, TQT_SIGNAL( lastWindowClosed() ), TQT_SLOT(quit()) );
+ app.connect( &app, TQ_SIGNAL( lastWindowClosed() ), TQ_SLOT(quit()) );
console->resize( 600, 450 );
console->show();
diff --git a/kjsembed/xmlactionclient.cpp b/kjsembed/xmlactionclient.cpp
index 88bfab97..43872b30 100644
--- a/kjsembed/xmlactionclient.cpp
+++ b/kjsembed/xmlactionclient.cpp
@@ -125,7 +125,7 @@ bool XMLActionClient::bind( TDEAction *act, const XMLActionScript &s )
// kdWarning() << "Runner:bind called, action=" << act->name() << " type=" << s.type
// << " text=" << s.text << " src=" << s.src << endl;
- connect( act, TQT_SIGNAL( activated() ), this, TQT_SLOT( action_activated() ) );
+ connect( act, TQ_SIGNAL( activated() ), this, TQ_SLOT( action_activated() ) );
return bind( act->name(), s );
}
@@ -331,7 +331,7 @@ TDEAction *XMLActionHandler::createAction( TDEActionCollection *parent )
act->setStatusText( ad.status );
act->setWhatsThis( ad.whatsthis );
- TQObject::connect( actclient, TQT_SIGNAL( destroyed() ), act, TQT_SLOT( deleteLater() ) );
+ TQObject::connect( actclient, TQ_SIGNAL( destroyed() ), act, TQ_SLOT( deleteLater() ) );
return act;
}