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/kcutlabel.h | |
parent | 2a39a080579fb52a2599c02b2939795385b89093 (diff) | |
download | k3b-d8cc8bdfa7fa624a526d5aa1626974e1444cb799.tar.gz k3b-d8cc8bdfa7fa624a526d5aa1626974e1444cb799.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/kcutlabel.h')
-rw-r--r-- | libk3b/tools/kcutlabel.h | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/libk3b/tools/kcutlabel.h b/libk3b/tools/kcutlabel.h index 6cf459c..5df44b3 100644 --- a/libk3b/tools/kcutlabel.h +++ b/libk3b/tools/kcutlabel.h @@ -17,33 +17,34 @@ #ifndef KCUTLABEL_H #define KCUTLABEL_H -#include <qlabel.h> +#include <tqlabel.h> #include "k3b_export.h" /* - * @ref QLabel + * @ref TQLabel */ -class LIBK3B_EXPORT KCutLabel : public QLabel +class LIBK3B_EXPORT KCutLabel : public TQLabel { Q_OBJECT + TQ_OBJECT public: /** * Default constructor. */ - KCutLabel( QWidget *parent = 0, const char *name = 0); - KCutLabel( const QString &text, QWidget *parent = 0, const char *name = 0 ); + KCutLabel( TQWidget *tqparent = 0, const char *name = 0); + KCutLabel( const TQString &text, TQWidget *tqparent = 0, const char *name = 0 ); - virtual QSize minimumSizeHint() const; + virtual TQSize tqminimumSizeHint() const; /** * \return the full text while text() returns the cut text */ - const QString& fullText() const; + const TQString& fullText() const; public slots: - void setText( const QString & ); + void setText( const TQString & ); /** * \param i the number of characters that have to be visible. Default is 1. @@ -54,14 +55,14 @@ class LIBK3B_EXPORT KCutLabel : public QLabel /** * used when widget is resized */ - void resizeEvent( QResizeEvent * ); + void resizeEvent( TQResizeEvent * ); /** * does the dirty work */ void cutTextToLabel(); private: - QString m_fullText; + TQString m_fullText; int m_minChars; }; |