summaryrefslogtreecommitdiffstats
path: root/kate/xmlcheck
diff options
context:
space:
mode:
Diffstat (limited to 'kate/xmlcheck')
-rw-r--r--kate/xmlcheck/plugin_katexmlcheck.cpp18
-rw-r--r--kate/xmlcheck/plugin_katexmlcheck.h6
2 files changed, 12 insertions, 12 deletions
diff --git a/kate/xmlcheck/plugin_katexmlcheck.cpp b/kate/xmlcheck/plugin_katexmlcheck.cpp
index 6e4f0ad..e7ce1e2 100644
--- a/kate/xmlcheck/plugin_katexmlcheck.cpp
+++ b/kate/xmlcheck/plugin_katexmlcheck.cpp
@@ -130,13 +130,13 @@ PluginKateXMLCheckView::PluginKateXMLCheckView(TQWidget *parent,Kate::MainWindow
*/
m_proc_stderr = "";
- m_proc = new KProcess();
- connect(m_proc, TQT_SIGNAL(processExited(KProcess*)), this, TQT_SLOT(slotProcExited(KProcess*)));
+ m_proc = new TDEProcess();
+ connect(m_proc, TQT_SIGNAL(processExited(TDEProcess*)), this, TQT_SLOT(slotProcExited(TDEProcess*)));
// we currently only want errors:
- //connect(m_proc, TQT_SIGNAL(receivedStdout(KProcess*,char*,int)),
- // this, TQT_SLOT(receivedProcStdout(KProcess*, char*, int)));
- connect(m_proc, TQT_SIGNAL(receivedStderr(KProcess*,char*,int)),
- this, TQT_SLOT(slotReceivedProcStderr(KProcess*, char*, int)));
+ //connect(m_proc, TQT_SIGNAL(receivedStdout(TDEProcess*,char*,int)),
+ // this, TQT_SLOT(receivedProcStdout(TDEProcess*, char*, int)));
+ connect(m_proc, TQT_SIGNAL(receivedStderr(TDEProcess*,char*,int)),
+ this, TQT_SLOT(slotReceivedProcStderr(TDEProcess*, char*, int)));
}
@@ -150,13 +150,13 @@ PluginKateXMLCheckView::~PluginKateXMLCheckView()
-void PluginKateXMLCheckView::slotReceivedProcStderr(KProcess *, char *result, int len)
+void PluginKateXMLCheckView::slotReceivedProcStderr(TDEProcess *, char *result, int len)
{
m_proc_stderr += TQString::fromLocal8Bit( TQCString(result, len+1) );
}
-void PluginKateXMLCheckView::slotProcExited(KProcess*)
+void PluginKateXMLCheckView::slotProcExited(TDEProcess*)
{
// FIXME: doesn't work correct the first time:
//if( m_dockwidget->isDockBackPossible() ) {
@@ -343,7 +343,7 @@ bool PluginKateXMLCheckView::slotValidate()
}
*m_proc << m_tmp_file->name();
- if( ! m_proc->start(KProcess::NotifyOnExit, KProcess::AllOutput) ) {
+ if( ! m_proc->start(TDEProcess::NotifyOnExit, TDEProcess::AllOutput) ) {
KMessageBox::error(0, i18n("<b>Error:</b> Failed to execute xmllint. Please make "
"sure that xmllint is installed. It is part of libxml2."));
return false;
diff --git a/kate/xmlcheck/plugin_katexmlcheck.h b/kate/xmlcheck/plugin_katexmlcheck.h
index dda8683..e12a950 100644
--- a/kate/xmlcheck/plugin_katexmlcheck.h
+++ b/kate/xmlcheck/plugin_katexmlcheck.h
@@ -56,15 +56,15 @@ class PluginKateXMLCheckView : public TQListView, public KXMLGUIClient
public slots:
bool slotValidate();
void slotClicked(TQListViewItem *item);
- void slotProcExited(KProcess*);
- void slotReceivedProcStderr(KProcess*, char*, int);
+ void slotProcExited(TDEProcess*);
+ void slotReceivedProcStderr(TDEProcess*, char*, int);
void slotUpdate();
private:
KTempFile *m_tmp_file;
KParts::ReadOnlyPart *part;
bool m_validating;
- KProcess *m_proc;
+ TDEProcess *m_proc;
TQString m_proc_stderr;
TQString m_dtdname;
};