summaryrefslogtreecommitdiffstats
path: root/kcpuload/kcpuload/statpopup.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 14:59:59 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 14:59:59 -0600
commit05dbfd2d578121f0784548510d25bfb2b49bc316 (patch)
treeef2b547943f6fbc57dd5024f6820b2fb632b33de /kcpuload/kcpuload/statpopup.cpp
parent4d4b4d89174bb578dba8f79348519d3e3f21b9d1 (diff)
downloadkcpuload-05dbfd2d578121f0784548510d25bfb2b49bc316.tar.gz
kcpuload-05dbfd2d578121f0784548510d25bfb2b49bc316.zip
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'kcpuload/kcpuload/statpopup.cpp')
-rw-r--r--kcpuload/kcpuload/statpopup.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/kcpuload/kcpuload/statpopup.cpp b/kcpuload/kcpuload/statpopup.cpp
index ae6cccd..0d1899c 100644
--- a/kcpuload/kcpuload/statpopup.cpp
+++ b/kcpuload/kcpuload/statpopup.cpp
@@ -54,7 +54,7 @@ void StatPopup::Reading::Init(int which, StatPopup* popup)
color = popup->defaultDockColor(which);
color = popup->config->readColorEntry(colorid, &color);
- actColor = new KAction(i18n("Color (%1)...").arg(popup->dockName(which)),
+ actColor = new TDEAction(i18n("Color (%1)...").arg(popup->dockName(which)),
"color", 0, TQT_TQOBJECT(popup), TQT_SLOT(selectColor()), popup->coll, colorid);
}
@@ -80,7 +80,7 @@ StatPopup::StatPopup(bool useSupportSplit, TQWidget *parent, const char *name) :
// Prepare for actions and the config file, but don't actually add
// any actions or read the configuration.
config = TDEGlobal::config();
- coll = new KActionCollection(this);
+ coll = new TDEActionCollection(this);
// Set up a timer for our periodic updates.
timer = new TQTimer(this);
@@ -114,7 +114,7 @@ void StatPopup::savePopupState() {
config->sync();
}
-void StatPopup::initDock(StatDock* target, KPopupMenu* menu, int whichDock) {
+void StatPopup::initDock(StatDock* target, TDEPopupMenu* menu, int whichDock) {
// Initialise the menus.
actActive->plug(menu);
actClearHistory->plug(menu);
@@ -126,7 +126,7 @@ void StatPopup::initDock(StatDock* target, KPopupMenu* menu, int whichDock) {
insertCustomItems(menu);
- KPopupMenu* fillMenu = new KPopupMenu(menu);
+ TDEPopupMenu* fillMenu = new TDEPopupMenu(menu);
actFillLines->plug(fillMenu);
actFillBars->plug(fillMenu);
actFillShaded->plug(fillMenu);
@@ -332,15 +332,15 @@ void StatPopup::setupActions() {
bool bVal;
bVal = config->readBoolEntry("Active", true);
- actActive = new KToggleAction(i18n("&Active"), 0, coll, "active");
+ actActive = new TDEToggleAction(i18n("&Active"), 0, coll, "active");
actActive->setChecked(bVal);
connect(actActive, TQT_SIGNAL(toggled(bool)), TQT_TQOBJECT(this), TQT_SLOT(setActive(bool)));
- actClearHistory = new KAction(i18n("&Clear"), "editdelete", 0,
+ actClearHistory = new TDEAction(i18n("&Clear"), "editdelete", 0,
TQT_TQOBJECT(this), TQT_SLOT(clearHistory()), coll, "clear");
speed = config->readNumEntry("Speed", DEFAULT_SPEED);
- actSpeed = new KAction(i18n("&Speed..."), "speedarrow", 0,
+ actSpeed = new TDEAction(i18n("&Speed..."), "speedarrow", 0,
TQT_TQOBJECT(this), TQT_SLOT(selectSpeed()), coll, "speed");
if (supportSplit) {