summaryrefslogtreecommitdiffstats
path: root/kjsembed/jsconsolewidget.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-24 13:44:04 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-24 13:44:04 -0600
commit72a82366e0b94a52125683f3ee3a8ffd3691294b (patch)
tree787ee6497a0bf5e2e730f58d57dcbc9dc5377548 /kjsembed/jsconsolewidget.cpp
parent43e3dc950c8050c2ba850b5707077790870aa734 (diff)
downloadtdebindings-72a82366e0b94a52125683f3ee3a8ffd3691294b.tar.gz
tdebindings-72a82366e0b94a52125683f3ee3a8ffd3691294b.zip
Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4
Diffstat (limited to 'kjsembed/jsconsolewidget.cpp')
-rw-r--r--kjsembed/jsconsolewidget.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/kjsembed/jsconsolewidget.cpp b/kjsembed/jsconsolewidget.cpp
index d2978a84..839bf9a8 100644
--- a/kjsembed/jsconsolewidget.cpp
+++ b/kjsembed/jsconsolewidget.cpp
@@ -64,8 +64,8 @@ JSConsoleWidget::~JSConsoleWidget()
void JSConsoleWidget::createView()
{
- TQPixmap px( KGlobal::iconLoader()->loadIcon("konsole", KIcon::NoGroup, KIcon::SizeSmall) );
- TQPixmap pxl( KGlobal::iconLoader()->loadIcon("konsole", KIcon::NoGroup, KIcon::SizeLarge) );
+ TQPixmap px( TDEGlobal::iconLoader()->loadIcon("konsole", KIcon::NoGroup, KIcon::SizeSmall) );
+ TQPixmap pxl( TDEGlobal::iconLoader()->loadIcon("konsole", KIcon::NoGroup, KIcon::SizeLarge) );
setIcon( px );
KWin::setIcons( winId(), pxl, px );
@@ -192,14 +192,14 @@ bool JSConsoleWidget::run( const TQString &cmd )
proc = new KShellProcess("/bin/sh");
*proc << cmd;
- connect( proc, TQT_SIGNAL( processExited(KProcess *) ), TQT_SLOT( childExited() ) );
- connect( proc, TQT_SIGNAL( receivedStdout(KProcess *, char *, int) ),
- this, TQT_SLOT( receivedStdOutput(KProcess *, char *, int) ) );
- connect( proc, TQT_SIGNAL( receivedStderr(KProcess *, char *, int) ),
- this, TQT_SLOT( receivedStdError(KProcess *, char *, int) ) );
+ 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) ) );
- return proc->start( KProcess::NotifyOnExit,
- KProcess::Communication( KProcess::Stdout|KProcess::Stderr ));
+ return proc->start( TDEProcess::NotifyOnExit,
+ TDEProcess::Communication( TDEProcess::Stdout|TDEProcess::Stderr ));
}
@@ -222,13 +222,13 @@ void JSConsoleWidget::childExited()
proc = 0;
}
-void JSConsoleWidget::receivedStdOutput( KProcess *, char *buffer, int buflen )
+void JSConsoleWidget::receivedStdOutput( TDEProcess *, char *buffer, int buflen )
{
TQCString buf = TQCString( buffer, buflen+1 );
println( TQString(buf) );
}
-void JSConsoleWidget::receivedStdError( KProcess *, char *buffer, int buflen )
+void JSConsoleWidget::receivedStdError( TDEProcess *, char *buffer, int buflen )
{
TQCString buf = TQCString( buffer, buflen+1 );
warn( TQString(buf) );