diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-02 06:40:27 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-02 06:40:27 +0000 |
commit | 2595a15ebeb6fc46b7cb241d01ec0c2460ec2111 (patch) | |
tree | 18a8f0f4ac5a86dacfa74c3537551ec39bc85e75 /src/gui/richtextlabel.cpp | |
parent | 1d90725a4001fab9d3922b2cbcceeee5e2d1686f (diff) | |
download | tellico-2595a15ebeb6fc46b7cb241d01ec0c2460ec2111.tar.gz tellico-2595a15ebeb6fc46b7cb241d01ec0c2460ec2111.zip |
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
Diffstat (limited to 'src/gui/richtextlabel.cpp')
-rw-r--r-- | src/gui/richtextlabel.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
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 <kdebug.h> -#include <qlayout.h> +#include <tqlayout.h> 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" |