summaryrefslogtreecommitdiffstats
path: root/kaddressbook/imagewidget.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
commit67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch)
tree5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /kaddressbook/imagewidget.h
parent2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff)
downloadtdepim-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/imagewidget.h')
-rw-r--r--kaddressbook/imagewidget.h25
1 files changed, 14 insertions, 11 deletions
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"; }