summaryrefslogtreecommitdiff
path: root/noncore/unsupported/oipkg/packagelistitem.cpp
authortille <tille>2002-05-02 19:11:55 (UTC)
committer tille <tille>2002-05-02 19:11:55 (UTC)
commitce6758eccada41f5c3fef13e6b4808c525213bee (patch) (side-by-side diff)
tree236d015e4c037254d7862620e41bd75ab701a696 /noncore/unsupported/oipkg/packagelistitem.cpp
parentb4f04de71fea42fa32a048f42d27e4f5be6804f9 (diff)
downloadopie-ce6758eccada41f5c3fef13e6b4808c525213bee.zip
opie-ce6758eccada41f5c3fef13e6b4808c525213bee.tar.gz
opie-ce6758eccada41f5c3fef13e6b4808c525213bee.tar.bz2
added doclnk support
Diffstat (limited to 'noncore/unsupported/oipkg/packagelistitem.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/oipkg/packagelistitem.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/noncore/unsupported/oipkg/packagelistitem.cpp b/noncore/unsupported/oipkg/packagelistitem.cpp
index 2f81714..45aaf1d 100644
--- a/noncore/unsupported/oipkg/packagelistitem.cpp
+++ b/noncore/unsupported/oipkg/packagelistitem.cpp
@@ -34,2 +34,3 @@ void PackageListItem::init( Package *pi, PackageManagerSettings *s)
linkItem = new QCheckListItem( this, "" );
+ statusItem = new QCheckListItem( this, "" );
QCheckListItem *otherItem = new QCheckListItem( this, QObject::tr("other") );
@@ -131,5 +132,7 @@ void PackageListItem::displayDetails()
{
- QString sod = " ("+package->sizeUnits();
+ QString sod;
+ sod += package->sizeUnits().isEmpty()?QString(""):QString(package->sizeUnits());
+ //sod += QString(package->dest().isEmpty()?"":QObject::tr(" on ")+package->dest());
sod += package->dest().isEmpty()?QString(""):QString(QObject::tr(" on ")+package->dest());
- sod += ")";
+ sod = sod.isEmpty()?QString(""):QString(" ("+sod+")");
setText(0, package->name()+sod );
@@ -138,2 +141,3 @@ void PackageListItem::displayDetails()
destItem->setText( 0, QObject::tr("Destination: ")+package->dest() );
+ statusItem->setText( 0, QObject::tr("Status: ")+package->status() );
repaint();