summaryrefslogtreecommitdiffstats
path: root/kmilo/thinkpad
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:52:55 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:52:55 +0000
commit5f5ee2367157176ed223b86343eb0a9e4022e020 (patch)
tree6a9c87f14ee38e90eff3c77c784f14e4f38fd5a1 /kmilo/thinkpad
parent4facf42feec57b22dcf46badc115ad6c5b5cc512 (diff)
downloadtdeutils-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 'kmilo/thinkpad')
-rw-r--r--kmilo/thinkpad/kcmthinkpad/main.cpp26
-rw-r--r--kmilo/thinkpad/kcmthinkpad/main.h4
-rw-r--r--kmilo/thinkpad/thinkpad.cpp8
-rw-r--r--kmilo/thinkpad/thinkpad.h18
4 files changed, 28 insertions, 28 deletions
diff --git a/kmilo/thinkpad/kcmthinkpad/main.cpp b/kmilo/thinkpad/kcmthinkpad/main.cpp
index 1b8b4bd..b98dc28 100644
--- a/kmilo/thinkpad/kcmthinkpad/main.cpp
+++ b/kmilo/thinkpad/kcmthinkpad/main.cpp
@@ -22,12 +22,12 @@
*
*/
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qcheckbox.h>
-#include <qspinbox.h>
-#include <qfile.h>
-#include <qbuttongroup.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqcheckbox.h>
+#include <tqspinbox.h>
+#include <tqfile.h>
+#include <tqbuttongroup.h>
#include <dcopclient.h>
#include <kgenericfactory.h>
@@ -49,12 +49,12 @@
#include "main.h"
#include "main.moc"
-typedef KGenericFactory<KCMThinkpadModule, QWidget> KCMThinkpadModuleFactory;
+typedef KGenericFactory<KCMThinkpadModule, TQWidget> KCMThinkpadModuleFactory;
K_EXPORT_COMPONENT_FACTORY( kcm_thinkpad, KCMThinkpadModuleFactory("kcmthinkpad"))
#define CONFIG_FILE "kmilodrc"
-KCMThinkpadModule::KCMThinkpadModule(QWidget* parent, const char* name, const QStringList&)
+KCMThinkpadModule::KCMThinkpadModule(TQWidget* parent, const char* name, const TQStringList&)
: KCModule(KCMThinkpadModuleFactory::instance(), parent, name) {
KAboutData* about =
new KAboutData(I18N_NOOP("kcmthinkpad"),
@@ -68,7 +68,7 @@ KCMThinkpadModule::KCMThinkpadModule(QWidget* parent, const char* name, const QS
"jr@jriddell.org");
setAboutData( about );
- QVBoxLayout* layout = new QVBoxLayout(this);
+ TQVBoxLayout* layout = new TQVBoxLayout(this);
m_KCMThinkpadGeneral = new KCMThinkpadGeneral(this);
layout->addWidget( m_KCMThinkpadGeneral );
layout->addStretch();
@@ -97,7 +97,7 @@ KCMThinkpadModule::KCMThinkpadModule(QWidget* parent, const char* name, const QS
"R30/R31 models, or using a custom volume "
"change step is disabled."));
#else
- QFile nvramFile(m_nvramFile);
+ TQFile nvramFile(m_nvramFile);
if ( nvramFile.open(IO_ReadOnly) ) {
m_nvramReadable = true;
nvramFile.close();
@@ -122,7 +122,7 @@ KCMThinkpadModule::KCMThinkpadModule(QWidget* parent, const char* name, const QS
m_KCMThinkpadGeneral->tlOff->setText(i18n("Thinkpad Buttons KMilo Plugin Ready For Configuration"));
}
- connect( m_KCMThinkpadGeneral, SIGNAL(changed()), SLOT(changed()));
+ connect( m_KCMThinkpadGeneral, TQT_SIGNAL(changed()), TQT_SLOT(changed()));
}
@@ -146,8 +146,8 @@ void KCMThinkpadModule::save() {
config.sync();
if (client.attach()) {
- QByteArray data, replyData;
- QCString replyType;
+ TQByteArray data, replyData;
+ TQCString replyType;
if (!client.call("kded", "kmilod", "reconfigure()", data, replyType, replyData)) {
kdDebug() << "KCMThinkpad::showTextMsg: "
diff --git a/kmilo/thinkpad/kcmthinkpad/main.h b/kmilo/thinkpad/kcmthinkpad/main.h
index 53534ed..1fdedb5 100644
--- a/kmilo/thinkpad/kcmthinkpad/main.h
+++ b/kmilo/thinkpad/kcmthinkpad/main.h
@@ -33,7 +33,7 @@ class KCMThinkpadModule : public KCModule {
Q_OBJECT
public:
- KCMThinkpadModule(QWidget* parent, const char* name, const QStringList&);
+ KCMThinkpadModule(TQWidget* parent, const char* name, const TQStringList&);
void save();
void load();
@@ -41,7 +41,7 @@ class KCMThinkpadModule : public KCModule {
void defaults();
private:
KCMThinkpadGeneral* m_KCMThinkpadGeneral;
- QString m_nvramFile;
+ TQString m_nvramFile;
bool m_nvramReadable;
bool m_nvramWriteable;
};
diff --git a/kmilo/thinkpad/thinkpad.cpp b/kmilo/thinkpad/thinkpad.cpp
index 74770cf..034c6bd 100644
--- a/kmilo/thinkpad/thinkpad.cpp
+++ b/kmilo/thinkpad/thinkpad.cpp
@@ -43,7 +43,7 @@
namespace KMilo {
-ThinkPadMonitor::ThinkPadMonitor(QObject* parent, const char* name, const QStringList& args): Monitor(parent, name, args) {
+ThinkPadMonitor::ThinkPadMonitor(TQObject* parent, const char* name, const TQStringList& args): Monitor(parent, name, args) {
m_progress = 0;
m_volume = 50; //set in retrieveVolume()
}
@@ -265,7 +265,7 @@ int ThinkPadMonitor::progress() const {
return m_progress;
}
-QString ThinkPadMonitor::message() const {
+TQString ThinkPadMonitor::message() const {
//unused
//return i18n("yer maw!");
return "";
@@ -426,8 +426,8 @@ void ThinkPadMonitor::clearStruct(thinkpad_state_struct& thinkpad_state) {
thinkpad_state.bluetooth_toggle = 0;
}
-void ThinkPadMonitor::showToggleMessage(QString onMessage, QString offMessage, bool state) {
- QString message;
+void ThinkPadMonitor::showToggleMessage(TQString onMessage, TQString offMessage, bool state) {
+ TQString message;
if (state) {
message = onMessage;
} else {
diff --git a/kmilo/thinkpad/thinkpad.h b/kmilo/thinkpad/thinkpad.h
index f195b2e..dc843ca 100644
--- a/kmilo/thinkpad/thinkpad.h
+++ b/kmilo/thinkpad/thinkpad.h
@@ -83,7 +83,7 @@ typedef struct {
*/
class ThinkPadMonitor : public Monitor {
public:
- ThinkPadMonitor(QObject *parent, const char *name, const QStringList&);
+ ThinkPadMonitor(TQObject *parent, const char *name, const TQStringList&);
virtual ~ThinkPadMonitor();
/**
@@ -109,7 +109,7 @@ class ThinkPadMonitor : public Monitor {
* Reimplemented from KMilo::Monitor.
* Not used, we just set the message ourselves using _interface->displayText()
*/
- virtual QString message() const;
+ virtual TQString message() const;
protected:
/**
* Reimplemented from KMilo::Monitor.
@@ -136,7 +136,7 @@ class ThinkPadMonitor : public Monitor {
* Displays paramater message followed by 'on' or
* 'off' depending on state
*/
- void showToggleMessage(QString onMessage, QString offMessage, bool state);
+ void showToggleMessage(TQString onMessage, TQString offMessage, bool state);
/**
* Returned by progress()
@@ -146,7 +146,7 @@ class ThinkPadMonitor : public Monitor {
/**
* The file to read data from, default is /dev/nvram
*/
- QString m_nvramFile;
+ TQString m_nvramFile;
/**
* Some thinkpads change volume in hardware, others we
@@ -168,27 +168,27 @@ class ThinkPadMonitor : public Monitor {
/**
* Thinkpad button
*/
- QString m_buttonThinkpad;
+ TQString m_buttonThinkpad;
/**
* Home button
*/
- QString m_buttonHome;
+ TQString m_buttonHome;
/**
* Search button
*/
- QString m_buttonSearch;
+ TQString m_buttonSearch;
/**
* Mail button
*/
- QString m_buttonMail;
+ TQString m_buttonMail;
/**
* Zoom button
*/
- QString m_buttonZoom;
+ TQString m_buttonZoom;
/**
* Used for changing the volume if m_softwareVolume is true