From fa3772aa7ddea5725cc7e7db42d017567e4cc14c Mon Sep 17 00:00:00 2001 From: zcarsten Date: Tue, 22 Jul 2003 19:23:13 +0000 Subject: Initial revision --- (limited to 'noncore/apps/zsafe/shadedlistitem.h') diff --git a/noncore/apps/zsafe/shadedlistitem.h b/noncore/apps/zsafe/shadedlistitem.h new file mode 100644 index 0000000..0db2fa8 --- a/dev/null +++ b/noncore/apps/zsafe/shadedlistitem.h @@ -0,0 +1,34 @@ +/* + * shadedlistitem.h + * + * (c) 2003 by Jeremy Bowman + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + */ + +#ifndef SHADEDLISTITEM_H +#define SHADEDLISTITEM_H + +#include + +class ShadedListItem: public QListViewItem +{ +public: + ShadedListItem(int index, QListViewItem *parent); + ShadedListItem(int index, QListView *parent); + ShadedListItem(int index, QListView *parent, QListViewItem *after); + ShadedListItem(int index, QListView *parent, QString label1, QString label2 = QString::null, QString label3 = QString::null); + ShadedListItem(int index, QListView *parent, QListViewItem *after, QString label1, QString label2 = QString::null, QString label3 = QString::null); + ~ShadedListItem(); + + void paintCell(QPainter *p, const QColorGroup &cg, int column, int width, int alignment); + +private: + QListView *lv; + bool oddRow; +}; + +#endif -- cgit v0.9.0.2