diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2013-09-23 00:43:43 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2013-09-23 00:43:43 +0200 |
commit | e03da7a558d79e399e3704a5b2f35646e92dacb7 (patch) | |
tree | e9948950e8947f6978fa3270605d04f94216515b /src/template.cpp | |
parent | b9d8d75902c4603fa10c63735873816556a7468c (diff) | |
download | tdeio-sword-e03da7a558d79e399e3704a5b2f35646e92dacb7.tar.gz tdeio-sword-e03da7a558d79e399e3704a5b2f35646e92dacb7.zip |
Initial TQt conversion
Diffstat (limited to 'src/template.cpp')
-rw-r--r-- | src/template.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/template.cpp b/src/template.cpp index 8c5090d..aa329d0 100644 --- a/src/template.cpp +++ b/src/template.cpp @@ -29,7 +29,7 @@ #include <klocale.h> #include <kstandarddirs.h> -#include <qstring.h> +#include <ntqstring.h> namespace KioSword { @@ -51,7 +51,7 @@ namespace KioSword { static const char* TOGGLES = "{$toggles}"; // static HTML fragments ------------------------------------------------------------------------------------------------------- - static const QString &html_page(QString("") + + static const TQString &html_page(TQString("") + "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\" " // make W3C valid "\"http://www.w3.org/TR/html4/strict.dtd\">\n" "<html><head>\n" @@ -82,12 +82,12 @@ namespace KioSword { m_showToggles = false; } - QCString Template::render(const SwordOptions& options) const + TQCString Template::render(const SwordOptions& options) const { - QString cssdir = KGlobal::dirs()->findResourceDir("data", "kio_sword/kio_sword.css") + "kio_sword/"; + TQString cssdir = KGlobal::dirs()->findResourceDir("data", "kio_sword/kio_sword.css") + "kio_sword/"; - QString output = html_page; + TQString output = html_page; output = output .replace(HOMELINK, swordUrl("", options)) .replace(HOMELINKCAPTION, i18n("Module list")) @@ -114,7 +114,7 @@ namespace KioSword { } if (m_showToggles) { - QString toggles; + TQString toggles; SwordOptions toggledOptions(options); toggledOptions.verseNumbers.set(!toggledOptions.verseNumbers()); @@ -147,22 +147,22 @@ namespace KioSword { return output.utf8(); } - void Template::setTitle(const QString& title) + void Template::setTitle(const TQString& title) { m_title = title; } - void Template::setContent(const QString& content) + void Template::setContent(const TQString& content) { m_content = content; } - void Template::setNav(const QString& nav) + void Template::setNav(const TQString& nav) { m_nav = nav; } - void Template::setCurrentPath(const QString& currentPath) + void Template::setCurrentPath(const TQString& currentPath) { m_currentPath = currentPath; } |