summaryrefslogtreecommitdiff
path: root/noncore/unsupported/oipkg/packagelistitem.cpp
Side-by-side diff
Diffstat (limited to 'noncore/unsupported/oipkg/packagelistitem.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/unsupported/oipkg/packagelistitem.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/noncore/unsupported/oipkg/packagelistitem.cpp b/noncore/unsupported/oipkg/packagelistitem.cpp
index 0c7c928..b7af9a6 100644
--- a/noncore/unsupported/oipkg/packagelistitem.cpp
+++ b/noncore/unsupported/oipkg/packagelistitem.cpp
@@ -13,6 +13,17 @@ static QPixmap *pm_install=0;
PackageListItem::PackageListItem(QListView* lv, Package *pi, PackageManagerSettings *s)
: QCheckListItem(lv,pi->name(),CheckBox)
{
+ init(pi,s);
+}
+
+PackageListItem::PackageListItem(QListViewItem *lvi, Package *pi, PackageManagerSettings *s)
+ : QCheckListItem(lvi,pi->name(),CheckBox)
+{
+ init(pi,s);
+}
+
+void PackageListItem::init( Package *pi, PackageManagerSettings *s)
+{
package = pi;
settings = s;
setExpandable( true );