From e985f7e545f4739493965aad69bbecb136dc9346 Mon Sep 17 00:00:00 2001 From: tpearson Date: Thu, 16 Jun 2011 19:02:47 +0000 Subject: TQt4 port kdewebdev This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1237029 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kommander/widget/myprocess.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'kommander/widget/myprocess.cpp') diff --git a/kommander/widget/myprocess.cpp b/kommander/widget/myprocess.cpp index 59eb67fb..4914a95a 100644 --- a/kommander/widget/myprocess.cpp +++ b/kommander/widget/myprocess.cpp @@ -74,7 +74,7 @@ TQString MyProcess::run(const TQString& a_command, const TQString& a_shell) // Look for shell if (at.startsWith("#!")) { - int eol = at.find("\n"); + int eol = at.tqfind("\n"); if (eol == -1) eol = at.length(); shellName = at.mid(2, eol-1).stripWhiteSpace(); @@ -91,7 +91,7 @@ TQString MyProcess::run(const TQString& a_command, const TQString& a_shell) if(!mProcess->start(KProcess::NotifyOnExit, KProcess::All)) { - m_atw->printError(i18n("Failed to start shell process
%1
").arg(shellName)); + m_atw->printError(i18n("Failed to start shell process
%1
").tqarg(shellName)); return TQString(); } mProcess->writeStdin(m_input, m_input.length()); @@ -102,10 +102,10 @@ TQString MyProcess::run(const TQString& a_command, const TQString& a_shell) else { TQWidget dummy(0, 0, WType_Dialog | WShowModal); - dummy.setFocusPolicy(TQWidget::NoFocus); + dummy.setFocusPolicy(TQ_NoFocus); m_loopStarted = true; qt_enter_modal(&dummy); - qApp->enter_loop(); + tqApp->enter_loop(); qt_leave_modal(&dummy); if (!m_output.isEmpty() && m_output[m_output.length()-1] == '\n') @@ -125,7 +125,7 @@ void MyProcess::slotProcessExited(KProcess* process) { if (m_loopStarted) { - qApp->exit_loop(); + tqApp->exit_loop(); m_loopStarted = false; } delete process; -- cgit v1.2.3