00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef LinkListBoxItem_h
00018 #define LinkListBoxItem_h
00019 #include <qlistview.h>
00020 #include "liturl.h"
00021 #include <qcolor.h>
00022 #include <qpalette.h>
00023 #include <qpixmap.h>
00024
00025 class LinkListBoxItem : public QListViewItem {
00026 LitUrl u;
00027 QColor textcolor;
00028 QColor backgrcolor;
00029 QString orderprefix;
00030
00031 public:
00032 LinkListBoxItem(QListView *listbox, QString title, LitUrl url, QPixmap pm=QPixmap());
00033 LinkListBoxItem(QListView *listbox, LitUrl url, QListViewItem *after, QPixmap pm=QPixmap());
00034 LinkListBoxItem(QListViewItem *parent, QString title, LitUrl url, QPixmap pm=QPixmap());
00035 LinkListBoxItem(QListViewItem *parent, LitUrl url, QListViewItem *after, QPixmap pm=QPixmap());
00036 void init();
00037 void paintCell(QPainter *p, const QColorGroup &cg, int column, int width, int alignment);
00038 LitUrl url();
00039 void setTextColor(const QColor& c);
00040 void setBackgroundColor(const QColor& c);
00041 void setOrderPrefix(QString p);
00042 virtual const QString key(int column, bool ascending);
00043 ~LinkListBoxItem();
00044 };
00045 #endif