diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /kpilot/conduits/sysinfoconduit/sysinfo-setup.cc | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kpilot/conduits/sysinfoconduit/sysinfo-setup.cc')
-rw-r--r-- | kpilot/conduits/sysinfoconduit/sysinfo-setup.cc | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/kpilot/conduits/sysinfoconduit/sysinfo-setup.cc b/kpilot/conduits/sysinfoconduit/sysinfo-setup.cc index ed7419ab3..271db659b 100644 --- a/kpilot/conduits/sysinfoconduit/sysinfo-setup.cc +++ b/kpilot/conduits/sysinfoconduit/sysinfo-setup.cc @@ -28,11 +28,11 @@ #include "options.h" -#include <qtabwidget.h> -#include <qradiobutton.h> -#include <qcheckbox.h> -#include <qbuttongroup.h> -#include <qlistview.h> +#include <tqtabwidget.h> +#include <tqradiobutton.h> +#include <tqcheckbox.h> +#include <tqbuttongroup.h> +#include <tqlistview.h> #include <kaboutdata.h> #include <kapplication.h> @@ -81,11 +81,11 @@ const sysinfoEntry_t sysinfoEntries[] = /* ** This is a convenience define to update an item's "original setting". */ -#define updateSetting(i) { QCheckListItem *ubbu=(i); \ - ubbu->setText(PART_SETTING,(ubbu->isOn() ? CSL1("1") : QString::null)); } +#define updateSetting(i) { TQCheckListItem *ubbu=(i); \ + ubbu->setText(PART_SETTING,(ubbu->isOn() ? CSL1("1") : TQString::null)); } -SysInfoWidgetConfig::SysInfoWidgetConfig(QWidget *w, const char *n) : +SysInfoWidgetConfig::SysInfoWidgetConfig(TQWidget *w, const char *n) : ConduitConfigBase(w,n), fConfigWidget(new SysInfoWidget(w)) { @@ -103,12 +103,12 @@ SysInfoWidgetConfig::SysInfoWidgetConfig(QWidget *w, const char *n) : ConduitConfigBase::addAboutPage(fConfigWidget->tabWidget,fAbout); fWidget=fConfigWidget; - QObject::connect(fConfigWidget->fOutputFile,SIGNAL(textChanged(const QString&)), - this,SLOT(modified())); - QObject::connect(fConfigWidget->fTemplateFile,SIGNAL(textChanged(const QString&)), - this,SLOT(modified())); - QObject::connect(fConfigWidget->fOutputType,SIGNAL(clicked(int)), - this,SLOT(modified())); + TQObject::connect(fConfigWidget->fOutputFile,TQT_SIGNAL(textChanged(const TQString&)), + this,TQT_SLOT(modified())); + TQObject::connect(fConfigWidget->fTemplateFile,TQT_SIGNAL(textChanged(const TQString&)), + this,TQT_SLOT(modified())); + TQObject::connect(fConfigWidget->fOutputType,TQT_SIGNAL(clicked(int)), + this,TQT_SLOT(modified())); fConduitName=i18n("System Information"); } @@ -123,8 +123,8 @@ void SysInfoWidgetConfig::commit() SysinfoSettings::setOutputFormat( fConfigWidget->fOutputType->id(fConfigWidget->fOutputType->selected())); - QListViewItem *i = fConfigWidget->fPartsList->firstChild(); - QCheckListItem *ci = dynamic_cast<QCheckListItem *>(i); + TQListViewItem *i = fConfigWidget->fPartsList->firstChild(); + TQCheckListItem *ci = dynamic_cast<TQCheckListItem *>(i); while(ci) { #ifdef DEBUG @@ -139,7 +139,7 @@ void SysInfoWidgetConfig::commit() } updateSetting(ci); i=i->nextSibling(); - ci = dynamic_cast<QCheckListItem *>(i); + ci = dynamic_cast<TQCheckListItem *>(i); } SysinfoSettings::self()->writeConfig(); unmodified(); @@ -151,13 +151,13 @@ void SysInfoWidgetConfig::load() SysinfoSettings::self()->readConfig(); const sysinfoEntry_t *p = sysinfoEntries; - QCheckListItem *i = 0L; + TQCheckListItem *i = 0L; while (p && p->name) { - i = new QCheckListItem(fConfigWidget->fPartsList,i18n(p->name),QCheckListItem::CheckBox); + i = new TQCheckListItem(fConfigWidget->fPartsList,i18n(p->name),TQCheckListItem::CheckBox); // by default let the sysinfo conduit write out all available information i->setOn( p->accessor() ); - i->setText(PART_KEY, QString::number(p-sysinfoEntries)); // store index there + i->setText(PART_KEY, TQString::number(p-sysinfoEntries)); // store index there updateSetting(i); #ifdef DEBUG DEBUGKPILOT << fname << ": Loaded " << p->name @@ -177,8 +177,8 @@ void SysInfoWidgetConfig::load() FUNCTIONSETUP; if (fModified) return true; - QListViewItem *i = fConfigWidget->fPartsList->firstChild(); - QCheckListItem *ci = dynamic_cast<QCheckListItem *>(i); + TQListViewItem *i = fConfigWidget->fPartsList->firstChild(); + TQCheckListItem *ci = dynamic_cast<TQCheckListItem *>(i); while(ci) { @@ -192,7 +192,7 @@ void SysInfoWidgetConfig::load() if (current!=original) return true; i=i->nextSibling(); - ci = dynamic_cast<QCheckListItem *>(i); + ci = dynamic_cast<TQCheckListItem *>(i); } return false; } |