diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-27 19:21:21 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-27 19:21:21 +0000 |
commit | d8cc8bdfa7fa624a526d5aa1626974e1444cb799 (patch) | |
tree | f295f1c545b319963d5357af79fe08991d8141d9 /libk3b/tools/k3brichtextlabel.h | |
parent | 2a39a080579fb52a2599c02b2939795385b89093 (diff) | |
download | k3b-d8cc8bdf.tar.gz k3b-d8cc8bdf.zip |
TQt4 port k3b
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/k3b@1233803 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libk3b/tools/k3brichtextlabel.h')
-rw-r--r-- | libk3b/tools/k3brichtextlabel.h | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/libk3b/tools/k3brichtextlabel.h b/libk3b/tools/k3brichtextlabel.h index 0a25395..3f1c407 100644 --- a/libk3b/tools/k3brichtextlabel.h +++ b/libk3b/tools/k3brichtextlabel.h @@ -16,38 +16,39 @@ #ifndef K3BRICHTEXTLABEL_H #define K3BRICHTEXTLABEL_H -#include <qlabel.h> +#include <tqlabel.h> #include <k3b_export.h> /** - * @short A replacement for QLabel that supports richtext and proper layout management + * @short A replacement for TQLabel that supports richtext and proper tqlayout management * * @author Waldo Bastian <bastian@kde.org> */ /* - * QLabel + * TQLabel */ -class LIBK3B_EXPORT K3bRichTextLabel : public QLabel { +class LIBK3B_EXPORT K3bRichTextLabel : public TQLabel { Q_OBJECT + TQ_OBJECT public: /** * Default constructor. */ - K3bRichTextLabel( QWidget *parent, const char *name = 0 ); - K3bRichTextLabel( const QString &text, QWidget *parent, const char *name = 0 ); + K3bRichTextLabel( TQWidget *tqparent, const char *name = 0 ); + K3bRichTextLabel( const TQString &text, TQWidget *tqparent, const char *name = 0 ); int defaultWidth() const { return m_defaultWidth; } void setDefaultWidth(int defaultWidth); - virtual QSize minimumSizeHint() const; - virtual QSize sizeHint() const; - QSizePolicy sizePolicy() const; + virtual TQSize tqminimumSizeHint() const; + virtual TQSize tqsizeHint() const; + TQSizePolicy sizePolicy() const; public slots: - void setText( const QString & ); + void setText( const TQString & ); protected: int m_defaultWidth; |