diff options
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 94586bd..db70264 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(tqStatus status) +TQColor Device::statusColor(Status status) { switch (status.type()) { - 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; + 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; } 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.tqarg(data.alternatives()[i].upper()); - s += TQString("<a href=\"%1\">%2</a>").tqarg(href).tqarg(data.alternatives()[i].upper()); + TQString href = deviceHref.arg(data.alternatives()[i].upper()); + s += TQString("<a href=\"%1\">%2</a>").arg(href).arg(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] ").tqarg(data.packages()[i].pins.count()); + s += i18n(Package::TYPE_DATA[data.packages()[i].types[k]].label) + TQString("[%1] ").arg(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].tqshape!=Package::Bar ) continue; + if ( Package::TYPE_DATA[i].shape!=Package::Bar ) continue; package = barPackage(Package::TYPE_DATA[i].name, data); if (package) break; } |