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 /kaddressbook/advancedcustomfields.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 'kaddressbook/advancedcustomfields.cpp')
-rw-r--r-- | kaddressbook/advancedcustomfields.cpp | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/kaddressbook/advancedcustomfields.cpp b/kaddressbook/advancedcustomfields.cpp index ad630835f..b1788c509 100644 --- a/kaddressbook/advancedcustomfields.cpp +++ b/kaddressbook/advancedcustomfields.cpp @@ -23,15 +23,15 @@ without including the source code for Qt in the source distribution. */ -#include <qcheckbox.h> -#include <qcombobox.h> -#include <qdatetimeedit.h> -#include <qlayout.h> -#include <qobjectlist.h> -#include <qspinbox.h> -#include <qregexp.h> -#include <qtextedit.h> -#include <qwidgetfactory.h> +#include <tqcheckbox.h> +#include <tqcombobox.h> +#include <tqdatetimeedit.h> +#include <tqlayout.h> +#include <tqobjectlist.h> +#include <tqspinbox.h> +#include <tqregexp.h> +#include <tqtextedit.h> +#include <tqwidgetfactory.h> #include <kdatepicker.h> #include <kdatetimewidget.h> @@ -48,19 +48,19 @@ class KABCStorage : public KPIM::DesignerFields::Storage { public: - KABCStorage( KABC::Addressee *a, const QString &ns ) + KABCStorage( KABC::Addressee *a, const TQString &ns ) : mAddressee( a ), mNs( ns ) { } - QStringList keys() + TQStringList keys() { - QStringList keys; + TQStringList keys; - const QStringList customs = mAddressee->customs(); - QStringList::ConstIterator it; + const TQStringList customs = mAddressee->customs(); + TQStringList::ConstIterator it; for ( it = customs.begin(); it != customs.end(); ++it ) { - QString app, name, value; + TQString app, name, value; splitField( *it, app, name, value ); if ( app == mNs ) keys.append( name ); } @@ -68,24 +68,24 @@ class KABCStorage : public KPIM::DesignerFields::Storage return keys; } - QString read( const QString &key ) + TQString read( const TQString &key ) { return mAddressee->custom( mNs, key ); } - void write( const QString &key, const QString &value ) + void write( const TQString &key, const TQString &value ) { mAddressee->insertCustom( mNs, key, value ); } private: KABC::Addressee *mAddressee; - QString mNs; + TQString mNs; }; -AdvancedCustomFields::AdvancedCustomFields( const QString &uiFile, KABC::AddressBook *ab, - QWidget *parent, const char *name ) +AdvancedCustomFields::AdvancedCustomFields( const TQString &uiFile, KABC::AddressBook *ab, + TQWidget *parent, const char *name ) : KAB::ContactEditorWidget( ab, parent, name ) { initGUI( uiFile ); @@ -93,9 +93,9 @@ AdvancedCustomFields::AdvancedCustomFields( const QString &uiFile, KABC::Address void AdvancedCustomFields::loadContact( KABC::Addressee *addr ) { - QString ns; + TQString ns; if ( mFields->identifier().upper() == "KADDRESSBOOK" || - QRegExp( "^Form\\d\\d?$" ).search( mFields->identifier() ) >= 0 ) { + TQRegExp( "^Form\\d\\d?$" ).search( mFields->identifier() ) >= 0 ) { ns = "KADDRESSBOOK"; } else { ns = mFields->identifier(); @@ -107,9 +107,9 @@ void AdvancedCustomFields::loadContact( KABC::Addressee *addr ) void AdvancedCustomFields::storeContact( KABC::Addressee *addr ) { - QString ns; + TQString ns; if ( mFields->identifier().upper() == "KADDRESSBOOK" || - QRegExp( "^Form\\d\\d?$" ).search( mFields->identifier() ) >= 0 ) { + TQRegExp( "^Form\\d\\d?$" ).search( mFields->identifier() ) >= 0 ) { ns = "KADDRESSBOOK"; } else { ns = mFields->identifier(); @@ -124,23 +124,23 @@ void AdvancedCustomFields::setReadOnly( bool readOnly ) mFields->setReadOnly( readOnly ); } -void AdvancedCustomFields::initGUI( const QString &uiFile ) +void AdvancedCustomFields::initGUI( const TQString &uiFile ) { - QVBoxLayout *layout = new QVBoxLayout( this, KDialog::marginHint(), + TQVBoxLayout *layout = new TQVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() ); mFields = new KPIM::DesignerFields( uiFile, this ); layout->addWidget( mFields ); - connect( mFields, SIGNAL( modified() ), SLOT( setModified() ) ); + connect( mFields, TQT_SIGNAL( modified() ), TQT_SLOT( setModified() ) ); } -QString AdvancedCustomFields::pageIdentifier() const +TQString AdvancedCustomFields::pageIdentifier() const { return mFields->identifier(); } -QString AdvancedCustomFields::pageTitle() const +TQString AdvancedCustomFields::pageTitle() const { return mFields->title(); } |