summaryrefslogtreecommitdiffstats
path: root/noatun-plugins/alarm/wakeup.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-24 13:40:51 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-24 13:40:51 -0600
commit4c097708c4cc24f3b8e4c21f14644f5715767d47 (patch)
treee8ca4b1d3a3b3de0d18e5f144dcef9b36f830b84 /noatun-plugins/alarm/wakeup.cpp
parent0642ee50634d90e255c6f45194f6a47dc1157cde (diff)
downloadtdeaddons-4c097708c4cc24f3b8e4c21f14644f5715767d47.tar.gz
tdeaddons-4c097708c4cc24f3b8e4c21f14644f5715767d47.zip
Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4
Diffstat (limited to 'noatun-plugins/alarm/wakeup.cpp')
-rw-r--r--noatun-plugins/alarm/wakeup.cpp56
1 files changed, 28 insertions, 28 deletions
diff --git a/noatun-plugins/alarm/wakeup.cpp b/noatun-plugins/alarm/wakeup.cpp
index 28ae6c3..9bcffc8 100644
--- a/noatun-plugins/alarm/wakeup.cpp
+++ b/noatun-plugins/alarm/wakeup.cpp
@@ -41,7 +41,7 @@
extern "C" Plugin *create_plugin()
{
- KGlobal::locale()->insertCatalogue("wakeup");
+ TDEGlobal::locale()->insertCatalogue("wakeup");
return new Wakeup();
}
@@ -67,7 +67,7 @@ Wakeup::~Wakeup()
void Wakeup::update()
{
- KConfig *config=KGlobal::config();
+ KConfig *config=TDEGlobal::config();
config->setGroup("Noatun Alarm");
hour[0]=config->readNumEntry("Hour1",7);
@@ -287,7 +287,7 @@ void WakeupPrefs::slotViewFrame(int state)
void WakeupPrefs::save()
{
- KConfig *config=KGlobal::config();
+ KConfig *config=TDEGlobal::config();
config->setGroup("Noatun Alarm");
config->writeEntry("Monday",monday->isChecked());
config->writeEntry("Tuesday",tuesday->isChecked());
@@ -325,36 +325,36 @@ void WakeupPrefs::save()
void WakeupPrefs::load()
{
- KGlobal::config()->setGroup("Noatun Alarm");
- monday->setChecked(KGlobal::config()->readBoolEntry("Monday",false));
- tuesday->setChecked(KGlobal::config()->readBoolEntry("Tuesday",false));
- wednesday->setChecked(KGlobal::config()->readBoolEntry("Wednesday",false));
- thursday->setChecked(KGlobal::config()->readBoolEntry("Thursday",false));
- friday->setChecked(KGlobal::config()->readBoolEntry("Friday",false));
- saturday->setChecked(KGlobal::config()->readBoolEntry("Saturday",false));
- sunday->setChecked(KGlobal::config()->readBoolEntry("Sunday",false));
-
- hour1->setValue(KGlobal::config()->readNumEntry("Hour1",7));
- minute1->setValue(KGlobal::config()->readNumEntry("Minute1",0));
- hour2->setValue(KGlobal::config()->readNumEntry("Hour2",7));
- minute2->setValue(KGlobal::config()->readNumEntry("Minute2",0));
- hour3->setValue(KGlobal::config()->readNumEntry("Hour3",7));
- minute3->setValue(KGlobal::config()->readNumEntry("Minute3",0));
- hour4->setValue(KGlobal::config()->readNumEntry("Hour4",7));
- minute4->setValue(KGlobal::config()->readNumEntry("Minute4",0));
- hour5->setValue(KGlobal::config()->readNumEntry("Hour5",7));
- minute5->setValue(KGlobal::config()->readNumEntry("Minute5",0));
- hour6->setValue(KGlobal::config()->readNumEntry("Hour6",7));
- minute6->setValue(KGlobal::config()->readNumEntry("Minute6",0));
- hour7->setValue(KGlobal::config()->readNumEntry("Hour7",7));
- minute7->setValue(KGlobal::config()->readNumEntry("Minute7",0));
+ TDEGlobal::config()->setGroup("Noatun Alarm");
+ monday->setChecked(TDEGlobal::config()->readBoolEntry("Monday",false));
+ tuesday->setChecked(TDEGlobal::config()->readBoolEntry("Tuesday",false));
+ wednesday->setChecked(TDEGlobal::config()->readBoolEntry("Wednesday",false));
+ thursday->setChecked(TDEGlobal::config()->readBoolEntry("Thursday",false));
+ friday->setChecked(TDEGlobal::config()->readBoolEntry("Friday",false));
+ saturday->setChecked(TDEGlobal::config()->readBoolEntry("Saturday",false));
+ sunday->setChecked(TDEGlobal::config()->readBoolEntry("Sunday",false));
+
+ hour1->setValue(TDEGlobal::config()->readNumEntry("Hour1",7));
+ minute1->setValue(TDEGlobal::config()->readNumEntry("Minute1",0));
+ hour2->setValue(TDEGlobal::config()->readNumEntry("Hour2",7));
+ minute2->setValue(TDEGlobal::config()->readNumEntry("Minute2",0));
+ hour3->setValue(TDEGlobal::config()->readNumEntry("Hour3",7));
+ minute3->setValue(TDEGlobal::config()->readNumEntry("Minute3",0));
+ hour4->setValue(TDEGlobal::config()->readNumEntry("Hour4",7));
+ minute4->setValue(TDEGlobal::config()->readNumEntry("Minute4",0));
+ hour5->setValue(TDEGlobal::config()->readNumEntry("Hour5",7));
+ minute5->setValue(TDEGlobal::config()->readNumEntry("Minute5",0));
+ hour6->setValue(TDEGlobal::config()->readNumEntry("Hour6",7));
+ minute6->setValue(TDEGlobal::config()->readNumEntry("Minute6",0));
+ hour7->setValue(TDEGlobal::config()->readNumEntry("Hour7",7));
+ minute7->setValue(TDEGlobal::config()->readNumEntry("Minute7",0));
- TQString volend(KGlobal::config()->readEntry("VolumeEnd","80%"));
+ TQString volend(TDEGlobal::config()->readEntry("VolumeEnd","80%"));
volend.truncate(volend.length()-1);
volEndValue->setValue(volend.toInt());
- switch (KGlobal::config()->readNumEntry("ModeAlarm",0))
+ switch (TDEGlobal::config()->readNumEntry("ModeAlarm",0))
{
case 0:
alarmmode->setChecked(true);