From 4c097708c4cc24f3b8e4c21f14644f5715767d47 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 24 Jan 2013 13:40:51 -0600 Subject: Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4 --- kate/xmlcheck/plugin_katexmlcheck.cpp | 18 +++++++++--------- kate/xmlcheck/plugin_katexmlcheck.h | 6 +++--- 2 files changed, 12 insertions(+), 12 deletions(-) (limited to 'kate/xmlcheck') 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("Error: 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; }; -- cgit v1.2.1