diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /kaddressbook/imagewidget.h | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-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/imagewidget.h')
-rw-r--r-- | kaddressbook/imagewidget.h | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/kaddressbook/imagewidget.h b/kaddressbook/imagewidget.h index 02a3577c1..82c8426f3 100644 --- a/kaddressbook/imagewidget.h +++ b/kaddressbook/imagewidget.h @@ -24,8 +24,8 @@ #ifndef IMAGEWIDGET_H #define IMAGEWIDGET_H -#include <qlabel.h> -#include <qpushbutton.h> +#include <tqlabel.h> +#include <tqpushbutton.h> #include <kabc/picture.h> #include <kdialogbase.h> @@ -40,13 +40,13 @@ class ImageLoader : public QObject Q_OBJECT public: - ImageLoader( QWidget *parent ); + ImageLoader( TQWidget *parent ); KABC::Picture loadPicture( const KURL &url, bool *ok ); private: KABC::Picture mPicture; - QWidget *mParent; + TQWidget *mParent; }; /** @@ -57,7 +57,7 @@ class ImageButton : public QPushButton Q_OBJECT public: - ImageButton( const QString &title, QWidget *parent ); + ImageButton( const TQString &title, TQWidget *parent ); void setReadOnly( bool readOnly ); @@ -71,11 +71,11 @@ class ImageButton : public QPushButton void urlDropped( const KURL& ); protected: - virtual void dragEnterEvent( QDragEnterEvent *event ); - virtual void dropEvent( QDropEvent *event ); - virtual void mouseMoveEvent( QMouseEvent *event ); - virtual void mousePressEvent( QMouseEvent *event ); - virtual void contextMenuEvent( QContextMenuEvent *event ); + virtual void dragEnterEvent( TQDragEnterEvent *event ); + virtual void dropEvent( TQDropEvent *event ); + virtual void mouseMoveEvent( TQMouseEvent *event ); + virtual void mousePressEvent( TQMouseEvent *event ); + virtual void contextMenuEvent( TQContextMenuEvent *event ); private slots: void load(); @@ -86,7 +86,7 @@ class ImageButton : public QPushButton void updateGUI(); bool mReadOnly; - QPoint mDragStartPos; + TQPoint mDragStartPos; KABC::Picture mPicture; ImageLoader *mImageLoader; @@ -98,7 +98,7 @@ class ImageBaseWidget : public QWidget Q_OBJECT public: - ImageBaseWidget( const QString &title, QWidget *parent, const char *name = 0 ); + ImageBaseWidget( const TQString &title, TQWidget *parent, const char *name = 0 ); ~ImageBaseWidget(); /** @@ -126,7 +126,7 @@ class ImageBaseWidget : public QWidget class ImageWidget : public KAB::ContactEditorWidget { public: - ImageWidget( KABC::AddressBook *ab, QWidget *parent, const char *name = 0 ); + ImageWidget( KABC::AddressBook *ab, TQWidget *parent, const char *name = 0 ); void loadContact( KABC::Addressee *addr ); void storeContact( KABC::Addressee *addr ); @@ -142,12 +142,12 @@ class ImageWidget : public KAB::ContactEditorWidget class ImageWidgetFactory : 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 ImageWidget( ab, parent, name ); } - QString pageIdentifier() const { return "misc"; } + TQString pageIdentifier() const { return "misc"; } }; #endif |