summaryrefslogtreecommitdiffstats
path: root/kaddressbook/advancedcustomfields.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kaddressbook/advancedcustomfields.cpp')
-rw-r--r--kaddressbook/advancedcustomfields.cpp58
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();
}