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/imagewidget.h | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) (limited to 'kaddressbook/imagewidget.h') diff --git a/kaddressbook/imagewidget.h b/kaddressbook/imagewidget.h index 82c8426f3..52b9c9c6c 100644 --- a/kaddressbook/imagewidget.h +++ b/kaddressbook/imagewidget.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 IMAGEWIDGET_H @@ -35,12 +35,13 @@ /** Small helper class */ -class ImageLoader : public QObject +class ImageLoader : public TQObject { Q_OBJECT + TQ_OBJECT public: - ImageLoader( TQWidget *parent ); + ImageLoader( TQWidget *tqparent ); KABC::Picture loadPicture( const KURL &url, bool *ok ); @@ -52,12 +53,13 @@ class ImageLoader : public QObject /** Small helper class */ -class ImageButton : public QPushButton +class ImageButton : public TQPushButton { Q_OBJECT + TQ_OBJECT public: - ImageButton( const TQString &title, TQWidget *parent ); + ImageButton( const TQString &title, TQWidget *tqparent ); void setReadOnly( bool readOnly ); @@ -93,12 +95,13 @@ class ImageButton : public QPushButton }; -class ImageBaseWidget : public QWidget +class ImageBaseWidget : public TQWidget { Q_OBJECT + TQ_OBJECT public: - ImageBaseWidget( const TQString &title, TQWidget *parent, const char *name = 0 ); + ImageBaseWidget( const TQString &title, TQWidget *tqparent, const char *name = 0 ); ~ImageBaseWidget(); /** @@ -126,7 +129,7 @@ class ImageBaseWidget : public QWidget class ImageWidget : public KAB::ContactEditorWidget { public: - ImageWidget( KABC::AddressBook *ab, TQWidget *parent, const char *name = 0 ); + ImageWidget( KABC::AddressBook *ab, TQWidget *tqparent, const char *name = 0 ); void loadContact( KABC::Addressee *addr ); void storeContact( KABC::Addressee *addr ); @@ -142,9 +145,9 @@ class ImageWidget : public KAB::ContactEditorWidget class ImageWidgetFactory : 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 ImageWidget( ab, parent, name ); + return new ImageWidget( ab, tqparent, name ); } TQString pageIdentifier() const { return "misc"; } -- cgit v1.2.1