summaryrefslogtreecommitdiffstats
path: root/kolourpaint/widgets/kpsqueezedtextlabel.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-02 19:23:46 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-02 19:23:46 +0000
commiteba47f8f0637f451e21348187591e1f1fd58ac74 (patch)
tree448f10b95c656604acc331a3236c1e59bde5c1ad /kolourpaint/widgets/kpsqueezedtextlabel.cpp
parentc7e8736c69373f48b0401319757c742e8607431a (diff)
downloadtdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.tar.gz
tdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.zip
TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kolourpaint/widgets/kpsqueezedtextlabel.cpp')
-rw-r--r--kolourpaint/widgets/kpsqueezedtextlabel.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/kolourpaint/widgets/kpsqueezedtextlabel.cpp b/kolourpaint/widgets/kpsqueezedtextlabel.cpp
index 53fd85c9..613c93a9 100644
--- a/kolourpaint/widgets/kpsqueezedtextlabel.cpp
+++ b/kolourpaint/widgets/kpsqueezedtextlabel.cpp
@@ -30,22 +30,22 @@
#include <kpsqueezedtextlabel.h>
-#include <qfont.h>
-#include <qfontmetrics.h>
-#include <qstring.h>
+#include <tqfont.h>
+#include <tqfontmetrics.h>
+#include <tqstring.h>
#include <kdebug.h>
#include <klocale.h>
-kpSqueezedTextLabel::kpSqueezedTextLabel (QWidget *parent, const char *name)
- : QLabel (parent, name),
+kpSqueezedTextLabel::kpSqueezedTextLabel (TQWidget *parent, const char *name)
+ : TQLabel (parent, name),
m_showEllipsis (true)
{
}
-kpSqueezedTextLabel::kpSqueezedTextLabel (const QString &text, QWidget *parent, const char *name)
- : QLabel (parent, name),
+kpSqueezedTextLabel::kpSqueezedTextLabel (const TQString &text, TQWidget *parent, const char *name)
+ : TQLabel (parent, name),
m_showEllipsis (true)
{
setText (text);
@@ -53,18 +53,18 @@ kpSqueezedTextLabel::kpSqueezedTextLabel (const QString &text, QWidget *parent,
// public virtual
-QSize kpSqueezedTextLabel::minimumSizeHint () const
+TQSize kpSqueezedTextLabel::minimumSizeHint () const
{
#if DEBUG_KP_SQUEEZED_TEXT_LABEL && 1
kdDebug () << "kpSqueezedTextLabel::minimumSizeHint() qLabel prefers"
- << QLabel::minimumSizeHint () << endl;
+ << TQLabel::minimumSizeHint () << endl;
#endif
- return QSize (-1/*no minimum width*/, QLabel::minimumHeight ());
+ return TQSize (-1/*no minimum width*/, TQLabel::minimumHeight ());
}
// public
-QString kpSqueezedTextLabel::fullText () const
+TQString kpSqueezedTextLabel::fullText () const
{
return m_fullText;
}
@@ -89,7 +89,7 @@ void kpSqueezedTextLabel::setShowEllipsis (bool yes)
// public slots virtual [base QLabel]
-void kpSqueezedTextLabel::setText (const QString &text)
+void kpSqueezedTextLabel::setText (const TQString &text)
{
m_fullText = text;
squeezeText ();
@@ -97,7 +97,7 @@ void kpSqueezedTextLabel::setText (const QString &text)
// protected virtual [base QWidget]
-void kpSqueezedTextLabel::resizeEvent (QResizeEvent *e)
+void kpSqueezedTextLabel::resizeEvent (TQResizeEvent *e)
{
#if DEBUG_KP_SQUEEZED_TEXT_LABEL && 1
kdDebug () << "kpSqueezedTextLabeL::resizeEvent() size=" << e->size ()
@@ -109,9 +109,9 @@ void kpSqueezedTextLabel::resizeEvent (QResizeEvent *e)
// protected
-QString kpSqueezedTextLabel::ellipsisText () const
+TQString kpSqueezedTextLabel::ellipsisText () const
{
- return m_showEllipsis ? i18n ("...") : QString::null;
+ return m_showEllipsis ? i18n ("...") : TQString::null;
}
// protected
@@ -121,7 +121,7 @@ void kpSqueezedTextLabel::squeezeText ()
kdDebug () << "kpSqueezedTextLabeL::squeezeText" << endl;
#endif
- QFontMetrics fontMetrics (font ());
+ TQFontMetrics fontMetrics (font ());
int fullTextWidth = fontMetrics.width (m_fullText);
#if DEBUG_KP_SQUEEZED_TEXT_LABEL && 1
kdDebug () << "\tfullText=" << m_fullText
@@ -135,7 +135,7 @@ void kpSqueezedTextLabel::squeezeText ()
#if DEBUG_KP_SQUEEZED_TEXT_LABEL && 1
kdDebug () << "\tfullText will fit - display" << endl;
#endif
- QLabel::setText (m_fullText);
+ TQLabel::setText (m_fullText);
}
else
{
@@ -151,7 +151,7 @@ void kpSqueezedTextLabel::squeezeText ()
#if DEBUG_KP_SQUEEZED_TEXT_LABEL && 1
kdDebug () << "\t\t\tcan't even fit \"...\" - forget it" << endl;
#endif
- QLabel::setText (QString::null);
+ TQLabel::setText (TQString::null);
return;
}
@@ -208,7 +208,7 @@ void kpSqueezedTextLabel::squeezeText ()
}
}
- QLabel::setText (m_fullText.left (numLettersToUse) + ellipsisText ());
+ TQLabel::setText (m_fullText.left (numLettersToUse) + ellipsisText ());
}
}