diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:33:34 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:33:34 +0000 |
commit | c663b6440964f6ac48027143ac9e63298991f9d0 (patch) | |
tree | 6d8b0c5a5f9db1ee16acf98b1397cea9126b281d /konqueror/shellcmdplugin/kshellcmdexecutor.cpp | |
parent | a061f7191beebb0e4a3b0c0a7c534ec5f22f2dc7 (diff) | |
download | tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.tar.gz tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'konqueror/shellcmdplugin/kshellcmdexecutor.cpp')
-rw-r--r-- | konqueror/shellcmdplugin/kshellcmdexecutor.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
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 <signal.h> #include <stdlib.h> -#include <qsocketnotifier.h> +#include <tqsocketnotifier.h> #include <kinputdialog.h> #include <kglobalsettings.h> #include <kdesu/process.h> #include <klocale.h> -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: "<<m_command.local8Bit()<<endl; - QCString shell( getenv("SHELL") ); + TQCString shell( getenv("SHELL") ); if (shell.isEmpty()) shell = "sh"; @@ -84,11 +84,11 @@ int KShellCommandExecutor::exec() return 0; } - m_readNotifier=new QSocketNotifier(m_shellProcess->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"<<buffer<<"###################\n"<<endl; buffer[bytesRead]='\0'; - this->append(QString::fromLocal8Bit(buffer)); + this->append(TQString::fromLocal8Bit(buffer)); setTextFormat(PlainText); }; } @@ -117,11 +117,11 @@ void KShellCommandExecutor::writeDataToShell() { //kdDebug()<<"--------- writing ------------"<<endl; bool ok; - QString str = KInputDialog::getText( QString::null, - i18n( "Input Required:" ), QString::null, &ok, this ); + TQString str = KInputDialog::getText( TQString::null, + i18n( "Input Required:" ), TQString::null, &ok, this ); if ( ok ) { - QCString input=str.local8Bit(); + TQCString input=str.local8Bit(); ::write(m_shellProcess->fd(),input,input.length()); ::write(m_shellProcess->fd(),"\n",1); } |