diff options
Diffstat (limited to 'src/tools/list/device_info.cpp')
-rw-r--r-- | src/tools/list/device_info.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/tools/list/device_info.cpp b/src/tools/list/device_info.cpp index 78ca7a7..be4169a 100644 --- a/src/tools/list/device_info.cpp +++ b/src/tools/list/device_info.cpp @@ -12,35 +12,35 @@ #include "progs/list/prog_list.h" #include "tool_list.h" -QString Device::webpageHtml(const Device::Data &data) +TQString Device::webpageHtml(const Device::Data &data) { const Device::Documents &documents = data.documents(); - QString url = "http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId="; + TQString url = "http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId="; if ( documents.webpage.isEmpty() ) url += "2044&AllWords=" + data.name(); else url += "1335&dDocName=en" + documents.webpage; return "<a href=\"" + url + "\">" + i18n("Device Page") + "</a> "; } -QString documentHtml(const QString &document, const QString &label) +TQString documentHtml(const TQString &document, const TQString &label) { - if ( document.isEmpty() ) return QString::null; + if ( document.isEmpty() ) return TQString(); return ", <a href=\"document://" + document + "\">" + label + "</a>"; } -QString Device::documentHtml(const Device::Data &data) +TQString Device::documentHtml(const Device::Data &data) { - QString s = webpageHtml(data); + TQString s = webpageHtml(data); s += documentHtml(data.documents().datasheet, i18n("Datasheet")); s += documentHtml(data.documents().progsheet, i18n("Programming Specifications")); return htmlTableRow(i18n("Documents"), s); } -QString Device::supportedHtmlInfo(const Device::Data &data) +TQString Device::supportedHtmlInfo(const Device::Data &data) { - QString doc; + TQString doc; doc += "<hr />\n"; doc += "<table>\n"; - QString tools; + TQString tools; Tool::Lister::ConstIterator tit; for (tit=Tool::lister().begin(); tit!=Tool::lister().end(); ++tit) { if ( !tit.data()->isSupported(data.name()) ) continue; @@ -49,7 +49,7 @@ QString Device::supportedHtmlInfo(const Device::Data &data) tools += tit.data()->label(); } doc += htmlTableRow(i18n("Tools"), tools) + "\n"; - QString progs; + TQString progs; Programmer::Lister::ConstIterator pit; for (pit=Programmer::lister().begin(); pit!=Programmer::lister().end(); ++pit) { if ( !pit.data()->isSupported(data.name()) ) continue; |