diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-13 00:46:47 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-13 00:46:47 +0000 |
commit | 67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch) | |
tree | 5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /kaddressbook/customfieldswidget.h | |
parent | 2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff) | |
download | tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip |
Initial conversion of kdepim to TQt
This will probably require some tweaking before it will build under Qt4,
however Qt3 builds are OK. Any alterations this commit makes to kdepim
behaviour under Qt3 are unintentional and should be fixed.
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kaddressbook/customfieldswidget.h')
-rw-r--r-- | kaddressbook/customfieldswidget.h | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/kaddressbook/customfieldswidget.h b/kaddressbook/customfieldswidget.h index b4c113264..c1dc6b8c8 100644 --- a/kaddressbook/customfieldswidget.h +++ b/kaddressbook/customfieldswidget.h @@ -17,8 +17,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. As a special exception, permission is given to link this program - with any edition of Qt, and distribute the resulting executable, - without including the source code for Qt in the source distribution. + with any edition of TQt, and distribute the resulting executable, + without including the source code for TQt in the source distribution. */ #ifndef CUSTOMFIELDSWIDGET_H @@ -61,9 +61,10 @@ typedef TQValueList<FieldRecord> FieldRecordList; class AddFieldDialog : public KDialogBase { Q_OBJECT + TQ_OBJECT public: - AddFieldDialog( TQWidget *parent, const char *name = 0 ); + AddFieldDialog( TQWidget *tqparent, const char *name = 0 ); TQString title() const; TQString identifier() const; @@ -82,12 +83,13 @@ class AddFieldDialog : public KDialogBase TQValueVector<TQString> mTypeName; }; -class FieldWidget : public QWidget +class FieldWidget : public TQWidget { Q_OBJECT + TQ_OBJECT public: - FieldWidget( TQWidget *parent, const char *name = 0 ); + FieldWidget( TQWidget *tqparent, const char *name = 0 ); void addField( const TQString &identifier, const TQString &title, const TQString &type, bool isGlobal ); @@ -119,9 +121,10 @@ class FieldWidget : public QWidget class CustomFieldsWidget : public KAB::ContactEditorWidget { Q_OBJECT + TQ_OBJECT public: - CustomFieldsWidget( KABC::AddressBook *ab, TQWidget *parent, const char *name = 0 ); + CustomFieldsWidget( KABC::AddressBook *ab, TQWidget *tqparent, const char *name = 0 ); void loadContact( KABC::Addressee *addr ); void storeContact( KABC::Addressee *addr ); @@ -148,9 +151,9 @@ class CustomFieldsWidget : public KAB::ContactEditorWidget class CustomFieldsWidgetFactory : public KAB::ContactEditorWidgetFactory { public: - KAB::ContactEditorWidget *createWidget( KABC::AddressBook *ab, TQWidget *parent, const char *name ) + KAB::ContactEditorWidget *createWidget( KABC::AddressBook *ab, TQWidget *tqparent, const char *name ) { - return new CustomFieldsWidget( ab, parent, name ); + return new CustomFieldsWidget( ab, tqparent, name ); } TQString pageTitle() const { return i18n( "Custom Fields" ); } |