From a3205d9bf5570af8441ed81cd6d9eeadf22319c9 Mon Sep 17 00:00:00 2001 From: tille Date: Tue, 23 Apr 2002 11:16:45 +0000 Subject: ... mostly rewritten. --- (limited to 'noncore/unsupported/oipkg/packagelistitem.h') diff --git a/noncore/unsupported/oipkg/packagelistitem.h b/noncore/unsupported/oipkg/packagelistitem.h new file mode 100644 index 0000000..6983e58 --- a/dev/null +++ b/noncore/unsupported/oipkg/packagelistitem.h @@ -0,0 +1,31 @@ +#ifndef PK_LISTITEM_H +#define PK_LISTITEM_H + +#include "package.h" + +#include +#include +#include +#include +#include + +class PackageListItem +: public QCheckListItem +{ +public: + PackageListItem(QListView*, Package* ); + void paintCell( QPainter*, const QColorGroup&, int, int, int ); + void paintFocus( QPainter*, const QColorGroup&, const QRect& ); + QPixmap statePixmap() const; + QString key( int, bool ) const; + Package* getPackage() { return package; } ; + QString getName() { return package->name(); } ; + bool isInstalled(){ return package->installed(); }; + virtual void setOn ( bool ); + +private: + Package *package; +}; + + +#endif -- cgit v0.9.0.2