summaryrefslogtreecommitdiffstats
path: root/kate/xmlcheck
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-24 13:40:51 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-24 13:40:51 -0600
commit4c097708c4cc24f3b8e4c21f14644f5715767d47 (patch)
treee8ca4b1d3a3b3de0d18e5f144dcef9b36f830b84 /kate/xmlcheck
parent0642ee50634d90e255c6f45194f6a47dc1157cde (diff)
downloadtdeaddons-4c097708c4cc24f3b8e4c21f14644f5715767d47.tar.gz
tdeaddons-4c097708c4cc24f3b8e4c21f14644f5715767d47.zip
Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4
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;
};