summaryrefslogtreecommitdiffstats
path: root/src/suspenddialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/suspenddialog.cpp')
-rw-r--r--src/suspenddialog.cpp18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/suspenddialog.cpp b/src/suspenddialog.cpp
index ff3b04d..5431938 100644
--- a/src/suspenddialog.cpp
+++ b/src/suspenddialog.cpp
@@ -17,13 +17,13 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
-/*!
+/*!
* \file suspenddialog.cpp
- * \brief In this file can be found the suspend dialog related code.
+ * \brief In this file can be found the suspend dialog related code.
* \author Danny Kukawka, <dkukawka@suse.de>, <danny.kukawka@web.de>
* \date 2005
*/
-
+
// KDE - Headers
#include <tdelocale.h>
#include <kiconloader.h>
@@ -45,12 +45,12 @@ suspendDialog::suspendDialog(TQWidget *parent, const char *name)
}
/*! This is the default destructor of the class. */
-suspendDialog::~suspendDialog()
+suspendDialog::~suspendDialog()
{
}
-/*!
+/*!
* This used to set Icon/pixmap for the dialog.
* \param type TQString with the type of the current suspend
* to set the pixmap in the dialog
@@ -62,6 +62,8 @@ void suspendDialog::setPixmap( TQString type )
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);
+ } else if (type.startsWith("freeze")) {
+ pixmap = TDEGlobal::iconLoader()->loadIcon("suspend_to_ram", TDEIcon::NoGroup, TDEIcon::SizeLarge);
} else if (type.startsWith("standby")) {
pixmap = TDEGlobal::iconLoader()->loadIcon("stand_by", TDEIcon::NoGroup, TDEIcon::SizeLarge);
} else {
@@ -71,7 +73,7 @@ void suspendDialog::setPixmap( TQString type )
iconPixmap->setPixmap( pixmap );
}
-/*!
+/*!
* This used to set the values of progressbar for the dialog.
* \param percent integer value with current progress stauts of suspend
*/
@@ -81,11 +83,11 @@ void suspendDialog::setProgressbar( int percent )
progressBar->setProgress(percent);
}
-/*!
+/*!
* This used to set the message of current suspend action to the the dialog.
* \param messageText TQString with the message of the current running suspend
* prepare action
- */
+ */
void suspendDialog::setTextLabel( TQString messageText )
{
message->show();