diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-16 09:57:30 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-16 09:57:30 -0600 |
commit | ad1fc5fc8eadb9b63e8767e57ac41cbac84f7eb7 (patch) | |
tree | c47273eb6595f763c282d33fb89affe1f8866120 /src/devices/base/device_group.cpp | |
parent | 9d6927a7d6a543332f828bffedf65eecf6774c6d (diff) | |
download | piklab-ad1fc5fc8eadb9b63e8767e57ac41cbac84f7eb7.tar.gz piklab-ad1fc5fc8eadb9b63e8767e57ac41cbac84f7eb7.zip |
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 9d6927a7d6a543332f828bffedf65eecf6774c6d.
Diffstat (limited to 'src/devices/base/device_group.cpp')
-rw-r--r-- | src/devices/base/device_group.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/devices/base/device_group.cpp b/src/devices/base/device_group.cpp index db70264..94586bd 100644 --- a/src/devices/base/device_group.cpp +++ b/src/devices/base/device_group.cpp @@ -12,16 +12,16 @@ # include <tqpainter.h> # include <kglobal.h> -TQColor Device::statusColor(Status status) +TQColor Device::statusColor(tqStatus status) { switch (status.type()) { - case Status::Future: return TQt::blue; - case Status::InProduction: return TQt::green; - case Status::Mature: - case Status::NotRecommended: return TQColor("orange"); - case Status::EOL: return TQt::red; - case Status::Unknown: - case Status::Nb_Types: break; + case tqStatus::Future: return TQt::blue; + case tqStatus::InProduction: return TQt::green; + case tqStatus::Mature: + case tqStatus::NotRecommended: return TQColor("orange"); + case tqStatus::EOL: return TQt::red; + case tqStatus::Unknown: + case tqStatus::Nb_Types: break; } return TQt::black; } @@ -232,8 +232,8 @@ TQString Device::htmlInfo(const Device::Data &data, const TQString &deviceHref, if ( i!=0 ) s += ", "; if ( deviceHref.isEmpty() ) s += data.alternatives()[i].upper(); else { - TQString href = deviceHref.arg(data.alternatives()[i].upper()); - s += TQString("<a href=\"%1\">%2</a>").arg(href).arg(data.alternatives()[i].upper()); + TQString href = deviceHref.tqarg(data.alternatives()[i].upper()); + s += TQString("<a href=\"%1\">%2</a>").tqarg(href).tqarg(data.alternatives()[i].upper()); } } doc += htmlTableRow(i18n("Alternatives"), s); @@ -247,7 +247,7 @@ TQString Device::htmlInfo(const Device::Data &data, const TQString &deviceHref, TQString s; for (uint i=0; i<data.packages().count(); i++) for (uint k=0; k<data.packages()[i].types.count(); k++) - s += i18n(Package::TYPE_DATA[data.packages()[i].types[k]].label) + TQString("[%1] ").arg(data.packages()[i].pins.count()); + s += i18n(Package::TYPE_DATA[data.packages()[i].types[k]].label) + TQString("[%1] ").tqarg(data.packages()[i].pins.count()); doc += htmlTableRow(i18n("Packaging"), s); doc += "</table>"; @@ -260,7 +260,7 @@ TQString Device::htmlPinDiagrams(const Device::Data &data, const TQString &image // pins const Package *package = 0; for (uint i=0; Package::TYPE_DATA[i].name; i++) { - if ( Package::TYPE_DATA[i].shape!=Package::Bar ) continue; + if ( Package::TYPE_DATA[i].tqshape!=Package::Bar ) continue; package = barPackage(Package::TYPE_DATA[i].name, data); if (package) break; } |