summaryrefslogtreecommitdiffstats
path: root/kaddressbook/customfieldswidget.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /kaddressbook/customfieldswidget.h
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-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/customfieldswidget.h')
-rw-r--r--kaddressbook/customfieldswidget.h70
1 files changed, 35 insertions, 35 deletions
diff --git a/kaddressbook/customfieldswidget.h b/kaddressbook/customfieldswidget.h
index 6ee10a39a..19e962027 100644
--- a/kaddressbook/customfieldswidget.h
+++ b/kaddressbook/customfieldswidget.h
@@ -28,11 +28,11 @@
#include <kdialogbase.h>
#include <klocale.h>
-#include <qmap.h>
-#include <qpair.h>
-#include <qstringlist.h>
-#include <qvaluevector.h>
-#include <qwidget.h>
+#include <tqmap.h>
+#include <tqpair.h>
+#include <tqstringlist.h>
+#include <tqvaluevector.h>
+#include <tqwidget.h>
#include "contacteditorwidget.h"
@@ -47,39 +47,39 @@ class KComboBox;
class KLineEdit;
typedef struct {
- QString mIdentifier;
- QString mTitle;
+ TQString mIdentifier;
+ TQString mTitle;
bool mGlobal;
- QLabel *mLabel;
- QWidget *mWidget;
- QHBoxLayout *mLayout;
+ TQLabel *mLabel;
+ TQWidget *mWidget;
+ TQHBoxLayout *mLayout;
} FieldRecord;
-typedef QValueList<FieldRecord> FieldRecordList;
+typedef TQValueList<FieldRecord> FieldRecordList;
class AddFieldDialog : public KDialogBase
{
Q_OBJECT
public:
- AddFieldDialog( QWidget *parent, const char *name = 0 );
+ AddFieldDialog( TQWidget *parent, const char *name = 0 );
- QString title() const;
- QString identifier() const;
- QString type() const;
+ TQString title() const;
+ TQString identifier() const;
+ TQString type() const;
bool isGlobal() const;
private slots:
- void nameChanged( const QString& );
+ void nameChanged( const TQString& );
private:
KLineEdit *mTitle;
KComboBox *mType;
- QCheckBox *mGlobal;
+ TQCheckBox *mGlobal;
- QValueVector<QString> mTypeList;
- QValueVector<QString> mTypeName;
+ TQValueVector<TQString> mTypeList;
+ TQValueVector<TQString> mTypeName;
};
class FieldWidget : public QWidget
@@ -87,12 +87,12 @@ class FieldWidget : public QWidget
Q_OBJECT
public:
- FieldWidget( QWidget *parent, const char *name = 0 );
+ FieldWidget( TQWidget *parent, const char *name = 0 );
- void addField( const QString &identifier, const QString &title,
- const QString &type, bool isGlobal );
+ void addField( const TQString &identifier, const TQString &title,
+ const TQString &type, bool isGlobal );
- void removeField( const QString &identifier );
+ void removeField( const TQString &identifier );
void loadContact( KABC::Addressee *addr );
void storeContact( KABC::Addressee *addr );
@@ -109,9 +109,9 @@ class FieldWidget : public QWidget
private:
void recalculateLayout();
- QVBoxLayout *mGlobalLayout;
- QVBoxLayout *mLocalLayout;
- QFrame *mSeparator;
+ TQVBoxLayout *mGlobalLayout;
+ TQVBoxLayout *mLocalLayout;
+ TQFrame *mSeparator;
FieldRecordList mFieldList;
};
@@ -121,7 +121,7 @@ class CustomFieldsWidget : public KAB::ContactEditorWidget
Q_OBJECT
public:
- CustomFieldsWidget( KABC::AddressBook *ab, QWidget *parent, const char *name = 0 );
+ CustomFieldsWidget( KABC::AddressBook *ab, TQWidget *parent, const char *name = 0 );
void loadContact( KABC::Addressee *addr );
void storeContact( KABC::Addressee *addr );
@@ -134,11 +134,11 @@ class CustomFieldsWidget : public KAB::ContactEditorWidget
private:
void initGUI();
- QStringList marshallFields( bool ) const;
+ TQStringList marshallFields( bool ) const;
- QPushButton *mAddButton;
- QPushButton *mRemoveButton;
- QGridLayout *mLayout;
+ TQPushButton *mAddButton;
+ TQPushButton *mRemoveButton;
+ TQGridLayout *mLayout;
FieldWidget *mFieldWidget;
@@ -148,15 +148,15 @@ class CustomFieldsWidget : public KAB::ContactEditorWidget
class CustomFieldsWidgetFactory : public KAB::ContactEditorWidgetFactory
{
public:
- KAB::ContactEditorWidget *createWidget( KABC::AddressBook *ab, QWidget *parent, const char *name )
+ KAB::ContactEditorWidget *createWidget( KABC::AddressBook *ab, TQWidget *parent, const char *name )
{
return new CustomFieldsWidget( ab, parent, name );
}
- QString pageTitle() const { return i18n( "Custom Fields" ); }
- QString pageIdentifier() const { return "custom_fields"; }
+ TQString pageTitle() const { return i18n( "Custom Fields" ); }
+ TQString pageIdentifier() const { return "custom_fields"; }
};
-void splitField( const QString&, QString&, QString&, QString& );
+void splitField( const TQString&, TQString&, TQString&, TQString& );
#endif