diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-20 00:23:08 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-20 00:23:08 -0600 |
commit | d6d75dc9ff326e0bd6fc673adae71d53277fb8e4 (patch) | |
tree | 56a87e6a48bdf5e310958f1943a834e59eddbba1 /kalarm | |
parent | 32b66c9ae78f439199a6d281cc33218e57c5106d (diff) | |
download | tdepim-d6d75dc9ff326e0bd6fc673adae71d53277fb8e4.tar.gz tdepim-d6d75dc9ff326e0bd6fc673adae71d53277fb8e4.zip |
Rename KApplication to TDEApplication to avoid conflicts with KDE4
Diffstat (limited to 'kalarm')
-rw-r--r-- | kalarm/daemon.cpp | 2 | ||||
-rw-r--r-- | kalarm/functions.cpp | 6 | ||||
-rw-r--r-- | kalarm/kalarmd/alarmdaemon.cpp | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/kalarm/daemon.cpp b/kalarm/daemon.cpp index 4ad785552..29ac67d4a 100644 --- a/kalarm/daemon.cpp +++ b/kalarm/daemon.cpp @@ -141,7 +141,7 @@ bool Daemon::start() kdError() << "Daemon::startApp(): " DAEMON_APP_NAME " not found" << endl; return false; } - KApplication::tdeinitExec(execStr); + TDEApplication::tdeinitExec(execStr); kdDebug(5950) << "Daemon::start(): Alarm daemon started" << endl; mStartTimeout = 5000/startCheckInterval + 1; // check daemon status for 5 seconds before giving up mStartTimer = new TQTimer(mInstance); diff --git a/kalarm/functions.cpp b/kalarm/functions.cpp index e1e897e37..e5dc5fa38 100644 --- a/kalarm/functions.cpp +++ b/kalarm/functions.cpp @@ -721,7 +721,7 @@ bool runProgram(const TQCString& program, const TQCString& windowName, TQCString if (!kapp->dcopClient()->isApplicationRegistered(program)) { // KOrganizer is not already running, so start it - if (KApplication::startServiceByDesktopName(TQString::fromLatin1(program), TQString(), &errorMessage, &dcopName)) + if (TDEApplication::startServiceByDesktopName(TQString::fromLatin1(program), TQString(), &errorMessage, &dcopName)) { kdError(5950) << "runProgram(): couldn't start " << program << " (" << errorMessage << ")\n"; return false; @@ -747,7 +747,7 @@ bool readConfigWindowSize(const char* window, TQSize& result) { KConfig* config = KGlobal::config(); config->setGroup(TQString::fromLatin1(window)); - TQWidget* desktop = TQT_TQWIDGET(KApplication::desktop()); + TQWidget* desktop = TQT_TQWIDGET(TDEApplication::desktop()); TQSize s = TQSize(config->readNumEntry(TQString::fromLatin1("Width %1").arg(desktop->width()), 0), config->readNumEntry(TQString::fromLatin1("Height %1").arg(desktop->height()), 0)); if (s.isEmpty()) @@ -764,7 +764,7 @@ void writeConfigWindowSize(const char* window, const TQSize& size) { KConfig* config = KGlobal::config(); config->setGroup(TQString::fromLatin1(window)); - TQWidget* desktop = TQT_TQWIDGET(KApplication::desktop()); + TQWidget* desktop = TQT_TQWIDGET(TDEApplication::desktop()); config->writeEntry(TQString::fromLatin1("Width %1").arg(desktop->width()), size.width()); config->writeEntry(TQString::fromLatin1("Height %1").arg(desktop->height()), size.height()); config->sync(); diff --git a/kalarm/kalarmd/alarmdaemon.cpp b/kalarm/kalarmd/alarmdaemon.cpp index 85d214656..e1bbe0bb5 100644 --- a/kalarm/kalarmd/alarmdaemon.cpp +++ b/kalarm/kalarmd/alarmdaemon.cpp @@ -120,7 +120,7 @@ void AlarmDaemon::autostartKAlarm() kdDebug(5900) << "AlarmDaemon::autostartKAlarm(): starting KAlarm\n"; TQStringList args; args << TQString::fromLatin1("--tray"); - int ret = KApplication::tdeinitExec(TQString::fromLatin1("kalarm"), args); + int ret = TDEApplication::tdeinitExec(TQString::fromLatin1("kalarm"), args); if (ret) kdError(5900) << "AlarmDaemon::autostartKAlarm(): error=" << ret << endl; else |