From fd63c2d407b3019bdddd3dc05407eb0c53111b02 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 1 Oct 2014 23:22:07 +0900 Subject: [PATCH] Fixed FTBFS caused by tdenewstuff. --- kate/filetemplates/plugin/filetemplates.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/kate/filetemplates/plugin/filetemplates.cpp b/kate/filetemplates/plugin/filetemplates.cpp index c8b9730..f49e686 100644 --- a/kate/filetemplates/plugin/filetemplates.cpp +++ b/kate/filetemplates/plugin/filetemplates.cpp @@ -38,8 +38,8 @@ #include #include #include -#include -#include +#include +#include #include #include #include @@ -1081,9 +1081,9 @@ class KateTemplateItem : public TDEListViewItem //END KateTemplateItem //BEGIN KFTNewStuff -class KFTNewStuff : public KNewStuff { +class KFTNewStuff : public TDENewStuff { public: - KFTNewStuff( const TQString &type, TQWidget *parent=0 ) : KNewStuff( type, parent ), m_win( parent ) {} + KFTNewStuff( const TQString &type, TQWidget *parent=0 ) : TDENewStuff( type, parent ), m_win( parent ) {} ~KFTNewStuff() {} bool install( const TQString &/*filename*/ ) { return true; } bool createUploadFile( const TQString &/*filename*/ ) { return false; } @@ -1212,11 +1212,11 @@ void KateTemplateManager::slotRemoveTemplate() config->writeEntry( "Hidden", l, ';' ); } - // If we removed any files, we should delete a KNewStuff key + // If we removed any files, we should delete a TDENewStuff key // for this template, so the template is installable again. - // ### This assumes that the knewstuff name is similar to the template name. - kdDebug()<<"trying to remove knewstuff key '"<templateinfo->tmplate<<"'"<setGroup("KNewStuffStatus"); + // ### This assumes that the tdenewstuff name is similar to the template name. + kdDebug()<<"trying to remove tdenewstuff key '"<templateinfo->tmplate<<"'"<setGroup("TDENewStuffStatus"); config->deleteEntry( item->templateinfo->tmplate ); @@ -1225,7 +1225,7 @@ void KateTemplateManager::slotRemoveTemplate() } } -// KNewStuff upload +// TDENewStuff upload void KateTemplateManager::slotUpload() { // TODO something nicer, like preparing the meta data from the template info. @@ -1237,7 +1237,7 @@ void KateTemplateManager::slotUpload() } } -// KNewStuff download +// TDENewStuff download void KateTemplateManager::slotDownload() { KFTNewStuff *ns = new KFTNewStuff( "katefiletemplates/template", this );