summaryrefslogtreecommitdiff
path: root/noncore
Side-by-side diff
Diffstat (limited to 'noncore') (more/less context) (show whitespace changes)
-rw-r--r--noncore/unsupported/oipkg/TODO1
-rw-r--r--noncore/unsupported/oipkg/package.cpp5
-rw-r--r--noncore/unsupported/oipkg/package.h1
-rw-r--r--noncore/unsupported/oipkg/packagelistitem.cpp9
4 files changed, 14 insertions, 2 deletions
diff --git a/noncore/unsupported/oipkg/TODO b/noncore/unsupported/oipkg/TODO
index fc2e8a4..9d9a650 100644
--- a/noncore/unsupported/oipkg/TODO
+++ b/noncore/unsupported/oipkg/TODO
@@ -11,3 +11,2 @@
* allow reinstalling
-* handle different versions
* different types of filters and searches
diff --git a/noncore/unsupported/oipkg/package.cpp b/noncore/unsupported/oipkg/package.cpp
index 0787ece..f992641 100644
--- a/noncore/unsupported/oipkg/package.cpp
+++ b/noncore/unsupported/oipkg/package.cpp
@@ -363 +363,6 @@ void Package::setName(QString n)
}
+
+QDict<QString>* Package::getFields()
+{
+ return &_values;
+}
diff --git a/noncore/unsupported/oipkg/package.h b/noncore/unsupported/oipkg/package.h
index 2ca966d..fc725bc 100644
--- a/noncore/unsupported/oipkg/package.h
+++ b/noncore/unsupported/oipkg/package.h
@@ -51,2 +51,3 @@ class Package //: public QObject
void setName(QString);
+ QDict<QString>* getFields();
public slots:
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
@@ -31,3 +31,2 @@ void PackageListItem::init( Package *pi, PackageManagerSettings *s)
nameItem = new QCheckListItem( this, "" );
- item = new QCheckListItem( this, QObject::tr("Description: ")+pi->desc() );
item = new QCheckListItem( this, QObject::tr("Size: ")+pi->size() );
@@ -35,2 +34,10 @@ void PackageListItem::init( Package *pi, PackageManagerSettings *s)
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();