From 88b7febc2393324ee14940c1c41a8ddc342c35f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Fri, 25 Mar 2016 20:06:45 +0100 Subject: Initial TDE conversion MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- sessionapplet/usermanager.cpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'sessionapplet/usermanager.cpp') diff --git a/sessionapplet/usermanager.cpp b/sessionapplet/usermanager.cpp index 107d9b8..01c05d8 100644 --- a/sessionapplet/usermanager.cpp +++ b/sessionapplet/usermanager.cpp @@ -19,25 +19,25 @@ ***************************************************************************/ #include -#include +#include // #include #include #include #include -#include +#include #include -#include -#include +#include +#include #include -#include -#include -#include +#include +#include +#include #include #include #include "dmctl.h" #include "usermanager.h" -#define _ICONSET_(i) KGlobal::iconLoader()->loadIconSet(i, KIcon::Small, 0, false) +#define _ICONSET_(i) TDEGlobal::iconLoader()->loadIconSet(i, TDEIcon::Small, 0, false) UserManager::UserManager(const TQString& configFile, Type type, int actions, TQWidget *parent, const char *name) @@ -66,7 +66,7 @@ UserManager::UserManager(const TQString& configFile, Type type, int actions, TQW // languages langPopup = new TQPopupMenu(this); - KConfigBase *config = KGlobal::config(); + TDEConfigBase *config = TDEGlobal::config(); config->setGroup("Locale"); langList = config->readListEntry ("Language", ':'); // TQString flag( locate( "locale", TQString::fromLatin1( "l10n/%1/flag.png" ).arg(langList[0]) ) ); @@ -123,14 +123,14 @@ void UserManager::logout() void UserManager::slotPopulateLanguages() { langPopup->clear(); - KConfig *config = new KConfig("kdeglobals"); + TDEConfig *config = new TDEConfig("kdeglobals"); config->setGroup("Locale"); langList = config->readListEntry ("Language", ':'); int i = 0; for ( TQStringList::ConstIterator it = langList.begin(); it != langList.end(); ++it ) { - KConfig entry(locate( "locale", TQString::fromLatin1( "%1/entry.desktop" ).arg(*it) )); + TDEConfig entry(locate( "locale", TQString::fromLatin1( "%1/entry.desktop" ).arg(*it) )); entry.setGroup("KCM Locale"); TQString name = entry.readEntry("Name", i18n("without name")); @@ -147,7 +147,7 @@ void UserManager::slotLanguageActivated( int i ) return; // no change, no action menu->changeItem ( 1, '[' + langList[i].section('_',0,0) + ']'/**langPopup->pixmap(i)*/ ); // langLabel->setPixmap(*langPopup->pixmap(i)); - KConfig *config = new KConfig("kdeglobals"); + TDEConfig *config = new TDEConfig("kdeglobals"); config->setGroup("Locale"); TQString tmp = langList[i]; langList.remove(langList.at(i)); @@ -193,7 +193,7 @@ void UserManager::slotPopulateSessions() } // save sessionPopup->insertSeparator(); - KConfig ksmserver("ksmserverrc", false, false); + TDEConfig ksmserver("ksmserverrc", false, false); ksmserver.setGroup("General"); if (ksmserver.readEntry( "loginMode" ) == "restoreSavedSession") { @@ -275,7 +275,7 @@ extern "C" { KPanelApplet* init( TQWidget *parent, const TQString& configFile) { - KGlobal::locale()->insertCatalogue("usermanager"); + TDEGlobal::locale()->insertCatalogue("usermanager"); return new UserManager(configFile, KPanelApplet::Normal, KPanelApplet::About, parent, "usermanager"); } } -- cgit v1.2.1