From c663b6440964f6ac48027143ac9e63298991f9d0 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:33:34 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- konqueror/shellcmdplugin/kshellcmdexecutor.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'konqueror/shellcmdplugin/kshellcmdexecutor.cpp') diff --git a/konqueror/shellcmdplugin/kshellcmdexecutor.cpp b/konqueror/shellcmdplugin/kshellcmdexecutor.cpp index c83488005..167f0f812 100644 --- a/konqueror/shellcmdplugin/kshellcmdexecutor.cpp +++ b/konqueror/shellcmdplugin/kshellcmdexecutor.cpp @@ -24,15 +24,15 @@ #include #include -#include +#include #include #include #include #include -KShellCommandExecutor::KShellCommandExecutor(const QString& command, QWidget* parent) -:QTextView(parent) +KShellCommandExecutor::KShellCommandExecutor(const TQString& command, TQWidget* parent) +:TQTextView(parent) ,m_shellProcess(0) ,m_command(command) ,m_readNotifier(0) @@ -73,7 +73,7 @@ int KShellCommandExecutor::exec() args+=m_command.local8Bit(); //kdDebug()<<"------- executing: "<fd(),QSocketNotifier::Read, this); - m_writeNotifier=new QSocketNotifier(m_shellProcess->fd(),QSocketNotifier::Write, this); + m_readNotifier=new TQSocketNotifier(m_shellProcess->fd(),TQSocketNotifier::Read, this); + m_writeNotifier=new TQSocketNotifier(m_shellProcess->fd(),TQSocketNotifier::Write, this); m_writeNotifier->setEnabled(false); - connect (m_readNotifier, SIGNAL(activated(int)), this,SLOT(readDataFromShell())); - connect (m_writeNotifier, SIGNAL(activated(int)), this,SLOT(writeDataToShell())); + connect (m_readNotifier, TQT_SIGNAL(activated(int)), this,TQT_SLOT(readDataFromShell())); + connect (m_writeNotifier, TQT_SIGNAL(activated(int)), this,TQT_SLOT(writeDataToShell())); return 1; } @@ -108,7 +108,7 @@ void KShellCommandExecutor::readDataFromShell() { //kdDebug()<<"***********************\n"<append(QString::fromLocal8Bit(buffer)); + this->append(TQString::fromLocal8Bit(buffer)); setTextFormat(PlainText); }; } @@ -117,11 +117,11 @@ void KShellCommandExecutor::writeDataToShell() { //kdDebug()<<"--------- writing ------------"<fd(),input,input.length()); ::write(m_shellProcess->fd(),"\n",1); } -- cgit v1.2.1