diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-04 14:07:00 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-04 14:07:00 -0600 |
commit | 7cbaaf8a0ae6142011e306c637de599560d9f47c (patch) | |
tree | 3e724b4815d1b12113f3aed5b8d5891d4423fd37 | |
parent | 254ea2e3e71d153b886d1c72fb01d415996a0a50 (diff) | |
download | kpowersave-7cbaaf8a0ae6142011e306c637de599560d9f47c.tar.gz kpowersave-7cbaaf8a0ae6142011e306c637de599560d9f47c.zip |
Rename KIcon to enhance compatibility with KDE4
-rw-r--r-- | src/countdowndialog.cpp | 8 | ||||
-rw-r--r-- | src/infodialog.cpp | 2 | ||||
-rw-r--r-- | src/kpowersave.cpp | 2 | ||||
-rw-r--r-- | src/suspenddialog.cpp | 8 |
4 files changed, 10 insertions, 10 deletions
diff --git a/src/countdowndialog.cpp b/src/countdowndialog.cpp index a4c8158..edcbcb4 100644 --- a/src/countdowndialog.cpp +++ b/src/countdowndialog.cpp @@ -76,13 +76,13 @@ void countDownDialog::setPixmap( TQString type ) TQPixmap pixmap = 0; if(type.startsWith("suspend2disk")){ - pixmap = TDEGlobal::iconLoader()->loadIcon("suspend_to_disk", KIcon::NoGroup, KIcon::SizeLarge); + pixmap = TDEGlobal::iconLoader()->loadIcon("suspend_to_disk", TDEIcon::NoGroup, TDEIcon::SizeLarge); } else if (type.startsWith("suspend2ram")) { - pixmap = TDEGlobal::iconLoader()->loadIcon("suspend_to_ram", KIcon::NoGroup, KIcon::SizeLarge); + pixmap = TDEGlobal::iconLoader()->loadIcon("suspend_to_ram", TDEIcon::NoGroup, TDEIcon::SizeLarge); } else if (type.startsWith("standby")) { - pixmap = TDEGlobal::iconLoader()->loadIcon("stand_by", KIcon::NoGroup, KIcon::SizeLarge); + pixmap = TDEGlobal::iconLoader()->loadIcon("stand_by", TDEIcon::NoGroup, TDEIcon::SizeLarge); } else { - pixmap = TDEGlobal::iconLoader()->loadIcon("kpowersave", KIcon::NoGroup, KIcon::SizeLarge); + pixmap = TDEGlobal::iconLoader()->loadIcon("kpowersave", TDEIcon::NoGroup, TDEIcon::SizeLarge); } iconPixmap->setPixmap( pixmap ); } diff --git a/src/infodialog.cpp b/src/infodialog.cpp index b8c37c5..38cd262 100644 --- a/src/infodialog.cpp +++ b/src/infodialog.cpp @@ -67,7 +67,7 @@ infoDialog::infoDialog( TDEConfig *config, TQString captionName, TQString messag buttonOK->setIconSet(SmallIconSet("ok", TQIconSet::Automatic)); TQPixmap pixmap = 0; - pixmap = TDEGlobal::iconLoader()->loadIcon("messagebox_warning", KIcon::NoGroup, KIcon::SizeMedium); + pixmap = TDEGlobal::iconLoader()->loadIcon("messagebox_warning", TDEIcon::NoGroup, TDEIcon::SizeMedium); iconPixmap->setPixmap( pixmap ); msgText->setText(message); diff --git a/src/kpowersave.cpp b/src/kpowersave.cpp index 55a1c59..91dedd2 100644 --- a/src/kpowersave.cpp +++ b/src/kpowersave.cpp @@ -361,7 +361,7 @@ void kpowersave::loadIcon(bool forceReload){ if ((pixmap_name_tmp != pixmap_name) || (forceReload)) { pixmap_name = pixmap_name_tmp; if (pixmap_name.startsWith("ERROR")) { - pixmap = SmallIcon("laptoppower", width(), KIcon::DisabledState); + pixmap = SmallIcon("laptoppower", width(), TDEIcon::DisabledState); } else pixmap = SmallIcon(pixmap_name, width()); diff --git a/src/suspenddialog.cpp b/src/suspenddialog.cpp index af6e7b0..ac05c4b 100644 --- a/src/suspenddialog.cpp +++ b/src/suspenddialog.cpp @@ -59,13 +59,13 @@ void suspendDialog::setPixmap( TQString type ) { TQPixmap pixmap = 0; if(type.startsWith("suspend2disk")){// || type.startsWith("NULL")) { - pixmap = TDEGlobal::iconLoader()->loadIcon("suspend_to_disk", KIcon::NoGroup, KIcon::SizeLarge); + pixmap = TDEGlobal::iconLoader()->loadIcon("suspend_to_disk", TDEIcon::NoGroup, TDEIcon::SizeLarge); } else if (type.startsWith("suspend2ram")) { - pixmap = TDEGlobal::iconLoader()->loadIcon("suspend_to_ram", KIcon::NoGroup, KIcon::SizeLarge); + pixmap = TDEGlobal::iconLoader()->loadIcon("suspend_to_ram", TDEIcon::NoGroup, TDEIcon::SizeLarge); } else if (type.startsWith("standby")) { - pixmap = TDEGlobal::iconLoader()->loadIcon("stand_by", KIcon::NoGroup, KIcon::SizeLarge); + pixmap = TDEGlobal::iconLoader()->loadIcon("stand_by", TDEIcon::NoGroup, TDEIcon::SizeLarge); } else { - pixmap = TDEGlobal::iconLoader()->loadIcon("kpowersave", KIcon::NoGroup, KIcon::SizeLarge); + pixmap = TDEGlobal::iconLoader()->loadIcon("kpowersave", TDEIcon::NoGroup, TDEIcon::SizeLarge); } setCaption(i18n("Preparing Suspend...")); iconPixmap->setPixmap( pixmap ); |