diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-24 13:40:51 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-24 13:40:51 -0600 |
commit | 4c097708c4cc24f3b8e4c21f14644f5715767d47 (patch) | |
tree | e8ca4b1d3a3b3de0d18e5f144dcef9b36f830b84 /kicker-applets/ktimemon | |
parent | 0642ee50634d90e255c6f45194f6a47dc1157cde (diff) | |
download | tdeaddons-4c097708c4cc24f3b8e4c21f14644f5715767d47.tar.gz tdeaddons-4c097708c4cc24f3b8e4c21f14644f5715767d47.zip |
Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4
Diffstat (limited to 'kicker-applets/ktimemon')
-rw-r--r-- | kicker-applets/ktimemon/timemon.cc | 16 | ||||
-rw-r--r-- | kicker-applets/ktimemon/timemon.h | 4 |
2 files changed, 10 insertions, 10 deletions
diff --git a/kicker-applets/ktimemon/timemon.cc b/kicker-applets/ktimemon/timemon.cc index 991a2e9..ef32118 100644 --- a/kicker-applets/ktimemon/timemon.cc +++ b/kicker-applets/ktimemon/timemon.cc @@ -37,7 +37,7 @@ extern "C" { KDE_EXPORT KPanelApplet* init(TQWidget *parent, const TQString& configFile) { - KGlobal::locale()->insertCatalogue("ktimemon"); + TDEGlobal::locale()->insertCatalogue("ktimemon"); KTimeMon *mon = new KTimeMon(configFile, KPanelApplet::Normal, KPanelApplet::Preferences, parent, "ktimemon"); return mon; @@ -172,9 +172,9 @@ void KTimeMon::maybeTip(const TQPoint& p) idle = 0; TQString str = i18n("cpu: %1% idle\nmem: %2 MB %3% free\nswap: %4 MB %5% free") .arg(idle) - .arg(KGlobal::locale()->formatNumber(s.used/100.*s.mtotal, 0)) + .arg(TDEGlobal::locale()->formatNumber(s.used/100.*s.mtotal, 0)) .arg(100-s.used) - .arg(KGlobal::locale()->formatNumber(s.stotal, 0)) + .arg(TDEGlobal::locale()->formatNumber(s.stotal, 0)) .arg(100-s.sused); tip(rect(), str); @@ -265,7 +265,7 @@ KTimeMon::~KTimeMon() { delete sample; delete bgProcess; - KGlobal::locale()->removeCatalogue("ktimemon"); + TDEGlobal::locale()->removeCatalogue("ktimemon"); } @@ -413,15 +413,15 @@ void KTimeMon::runCommand(int index) bgProcess = new KShellProcess; *bgProcess << mouseActionCommand[index]; - connect(bgProcess, TQT_SIGNAL(receivedStderr(KProcess *, char *, int)), - this, TQT_SLOT(commandStderr(KProcess *, char *, int))); - bgProcess->start(KProcess::DontCare, KProcess::Stderr); + connect(bgProcess, TQT_SIGNAL(receivedStderr(TDEProcess *, char *, int)), + this, TQT_SLOT(commandStderr(TDEProcess *, char *, int))); + bgProcess->start(TDEProcess::DontCare, TDEProcess::Stderr); } // ----------------------------------------------------------------------------- // Check if there is any diagnostic output (command not found or such) -void KTimeMon::commandStderr(KProcess * /*proc*/, char *buffer, int /*length*/) +void KTimeMon::commandStderr(TDEProcess * /*proc*/, char *buffer, int /*length*/) { TQString msgbuf; diff --git a/kicker-applets/ktimemon/timemon.h b/kicker-applets/ktimemon/timemon.h index 4268c06..6e454d8 100644 --- a/kicker-applets/ktimemon/timemon.h +++ b/kicker-applets/ktimemon/timemon.h @@ -29,7 +29,7 @@ class KConfDialog; class TQPaintEvent; class TQMouseEvent; class TQPainter; -class KProcess; +class TDEProcess; class KShellProcess; class KHelpMenu; class KPopupMenu; @@ -79,7 +79,7 @@ protected: private slots: // called from the menu void configure(); // show the configuration dialog void orientation(); // switch vertical/horizontal orientation - void commandStderr(KProcess *proc, char *buffer, int length); + void commandStderr(TDEProcess *proc, char *buffer, int length); private: void runCommand(int index); |