summaryrefslogtreecommitdiffstats
path: root/klaptopdaemon/apm.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
commit625904bd3097f9749450428904ca14ff2531824d (patch)
treea45c43d5de71cb720078fa1272a4339815a919be /klaptopdaemon/apm.cpp
parent6335dc55802871b5a43492f217b6edbb420204c4 (diff)
downloadtdeutils-625904bd3097f9749450428904ca14ff2531824d.tar.gz
tdeutils-625904bd3097f9749450428904ca14ff2531824d.zip
rename the following methods:
tqparent parent tqmask mask git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'klaptopdaemon/apm.cpp')
-rw-r--r--klaptopdaemon/apm.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/klaptopdaemon/apm.cpp b/klaptopdaemon/apm.cpp
index 228683f..e92dfc4 100644
--- a/klaptopdaemon/apm.cpp
+++ b/klaptopdaemon/apm.cpp
@@ -51,8 +51,8 @@
#include <tqtooltip.h>
extern void wake_laptop_daemon();
-ApmConfig::ApmConfig (TQWidget * tqparent, const char *name)
- : KCModule(tqparent, name)
+ApmConfig::ApmConfig (TQWidget * parent, const char *name)
+ : KCModule(parent, name)
{
KGlobal::locale()->insertCatalogue("klaptopdaemon"); // For translation of klaptopdaemon messages
@@ -173,7 +173,7 @@ void ApmConfig::setupHelper()
KMessageBox::sorry(0, i18n("%1 cannot be enabled because kdesu cannot be found. Please make sure that it is installed correctly.").tqarg(TQString(apm_name)),
i18n("KLaptopDaemon"));
}
- laptop_portable::apm_set_tqmask(enablestandby, enablesuspend);
+ laptop_portable::apm_set_mask(enablestandby, enablesuspend);
bool can_enable = laptop_portable::has_apm(1); // is helper ready
enableStandby->setEnabled(can_enable);
enableSuspend->setEnabled(can_enable);
@@ -207,7 +207,7 @@ void ApmConfig::setupHelper2() // we use the acpi helper to do software suspend
KMessageBox::sorry(0, i18n("The Software Suspend helper cannot be enabled because kdesu cannot be found. Please make sure that it is installed correctly."),
i18n("KLaptopDaemon"));
}
- laptop_portable::software_suspend_set_tqmask(enablesoftwaresuspend);
+ laptop_portable::software_suspend_set_mask(enablesoftwaresuspend);
bool can_enable = laptop_portable::has_software_suspend(2); // is helper ready
enableSoftwareSuspendHibernate->setEnabled(can_enable);
wake_laptop_daemon();
@@ -218,9 +218,9 @@ void ApmConfig::save()
{
enablestandby = enableStandby->isChecked();
enablesuspend = enableSuspend->isChecked();
- laptop_portable::apm_set_tqmask(enablestandby, enablesuspend);
+ laptop_portable::apm_set_mask(enablestandby, enablesuspend);
enablesoftwaresuspend = (enableSoftwareSuspendHibernate ? enableSoftwareSuspendHibernate->isChecked():0);
- laptop_portable::software_suspend_set_tqmask(enablesoftwaresuspend);
+ laptop_portable::software_suspend_set_mask(enablesoftwaresuspend);
config->setGroup("ApmDefault");