author | tille <tille> | 2002-05-01 16:14:36 (UTC) |
---|---|---|
committer | tille <tille> | 2002-05-01 16:14:36 (UTC) |
commit | da12e60078563ef6e10ddcc1edeb931f765b8b6d (patch) (side-by-side diff) | |
tree | 0d6cfec0cf3de34568f02de41582bc84e962e12d /noncore/unsupported/oipkg/packagelistitem.cpp | |
parent | da94bce203afca412336a7793ff8e58e18d59108 (diff) | |
download | opie-da12e60078563ef6e10ddcc1edeb931f765b8b6d.zip opie-da12e60078563ef6e10ddcc1edeb931f765b8b6d.tar.gz opie-da12e60078563ef6e10ddcc1edeb931f765b8b6d.tar.bz2 |
more fields in detailed view
Diffstat (limited to 'noncore/unsupported/oipkg/packagelistitem.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/unsupported/oipkg/packagelistitem.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/noncore/unsupported/oipkg/packagelistitem.cpp b/noncore/unsupported/oipkg/packagelistitem.cpp index b7af9a6..2f81714 100644 --- a/noncore/unsupported/oipkg/packagelistitem.cpp +++ b/noncore/unsupported/oipkg/packagelistitem.cpp @@ -29,10 +29,17 @@ void PackageListItem::init( Package *pi, PackageManagerSettings *s) setExpandable( true ); QCheckListItem *item; nameItem = new QCheckListItem( this, "" ); - item = new QCheckListItem( this, QObject::tr("Description: ")+pi->desc() ); item = new QCheckListItem( this, QObject::tr("Size: ")+pi->size() ); destItem = new QCheckListItem( this, "" ); linkItem = new QCheckListItem( this, "" ); + QCheckListItem *otherItem = new QCheckListItem( this, QObject::tr("other") ); + item = new QCheckListItem( otherItem, QObject::tr("Description: ")+pi->desc() ); + QDict<QString> *fields = pi->getFields(); + QDictIterator<QString> it( *fields ); + while ( it.current() ) { + item = new QCheckListItem( otherItem, QString(it.currentKey()+": "+*it.current()) ); + ++it; + } displayDetails(); if (!pm_uninstalled) |