summaryrefslogtreecommitdiffstats
path: root/src/servicemenu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/servicemenu.cpp')
-rw-r--r--src/servicemenu.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/servicemenu.cpp b/src/servicemenu.cpp
index 272e453..dab7473 100644
--- a/src/servicemenu.cpp
+++ b/src/servicemenu.cpp
@@ -19,17 +19,17 @@
***************************************************************************/
#include "servicemenu.h"
-#include <kglobal.h>
-#include <klocale.h>
+#include <tdeglobal.h>
+#include <tdelocale.h>
#include <ntqimage.h>
#include <kiconloader.h>
#include <kservicegroup.h>
-#include <ksycoca.h>
+#include <tdesycoca.h>
#include <kdebug.h>
ServiceMenu::ServiceMenu(TQObject *receiver, const char *slotActivatedItem,
const char *slotActivatedGroup, TQWidget *parent, const char *name)
- : KPopupMenu(parent, name), m_relPath(TQString::null),
+ : TDEPopupMenu(parent, name), m_relPath(TQString::null),
m_receiver(receiver), m_slotActivatedItem(slotActivatedItem),
m_slotActivatedGroup(slotActivatedGroup)
{
@@ -38,7 +38,7 @@ ServiceMenu::ServiceMenu(TQObject *receiver, const char *slotActivatedItem,
ServiceMenu::ServiceMenu(const TQString & relPath, TQObject *receiver, const char *slotActivatedItem,
const char *slotActivatedGroup, TQWidget *parent, const char *name)
- : KPopupMenu(parent, name), m_relPath(relPath),
+ : TDEPopupMenu(parent, name), m_relPath(relPath),
m_receiver(receiver), m_slotActivatedItem(slotActivatedItem),
m_slotActivatedGroup(slotActivatedGroup)
{
@@ -132,10 +132,10 @@ void ServiceMenu::createMenu()
TQIconSet ServiceMenu::getIconSet(const TQString& icon) const
{
TQIconSet iconset;
- TQPixmap normal = KGlobal::instance()->iconLoader()->loadIcon(
- icon, KIcon::Small, 0, KIcon::DefaultState, 0L, true);
- TQPixmap active = KGlobal::instance()->iconLoader()->loadIcon(
- icon, KIcon::Small, 0, KIcon::ActiveState, 0L, true);
+ TQPixmap normal = TDEGlobal::instance()->iconLoader()->loadIcon(
+ icon, TDEIcon::Small, 0, TDEIcon::DefaultState, 0L, true);
+ TQPixmap active = TDEGlobal::instance()->iconLoader()->loadIcon(
+ icon, TDEIcon::Small, 0, TDEIcon::ActiveState, 0L, true);
// make sure they are not larger than 20x20
if (normal.width() > 20 || normal.height() > 20)
@@ -184,10 +184,10 @@ void ServiceMenu::insertMenuItem(KService::Ptr & s,
serviceName.replace("&", "&&");
TQIconSet iconset;
- TQPixmap normal = KGlobal::instance()->iconLoader()->loadIcon(
- s->icon(), KIcon::Small, 0, KIcon::DefaultState, 0L, true);
- TQPixmap active = KGlobal::instance()->iconLoader()->loadIcon(
- s->icon(), KIcon::Small, 0, KIcon::ActiveState, 0L, true);
+ TQPixmap normal = TDEGlobal::instance()->iconLoader()->loadIcon(
+ s->icon(), TDEIcon::Small, 0, TDEIcon::DefaultState, 0L, true);
+ TQPixmap active = TDEGlobal::instance()->iconLoader()->loadIcon(
+ s->icon(), TDEIcon::Small, 0, TDEIcon::ActiveState, 0L, true);
// make sure they are not larger than 20x20
if (normal.width() > 20 || normal.height() > 20)