summaryrefslogtreecommitdiffstats
path: root/src/tools/list/device_info.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-30 00:15:53 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-30 00:15:53 +0000
commit0aaa8e3fc8f8a1481333b564f0922277c8d8ad59 (patch)
treeb95c0ca86c4876dd139af376b9f4afd8917cf0cd /src/tools/list/device_info.cpp
parentb79a2c28534cf09987eeeba3077fff9236df182a (diff)
downloadpiklab-0aaa8e3fc8f8a1481333b564f0922277c8d8ad59.tar.gz
piklab-0aaa8e3fc8f8a1481333b564f0922277c8d8ad59.zip
TQt4 port piklab
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/piklab@1238822 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/tools/list/device_info.cpp')
-rw-r--r--src/tools/list/device_info.cpp20
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&amp;nodeId=";
+ TQString url = "http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&amp;nodeId=";
if ( documents.webpage.isEmpty() ) url += "2044&amp;AllWords=" + data.name();
else url += "1335&amp;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;