From d8cc8bdfa7fa624a526d5aa1626974e1444cb799 Mon Sep 17 00:00:00 2001 From: tpearson Date: Fri, 27 May 2011 19:21:21 +0000 Subject: 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 --- libk3b/tools/kcutlabel.h | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'libk3b/tools/kcutlabel.h') 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 +#include #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; }; -- cgit v1.2.3