summaryrefslogtreecommitdiffstats
path: root/src/countdowndialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/countdowndialog.cpp')
-rw-r--r--src/countdowndialog.cpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/countdowndialog.cpp b/src/countdowndialog.cpp
index 0037100..1e028ef 100644
--- a/src/countdowndialog.cpp
+++ b/src/countdowndialog.cpp
@@ -23,6 +23,10 @@
* \date 2007
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
// own header
#include "countdowndialog.h"
#include "tdepowersave_debug.h"
@@ -32,7 +36,7 @@
#include <kiconloader.h>
#include <kprogress.h>
-// QT headers:
+// TQt headers:
#include <tqdialog.h>
#include <tqlabel.h>
#include <tqprogressbar.h>
@@ -49,7 +53,7 @@ countDownDialog::countDownDialog( int timeout, TQWidget *parent, const char *nam
timeOut = timeout;
PROGRESS = new TQTimer(this);
- connect(PROGRESS, TQT_SIGNAL(timeout()), this, TQT_SLOT(updateProgress()));
+ connect(PROGRESS, TQ_SIGNAL(timeout()), this, TQ_SLOT(updateProgress()));
this->setCaption(i18n("TDEPowersave"));
@@ -76,6 +80,8 @@ void countDownDialog::setPixmap( TQString type )
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);
} else if (type.startsWith("freeze")) {
@@ -131,7 +137,7 @@ bool countDownDialog::showDialog() {
}
/*!
- * \b TQT_SLOT to get the event if the 'Cancel' button was pressed.
+ * \b Slot to get the event if the 'Cancel' button was pressed.
*/
void countDownDialog::pB_cancel_pressed() {
kdDebugFuncIn(trace);
@@ -156,7 +162,7 @@ void countDownDialog::reject() {
}
/*!
- * \b TQT_SLOT to handle the change of the progressbar.
+ * \b Slot to handle the change of the progressbar.
*/
void countDownDialog::updateProgress() {
kdDebugFuncIn(trace);