summaryrefslogtreecommitdiffstats
path: root/filesharing/simple/krichtextlabel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'filesharing/simple/krichtextlabel.cpp')
-rw-r--r--filesharing/simple/krichtextlabel.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/filesharing/simple/krichtextlabel.cpp b/filesharing/simple/krichtextlabel.cpp
index 089635d7..a604b0de 100644
--- a/filesharing/simple/krichtextlabel.cpp
+++ b/filesharing/simple/krichtextlabel.cpp
@@ -35,20 +35,20 @@ static TQString qrichtextify( const TQString& text )
*it = TQStyleSheet::convertFromPlainText( *it, TQStyleSheetItem::WhiteSpaceNormal );
}
- return lines.join(TQString::null);
+ return lines.join(TQString());
}
-KRichTextLabel::KRichTextLabel( const TQString &text , TQWidget *parent, const char *name )
- : TQLabel ( parent, name ) {
- m_defaultWidth = QMIN(400, KGlobalSettings::desktopGeometry(this).width()*2/5);
- setAlignment( Qt::WordBreak );
+KRichTextLabel::KRichTextLabel( const TQString &text , TQWidget *tqparent, const char *name )
+ : TQLabel ( tqparent, name ) {
+ m_defaultWidth = TQMIN(400, KGlobalSettings::desktopGeometry(this).width()*2/5);
+ tqsetAlignment( TQt::WordBreak );
setText(text);
}
-KRichTextLabel::KRichTextLabel( TQWidget *parent, const char *name )
- : TQLabel ( parent, name ) {
- m_defaultWidth = QMIN(400, KGlobalSettings::desktopGeometry(this).width()*2/5);
- setAlignment( Qt::WordBreak );
+KRichTextLabel::KRichTextLabel( TQWidget *tqparent, const char *name )
+ : TQLabel ( tqparent, name ) {
+ m_defaultWidth = TQMIN(400, KGlobalSettings::desktopGeometry(this).width()*2/5);
+ tqsetAlignment( TQt::WordBreak );
}
void KRichTextLabel::setDefaultWidth(int defaultWidth)
@@ -62,7 +62,7 @@ TQSizePolicy KRichTextLabel::sizePolicy() const
return TQSizePolicy(TQSizePolicy::MinimumExpanding, TQSizePolicy::Minimum, false);
}
-TQSize KRichTextLabel::minimumSizeHint() const
+TQSize KRichTextLabel::tqminimumSizeHint() const
{
TQString qt_text = qrichtextify( text() );
int pref_width = 0;
@@ -97,9 +97,9 @@ TQSize KRichTextLabel::minimumSizeHint() const
return TQSize(pref_width, rt.height());
}
-TQSize KRichTextLabel::sizeHint() const
+TQSize KRichTextLabel::tqsizeHint() const
{
- return minimumSizeHint();
+ return tqminimumSizeHint();
}
void KRichTextLabel::setText( const TQString &text ) {