|
|
@ -59,13 +59,13 @@ void suspendDialog::setPixmap( TQString type )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
TQPixmap pixmap = 0;
|
|
|
|
TQPixmap pixmap = 0;
|
|
|
|
if(type.startsWith("suspend2disk")){// || type.startsWith("NULL")) {
|
|
|
|
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")) {
|
|
|
|
} 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")) {
|
|
|
|
} 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 {
|
|
|
|
} else {
|
|
|
|
pixmap = TDEGlobal::iconLoader()->loadIcon("kpowersave", KIcon::NoGroup, KIcon::SizeLarge);
|
|
|
|
pixmap = TDEGlobal::iconLoader()->loadIcon("kpowersave", TDEIcon::NoGroup, TDEIcon::SizeLarge);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
setCaption(i18n("Preparing Suspend..."));
|
|
|
|
setCaption(i18n("Preparing Suspend..."));
|
|
|
|
iconPixmap->setPixmap( pixmap );
|
|
|
|
iconPixmap->setPixmap( pixmap );
|
|
|
|