From 38518d610d1106fbca41bed7b3df4605958dc45d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sat, 27 Sep 2014 19:20:57 +0200 Subject: Update for recent TDENewStuff changes --- lib/kross/main/wdgscriptsmanager.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'lib/kross') diff --git a/lib/kross/main/wdgscriptsmanager.cpp b/lib/kross/main/wdgscriptsmanager.cpp index 18f19d68..7aea9b3a 100644 --- a/lib/kross/main/wdgscriptsmanager.cpp +++ b/lib/kross/main/wdgscriptsmanager.cpp @@ -36,16 +36,16 @@ #include #if KDE_IS_VERSION(3, 4, 0) - // The KNewStuffSecure we use internaly for the GetHotNewStuff-functionality + // The TDENewStuffSecure we use internaly for the GetHotNewStuff-functionality // was introduced with KDE 3.4. #define KROSS_SUPPORT_NEWSTUFF #endif #ifdef KROSS_SUPPORT_NEWSTUFF - #include - #include - #include - #include + #include + #include + #include + #include #endif #include "scriptguiclient.h" @@ -54,11 +54,11 @@ namespace Kross { namespace Api { #ifdef KROSS_SUPPORT_NEWSTUFF -class ScriptNewStuff : public KNewStuffSecure +class ScriptNewStuff : public TDENewStuffSecure { public: ScriptNewStuff(ScriptGUIClient* scripguiclient, const TQString& type, TQWidget *parentWidget = 0) - : KNewStuffSecure(type, parentWidget) + : TDENewStuffSecure(type, parentWidget) , m_scripguiclient(scripguiclient) {} virtual ~ScriptNewStuff() {} private: @@ -321,7 +321,7 @@ void WdgScriptsManager::slotGetNewScript() { #ifdef KROSS_SUPPORT_NEWSTUFF const TQString appname = TDEApplication::kApplication()->name(); - const TQString type = TQString("%1/script").arg(appname); + const TQString type = TQString("%1 1.x script").arg(appname); if(! d->newstuff) { d->newstuff = new ScriptNewStuff(d->m_scripguiclient, type); @@ -336,17 +336,17 @@ void WdgScriptsManager::slotGetNewScript() TQObject::connect(p, TQT_SIGNAL(providersLoaded(Provider::List*)), d, TQT_SLOT(slotProviders(Provider::List*))); - p->load(type, TQString("http://download.kde.org/khotnewstuff/%1scripts-providers.xml").arg(appname)); + p->load(type, "https://www.trinitydesktop.org/ocs/providers.xml"); d->exec(); #endif } void WdgScriptsManager::slotResourceInstalled() { - // Delete KNewStuff's configuration entries. These entries reflect what has + // Delete TDENewStuff's configuration entries. These entries reflect what has // already been installed. As we cannot yet keep them in sync after uninstalling // scripts, we deactivate the check marks entirely. - TDEGlobal::config()->deleteGroup("KNewStuffStatus"); + TDEGlobal::config()->deleteGroup("TDENewStuffStatus"); } }} -- cgit v1.2.1