diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:56:07 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:56:07 +0000 |
commit | d6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch) | |
tree | d109539636691d7b03036ca1c0ed29dbae6577cf /parts/outputviews/appoutputviewpart.cpp | |
parent | 3331a47a9cad24795c7440ee8107143ce444ef34 (diff) | |
download | tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.tar.gz tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'parts/outputviews/appoutputviewpart.cpp')
-rw-r--r-- | parts/outputviews/appoutputviewpart.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/parts/outputviews/appoutputviewpart.cpp b/parts/outputviews/appoutputviewpart.cpp index 79a62471..a21cf7db 100644 --- a/parts/outputviews/appoutputviewpart.cpp +++ b/parts/outputviews/appoutputviewpart.cpp @@ -11,8 +11,8 @@ #include "appoutputviewpart.h" -#include <qwhatsthis.h> -#include <qdir.h> +#include <tqwhatsthis.h> +#include <tqdir.h> #include <kdebug.h> #include <klocale.h> #include <kaction.h> @@ -33,7 +33,7 @@ static const KDevPluginInfo data("kdevappoutputview"); typedef KDevGenericFactory< AppOutputViewPart > AppViewFactory; K_EXPORT_COMPONENT_FACTORY( libkdevappview, AppViewFactory( data ) ) -AppOutputViewPart::AppOutputViewPart(QObject *parent, const char *name, const QStringList &) +AppOutputViewPart::AppOutputViewPart(TQObject *parent, const char *name, const TQStringList &) : KDevAppFrontend(&data, parent, name ? name : "AppOutputViewPart") { setInstance(AppViewFactory::instance()); @@ -43,7 +43,7 @@ AppOutputViewPart::AppOutputViewPart(QObject *parent, const char *name, const QS m_widget = new AppOutputWidget(this); m_widget->setIcon( SmallIcon("openterm") ); m_widget->setCaption(i18n("Application Output")); - QWhatsThis::add(m_widget, i18n("<b>Application output</b><p>" + TQWhatsThis::add(m_widget, i18n("<b>Application output</b><p>" "The stdout/stderr output window is a replacement for " "terminal-based application communication. Running terminal " "applications use this instead of a terminal window.")); @@ -51,10 +51,10 @@ AppOutputViewPart::AppOutputViewPart(QObject *parent, const char *name, const QS mainWindow()->embedOutputView(m_widget, i18n("Application"), i18n("Output of the executed user program")); hideView(); - connect( core(), SIGNAL(stopButtonClicked(KDevPlugin*)), - this, SLOT(slotStopButtonClicked(KDevPlugin*)) ); - connect(m_widget, SIGNAL(processExited(KProcess*)), this, SLOT(slotProcessExited())); - connect(m_widget, SIGNAL(processExited(KProcess*)), SIGNAL(processExited())); + connect( core(), TQT_SIGNAL(stopButtonClicked(KDevPlugin*)), + this, TQT_SLOT(slotStopButtonClicked(KDevPlugin*)) ); + connect(m_widget, TQT_SIGNAL(processExited(KProcess*)), this, TQT_SLOT(slotProcessExited())); + connect(m_widget, TQT_SIGNAL(processExited(KProcess*)), TQT_SIGNAL(processExited())); } @@ -92,15 +92,15 @@ void AppOutputViewPart::slotProcessExited() * If inTerminal is true, the program is started in an external * konsole. */ -void AppOutputViewPart::startAppCommand(const QString &directory, const QString &program, bool inTerminal) +void AppOutputViewPart::startAppCommand(const TQString &directory, const TQString &program, bool inTerminal) { - QString cmd; + TQString cmd; if (inTerminal) { cmd = Settings::terminalEmulatorName( *kapp->config() ); if ( cmd == "konsole" && !directory.isNull() ) { // isn't setting the working directory below enough? // If a directory was specified, use it - cmd += QString(" --workdir '%1'").arg(directory); + cmd += TQString(" --workdir '%1'").arg(directory); } cmd += " -e /bin/sh -c '"; cmd += program; @@ -114,7 +114,7 @@ void AppOutputViewPart::startAppCommand(const QString &directory, const QString if ( directory.isNull() ) // use the user's home directory - m_widget->startJob(QDir::homeDirPath(), cmd); + m_widget->startJob(TQDir::homeDirPath(), cmd); else // use the supplied directory m_widget->startJob(directory, cmd); @@ -132,13 +132,13 @@ bool AppOutputViewPart::isRunning() } -void AppOutputViewPart::insertStdoutLine(const QCString &line) +void AppOutputViewPart::insertStdoutLine(const TQCString &line) { m_widget->insertStdoutLine(line); } -void AppOutputViewPart::insertStderrLine(const QCString &line) +void AppOutputViewPart::insertStderrLine(const TQCString &line) { m_widget->insertStderrLine(line); } @@ -165,12 +165,12 @@ bool AppOutputViewPart::isViewVisible() return m_viewIsVisible; } -void AppOutputViewPart::addPartialStderrLine(const QCString & line) +void AppOutputViewPart::addPartialStderrLine(const TQCString & line) { m_widget->addPartialStderrLine(line); } -void AppOutputViewPart::addPartialStdoutLine(const QCString & line) +void AppOutputViewPart::addPartialStdoutLine(const TQCString & line) { m_widget->addPartialStdoutLine(line); } |