From 67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 13 Apr 2011 00:46:47 +0000 Subject: 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 --- kaddressbook/customfieldswidget.h | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'kaddressbook/customfieldswidget.h') 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 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 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" ); } -- cgit v1.2.1