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 /kitchensync/src/memberconfig.cpp | |
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 'kitchensync/src/memberconfig.cpp')
-rw-r--r-- | kitchensync/src/memberconfig.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/kitchensync/src/memberconfig.cpp b/kitchensync/src/memberconfig.cpp index 932830cd8..37755a504 100644 --- a/kitchensync/src/memberconfig.cpp +++ b/kitchensync/src/memberconfig.cpp @@ -26,14 +26,14 @@ #include <klocale.h> #include <kmessagebox.h> -#include <qlabel.h> -#include <qlayout.h> -#include <qtabwidget.h> +#include <tqlabel.h> +#include <tqlayout.h> +#include <tqtabwidget.h> -MemberConfig::MemberConfig( QWidget *parent, const QSync::Member &member ) - : QWidget( parent ), mMember( member ) +MemberConfig::MemberConfig( TQWidget *parent, const QSync::Member &member ) + : TQWidget( parent ), mMember( member ) { - QBoxLayout *topLayout = new QVBoxLayout( this ); + TQBoxLayout *topLayout = new TQVBoxLayout( this ); mGui = ConfigGui::Factory::create( member, this ); topLayout->addWidget( mGui ); @@ -45,7 +45,7 @@ MemberConfig::~MemberConfig() void MemberConfig::loadData() { - QByteArray cfg; + TQByteArray cfg; QSync::Result error = mMember.configuration( cfg ); if ( error ) { @@ -53,7 +53,7 @@ void MemberConfig::loadData() i18n("Unable to read config from plugin '%1':\n%2") .arg( mMember.pluginName() ).arg( error.message() ) ); } else { - QString txt = QString::fromUtf8( cfg.data(), cfg.size() ); + TQString txt = TQString::fromUtf8( cfg.data(), cfg.size() ); mGui->load( txt ); MemberInfo mi( mMember ); mGui->setInstanceName( mi.name() ); @@ -62,12 +62,12 @@ void MemberConfig::loadData() void MemberConfig::saveData() { - QString txt = mGui->save(); + TQString txt = mGui->save(); if ( txt.isEmpty() ) { KMessageBox::sorry( this, i18n("Configuration of %1 is empty.").arg( mMember.pluginName() ) ); } else { - QByteArray cfg = txt.utf8(); + TQByteArray cfg = txt.utf8(); cfg.truncate(cfg.size() - 1); /* discard NUL terminator */ mMember.setConfiguration( cfg ); mMember.setName( mGui->instanceName() ); |