diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:52:55 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:52:55 +0000 |
commit | 5f5ee2367157176ed223b86343eb0a9e4022e020 (patch) | |
tree | 6a9c87f14ee38e90eff3c77c784f14e4f38fd5a1 /klaptopdaemon/main.cpp | |
parent | 4facf42feec57b22dcf46badc115ad6c5b5cc512 (diff) | |
download | tdeutils-5f5ee2367157176ed223b86343eb0a9e4022e020.tar.gz tdeutils-5f5ee2367157176ed223b86343eb0a9e4022e020.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1157653 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'klaptopdaemon/main.cpp')
-rw-r--r-- | klaptopdaemon/main.cpp | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/klaptopdaemon/main.cpp b/klaptopdaemon/main.cpp index 9dc0419..ca30218 100644 --- a/klaptopdaemon/main.cpp +++ b/klaptopdaemon/main.cpp @@ -26,7 +26,7 @@ #include <kprocess.h> #include <kconfig.h> #include <kglobal.h> -#include <qlayout.h> +#include <tqlayout.h> #include <unistd.h> #include <fcntl.h> @@ -48,44 +48,44 @@ extern void wake_laptop_daemon(); extern "C" { - KDE_EXPORT KCModule *create_pcmcia(QWidget *parent, const char *) + KDE_EXPORT KCModule *create_pcmcia(TQWidget *parent, const char *) { return new PcmciaConfig(parent, "kcmlaptop"); } - KDE_EXPORT KCModule *create_bwarning(QWidget *parent, const char *) + KDE_EXPORT KCModule *create_bwarning(TQWidget *parent, const char *) { return new WarningConfig(0, parent, "kcmlaptop"); } - KDE_EXPORT KCModule *create_cwarning(QWidget *parent, const char *) + KDE_EXPORT KCModule *create_cwarning(TQWidget *parent, const char *) { return new WarningConfig(1, parent, "kcmlaptop"); } - KDE_EXPORT KCModule *create_battery(QWidget *parent, const char *) + KDE_EXPORT KCModule *create_battery(TQWidget *parent, const char *) { return new BatteryConfig(parent, "kcmlaptop"); } - KDE_EXPORT KCModule *create_power(QWidget *parent, const char *) + KDE_EXPORT KCModule *create_power(TQWidget *parent, const char *) { return new PowerConfig(parent, "kcmlaptop"); } - KDE_EXPORT KCModule *create_acpi(QWidget *parent, const char *) + KDE_EXPORT KCModule *create_acpi(TQWidget *parent, const char *) { return new AcpiConfig(parent, "kcmlaptop"); } - KDE_EXPORT KCModule *create_apm(QWidget *parent, const char *) + KDE_EXPORT KCModule *create_apm(TQWidget *parent, const char *) { return new ApmConfig(parent, "kcmlaptop"); } - KDE_EXPORT KCModule *create_Profile(QWidget *parent, const char *) + KDE_EXPORT KCModule *create_Profile(TQWidget *parent, const char *) { return new ProfileConfig(parent, "kcmlaptop"); } - KDE_EXPORT KCModule *create_sony(QWidget *parent, const char *) + KDE_EXPORT KCModule *create_sony(TQWidget *parent, const char *) { return new SonyConfig(parent, "kcmlaptop"); } - KDE_EXPORT KCModule *create_buttons(QWidget *parent, const char *) + KDE_EXPORT KCModule *create_buttons(TQWidget *parent, const char *) { return new ButtonsConfig(parent, "kcmlaptop"); } @@ -111,7 +111,7 @@ extern "C" wake_laptop_daemon(); } - KDE_EXPORT KCModule *create_laptop(QWidget *parent, const char *) + KDE_EXPORT KCModule *create_laptop(TQWidget *parent, const char *) { return new LaptopModule(parent, "kcmlaptop"); } @@ -124,7 +124,7 @@ extern "C" -LaptopModule::LaptopModule(QWidget *parent, const char *) +LaptopModule::LaptopModule(TQWidget *parent, const char *) : KCModule(parent, "kcmlaptop") { { // export ACPI options @@ -147,58 +147,58 @@ LaptopModule::LaptopModule(QWidget *parent, const char *) enablehibernate = config.readBoolEntry("EnableHibernate", false); laptop_portable::software_suspend_set_mask(enablehibernate); } - QVBoxLayout *layout = new QVBoxLayout(this); - tab = new QTabWidget(this); + TQVBoxLayout *layout = new TQVBoxLayout(this); + tab = new TQTabWidget(this); layout->addWidget(tab); battery = new BatteryConfig(parent, "kcmlaptop"); tab->addTab(battery, i18n("&Battery")); - connect(battery, SIGNAL(changed(bool)), this, SLOT(moduleChanged(bool))); + connect(battery, TQT_SIGNAL(changed(bool)), this, TQT_SLOT(moduleChanged(bool))); power = new PowerConfig(parent, "kcmlaptop"); tab->addTab(power, i18n("&Power Control")); - connect(power, SIGNAL(changed(bool)), this, SLOT(moduleChanged(bool))); + connect(power, TQT_SIGNAL(changed(bool)), this, TQT_SLOT(moduleChanged(bool))); warning = new WarningConfig(0, parent, "kcmlaptop"); tab->addTab(warning, i18n("Low Battery &Warning")); - connect(warning, SIGNAL(changed(bool)), this, SLOT(moduleChanged(bool))); + connect(warning, TQT_SIGNAL(changed(bool)), this, TQT_SLOT(moduleChanged(bool))); critical = new WarningConfig(1, parent, "kcmlaptop"); tab->addTab(critical, i18n("Low Battery &Critical")); - connect(critical, SIGNAL(changed(bool)), this, SLOT(moduleChanged(bool))); + connect(critical, TQT_SIGNAL(changed(bool)), this, TQT_SLOT(moduleChanged(bool))); - QStringList profile_list; + TQStringList profile_list; int current_profile; bool *active_list; bool has_profile = laptop_portable::get_system_performance(0, current_profile, profile_list, active_list); - QStringList throttle_list; + TQStringList throttle_list; int current_throttle; bool has_throttling = laptop_portable::get_system_throttling(0, current_throttle, throttle_list, active_list); if (laptop_portable::has_brightness() || has_profile || has_throttling) { profile = new ProfileConfig(parent, "kcmlaptop"); tab->addTab(profile, i18n("Default Power Profiles")); - connect(profile, SIGNAL(changed(bool)), this, SLOT(moduleChanged(bool))); + connect(profile, TQT_SIGNAL(changed(bool)), this, TQT_SLOT(moduleChanged(bool))); } else { profile = 0; } if (laptop_portable::has_button(laptop_portable::LidButton) || laptop_portable::has_button(laptop_portable::PowerButton)) { buttons = new ButtonsConfig(parent, "kcmlaptop"); tab->addTab(buttons, i18n("Button Actions")); - connect(buttons, SIGNAL(changed(bool)), this, SLOT(moduleChanged(bool))); + connect(buttons, TQT_SIGNAL(changed(bool)), this, TQT_SLOT(moduleChanged(bool))); } else { buttons = 0; } if (laptop_portable::has_acpi()) { acpi = new AcpiConfig(parent, "kcmlaptop"); tab->addTab(acpi, i18n("&ACPI Config")); - connect(acpi, SIGNAL(changed(bool)), this, SLOT(moduleChanged(bool))); + connect(acpi, TQT_SIGNAL(changed(bool)), this, TQT_SLOT(moduleChanged(bool))); } else { acpi = 0; } if (laptop_portable::has_apm()) { apm = new ApmConfig(parent, "kcmlaptop"); tab->addTab(apm, i18n("&APM Config")); - connect(apm, SIGNAL(changed(bool)), this, SLOT(moduleChanged(bool))); + connect(apm, TQT_SIGNAL(changed(bool)), this, TQT_SLOT(moduleChanged(bool))); } else { apm = 0; } @@ -215,7 +215,7 @@ LaptopModule::LaptopModule(QWidget *parent, const char *) if (do_sony) { sony = new SonyConfig(parent, "kcmlaptop"); tab->addTab(sony, i18n("&Sony Laptop Config")); - connect(sony, SIGNAL(changed(bool)), this, SLOT(moduleChanged(bool))); + connect(sony, TQT_SIGNAL(changed(bool)), this, TQT_SLOT(moduleChanged(bool))); } else { sony = 0; } @@ -287,7 +287,7 @@ void LaptopModule::defaults() buttons->defaults(); } -QString LaptopModule::quickHelp() const +TQString LaptopModule::quickHelp() const { return i18n("<h1>Laptop Battery</h1>This module allows you to monitor " "your batteries. To make use of this module, you must have power management software " |