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 /kmilo/thinkpad/kcmthinkpad | |
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 'kmilo/thinkpad/kcmthinkpad')
-rw-r--r-- | kmilo/thinkpad/kcmthinkpad/main.cpp | 26 | ||||
-rw-r--r-- | kmilo/thinkpad/kcmthinkpad/main.h | 4 |
2 files changed, 15 insertions, 15 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; }; |