summaryrefslogtreecommitdiffstats
path: root/parts/filter/shellfilterdlg.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
commitd6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch)
treed109539636691d7b03036ca1c0ed29dbae6577cf /parts/filter/shellfilterdlg.cpp
parent3331a47a9cad24795c7440ee8107143ce444ef34 (diff)
downloadtdevelop-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/filter/shellfilterdlg.cpp')
-rw-r--r--parts/filter/shellfilterdlg.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/parts/filter/shellfilterdlg.cpp b/parts/filter/shellfilterdlg.cpp
index 7e967cda..484cb4cc 100644
--- a/parts/filter/shellfilterdlg.cpp
+++ b/parts/filter/shellfilterdlg.cpp
@@ -11,9 +11,9 @@
#include "shellfilterdlg.h"
-#include <qcombobox.h>
-#include <qlayout.h>
-#include <qpushbutton.h>
+#include <tqcombobox.h>
+#include <tqlayout.h>
+#include <tqpushbutton.h>
#include <kbuttonbox.h>
#include <kconfig.h>
#include <kdebug.h>
@@ -29,11 +29,11 @@
ShellFilterDialog::ShellFilterDialog()
- : QDialog(0, "shell filter dialog", true)
+ : TQDialog(0, "shell filter dialog", true)
{
- QVBoxLayout *layout = new QVBoxLayout(this, 10, 4);
+ TQVBoxLayout *layout = new TQVBoxLayout(this, 10, 4);
- combo = new QComboBox(true, this);
+ combo = new TQComboBox(true, this);
combo->setDuplicatesEnabled(false);
layout->addWidget(combo);
@@ -44,10 +44,10 @@ ShellFilterDialog::ShellFilterDialog()
buttonbox->layout();
layout->addWidget(buttonbox);
- connect( start_button, SIGNAL(clicked()),
- this, SLOT(slotStartClicked()) );
- connect( cancel_button, SIGNAL(clicked()),
- this, SLOT(reject()) );
+ connect( start_button, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotStartClicked()) );
+ connect( cancel_button, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(reject()) );
m_proc = 0;
@@ -62,8 +62,8 @@ ShellFilterDialog::~ShellFilterDialog()
kdDebug(9029) << "~ShellFilterDialog" << endl;
delete m_proc;
- // QComboBox API is a bit incomplete :-(
- QStringList list;
+ // TQComboBox API is a bit incomplete :-(
+ TQStringList list;
for (int i=0; i < combo->count(); ++i)
list << combo->text(i);
@@ -76,17 +76,17 @@ ShellFilterDialog::~ShellFilterDialog()
void ShellFilterDialog::slotStartClicked()
{
start_button->setEnabled(false);
- m_outstr = QCString();
+ m_outstr = TQCString();
delete m_proc;
m_proc = new KShellProcess("/bin/sh");
(*m_proc) << combo->currentText();
- connect( m_proc, SIGNAL(receivedStdout(KProcess*, char *, int)),
- this, SLOT(slotReceivedStdout(KProcess*, char *, int)) );
- connect( m_proc, SIGNAL(wroteStdin(KProcess*)),
- this, SLOT(slotWroteStdin(KProcess*)) );
- connect( m_proc, SIGNAL(processExited(KProcess*)),
- this, SLOT(slotProcessExited(KProcess*)) );
+ connect( m_proc, TQT_SIGNAL(receivedStdout(KProcess*, char *, int)),
+ this, TQT_SLOT(slotReceivedStdout(KProcess*, char *, int)) );
+ connect( m_proc, TQT_SIGNAL(wroteStdin(KProcess*)),
+ this, TQT_SLOT(slotWroteStdin(KProcess*)) );
+ connect( m_proc, TQT_SIGNAL(processExited(KProcess*)),
+ this, TQT_SLOT(slotProcessExited(KProcess*)) );
m_proc->start(KProcess::NotifyOnExit, KProcess::All);
m_proc->writeStdin(m_instr, m_instr.length());
}
@@ -95,13 +95,13 @@ void ShellFilterDialog::slotStartClicked()
int ShellFilterDialog::exec()
{
start_button->setEnabled(true);
- return QDialog::exec();
+ return TQDialog::exec();
}
void ShellFilterDialog::slotReceivedStdout(KProcess *, char *text, int len)
{
- m_outstr += QString::fromLocal8Bit(text, len+1);
+ m_outstr += TQString::fromLocal8Bit(text, len+1);
kdDebug(9029) << "outstr " << m_outstr << endl;
}