diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2016-05-07 04:03:59 +1000 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2016-05-07 04:03:59 +1000 |
commit | a3caab905b3c008aaa0ff9627c6647615330205d (patch) | |
tree | 36800621beebc1279d89a5cc3d0daef59522058a /src/suspenddialog.cpp | |
parent | 676fba0b9f08d41e68b115bc91931b5d0aa53376 (diff) | |
download | tdepowersave-a3caab905b3c008aaa0ff9627c6647615330205d.tar.gz tdepowersave-a3caab905b3c008aaa0ff9627c6647615330205d.zip |
Added support for hybrid suspend (aka suspend to RAM + suspend to disk).
This relates to bug 2601.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/suspenddialog.cpp')
-rw-r--r-- | src/suspenddialog.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/suspenddialog.cpp b/src/suspenddialog.cpp index 5431938..cdd82c0 100644 --- a/src/suspenddialog.cpp +++ b/src/suspenddialog.cpp @@ -58,7 +58,9 @@ suspendDialog::~suspendDialog() void suspendDialog::setPixmap( TQString type ) { TQPixmap pixmap = 0; - if(type.startsWith("suspend2disk")){// || type.startsWith("NULL")) { + if(type.startsWith("suspend2disk")){ + pixmap = TDEGlobal::iconLoader()->loadIcon("suspend_to_disk", TDEIcon::NoGroup, TDEIcon::SizeLarge); + } else if(type.startsWith("suspend_hybrid")){ pixmap = TDEGlobal::iconLoader()->loadIcon("suspend_to_disk", TDEIcon::NoGroup, TDEIcon::SizeLarge); } else if (type.startsWith("suspend2ram")) { pixmap = TDEGlobal::iconLoader()->loadIcon("suspend_to_ram", TDEIcon::NoGroup, TDEIcon::SizeLarge); |