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/rtf2html | |
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/rtf2html')
-rw-r--r-- | src/rtf2html/rtf2html.cpp | 6 | ||||
-rw-r--r-- | src/rtf2html/rtf2html.h | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/rtf2html/rtf2html.cpp b/src/rtf2html/rtf2html.cpp index 4f29fe7..e6e8b34 100644 --- a/src/rtf2html/rtf2html.cpp +++ b/src/rtf2html/rtf2html.cpp @@ -29,11 +29,11 @@ using Tellico::RTF2HTML; using namespace rtf; -RTF2HTML::RTF2HTML(const QString& text) : m_text(text) { +RTF2HTML::RTF2HTML(const TQString& text) : m_text(text) { } -QString RTF2HTML::toHTML() const { - std::string str_in = m_text; +TQString RTF2HTML::toHTML() const { + std::string str_in = m_text.ascii(); std::string::iterator buf_in=str_in.begin(), buf_in_end=str_in.end(); colorvect colortbl; diff --git a/src/rtf2html/rtf2html.h b/src/rtf2html/rtf2html.h index a4e1d2f..05e8eb1 100644 --- a/src/rtf2html/rtf2html.h +++ b/src/rtf2html/rtf2html.h @@ -11,18 +11,18 @@ * * ***************************************************************************/ -#include <qstring.h> +#include <tqstring.h> namespace Tellico { class RTF2HTML { public: - RTF2HTML(const QString& text); + RTF2HTML(const TQString& text); - QString toHTML() const; + TQString toHTML() const; private: - QString m_text; + TQString m_text; }; } |