From 2595a15ebeb6fc46b7cb241d01ec0c2460ec2111 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 2 Jul 2011 06:40:27 +0000 Subject: TQt4 port tellico This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/tellico@1239054 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/gui/richtextlabel.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/gui/richtextlabel.cpp') diff --git a/src/gui/richtextlabel.cpp b/src/gui/richtextlabel.cpp index a4cdde4..a0b3a01 100644 --- a/src/gui/richtextlabel.cpp +++ b/src/gui/richtextlabel.cpp @@ -15,33 +15,33 @@ #include -#include +#include using Tellico::GUI::RichTextLabel; -RichTextLabel::RichTextLabel(QWidget* parent) : QTextEdit(parent) { +RichTextLabel::RichTextLabel(TQWidget* tqparent) : TQTextEdit(tqparent) { init(); } -RichTextLabel::RichTextLabel(const QString& text, QWidget* parent) : QTextEdit(text, QString::null, parent) { +RichTextLabel::RichTextLabel(const TQString& text, TQWidget* tqparent) : TQTextEdit(text, TQString(), tqparent) { init(); } -QSize RichTextLabel::sizeHint() const { - return minimumSizeHint(); +TQSize RichTextLabel::tqsizeHint() const { + return tqminimumSizeHint(); } void RichTextLabel::init() { setReadOnly(true); - setTextFormat(Qt::RichText); + setTextFormat(TQt::RichText); - setFrameShape(QFrame::NoFrame); + setFrameShape(TQFrame::NoFrame); viewport()->setMouseTracking(false); - setPaper(colorGroup().background()); + setPaper(tqcolorGroup().background()); - setSizePolicy(QSizePolicy(QSizePolicy::Preferred, QSizePolicy::Expanding)); - viewport()->setSizePolicy(QSizePolicy(QSizePolicy::Preferred, QSizePolicy::Expanding)); + tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Expanding)); + viewport()->tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Expanding)); } #include "richtextlabel.moc" -- cgit v1.2.1