diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-02 19:23:46 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-02 19:23:46 +0000 |
commit | eba47f8f0637f451e21348187591e1f1fd58ac74 (patch) | |
tree | 448f10b95c656604acc331a3236c1e59bde5c1ad /ksvg/impl/SVGWindowImpl.cc | |
parent | c7e8736c69373f48b0401319757c742e8607431a (diff) | |
download | tdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.tar.gz tdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.zip |
TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksvg/impl/SVGWindowImpl.cc')
-rw-r--r-- | ksvg/impl/SVGWindowImpl.cc | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/ksvg/impl/SVGWindowImpl.cc b/ksvg/impl/SVGWindowImpl.cc index b19847a4..476185f1 100644 --- a/ksvg/impl/SVGWindowImpl.cc +++ b/ksvg/impl/SVGWindowImpl.cc @@ -26,7 +26,7 @@ #include <ksvg_ecma.h> #include <ksvg_scriptinterpreter.h> -#include <qstylesheet.h> +#include <tqstylesheet.h> #include <kurl.h> #include <kmessagebox.h> @@ -113,7 +113,7 @@ void SVGWindowImpl::postURL(const DOM::DOMString &/*uri*/, const DOM::DOMString DOM::DOMString SVGWindowImpl::printNode(const DOM::Node &node, unsigned short level) { - QString ret; + TQString ret; if(node.isNull()) return ret; SVGElementImpl *elem = m_document->getElementFromHandle(node.handle()); if(node.nodeType() == DOM::Node::DOCUMENT_NODE) @@ -130,7 +130,7 @@ DOM::DOMString SVGWindowImpl::printNode(const DOM::Node &node, unsigned short le printIndentation(ret, level); ret += "<" + elem->tagName().string(); // handle attrs - QDictIterator<DOM::DOMString> it(elem->attributes()); + TQDictIterator<DOM::DOMString> it(elem->attributes()); for(;it.current(); ++it) ret += " " + it.currentKey() + "=\"" + it.current()->string() + '\"'; if(elem->firstChild().isNull()) // no children @@ -147,7 +147,7 @@ DOM::DOMString SVGWindowImpl::printNode(const DOM::Node &node, unsigned short le return ret; } -void SVGWindowImpl::printIndentation(QString &ret, unsigned short level, unsigned short indent) +void SVGWindowImpl::printIndentation(TQString &ret, unsigned short level, unsigned short indent) { for(int i = 0;i < indent * level;i++) ret += " "; @@ -163,21 +163,21 @@ long SVGWindowImpl::setTimeout(const DOM::DOMString &/*code*/, const long &/*del return 0; } -void SVGWindowImpl::alert(const DOM::DOMString &message, const QString &title) +void SVGWindowImpl::alert(const DOM::DOMString &message, const TQString &title) { - KMessageBox::error(0L, QStyleSheet::convertFromPlainText(message.string()), title); + KMessageBox::error(0L, TQStyleSheet::convertFromPlainText(message.string()), title); } -bool SVGWindowImpl::confirm(const DOM::DOMString &message, const QString &title) +bool SVGWindowImpl::confirm(const DOM::DOMString &message, const TQString &title) { - return KMessageBox::warningContinueCancel(0L, QStyleSheet::convertFromPlainText(message.string()), title, KStdGuiItem::ok()) == KMessageBox::Continue; + return KMessageBox::warningContinueCancel(0L, TQStyleSheet::convertFromPlainText(message.string()), title, KStdGuiItem::ok()) == KMessageBox::Continue; } -DOM::DOMString SVGWindowImpl::prompt(const DOM::DOMString &message, const DOM::DOMString &_default, const QString &) +DOM::DOMString SVGWindowImpl::prompt(const DOM::DOMString &message, const DOM::DOMString &_default, const TQString &) { bool ok; - QString str; - str = KInputDialog::getText(i18n("Prompt"), QStyleSheet::convertFromPlainText(message.string()), _default.string(), &ok); + TQString str; + str = KInputDialog::getText(i18n("Prompt"), TQStyleSheet::convertFromPlainText(message.string()), _default.string(), &ok); if(ok) return str; else |