author | zcarsten <zcarsten> | 2003-07-22 19:23:13 (UTC) |
---|---|---|
committer | zcarsten <zcarsten> | 2003-07-22 19:23:13 (UTC) |
commit | fa3772aa7ddea5725cc7e7db42d017567e4cc14c (patch) (side-by-side diff) | |
tree | 112ec27dd148d0b381ac559fd3e1ee32a89ecd0d /noncore/apps/zsafe/shadedlistitem.h | |
parent | 059af0e82a14a32f068c2ad943dc918afca93587 (diff) | |
download | opie-fa3772aa7ddea5725cc7e7db42d017567e4cc14c.zip opie-fa3772aa7ddea5725cc7e7db42d017567e4cc14c.tar.gz opie-fa3772aa7ddea5725cc7e7db42d017567e4cc14c.tar.bz2 |
Initial revision
Diffstat (limited to 'noncore/apps/zsafe/shadedlistitem.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/zsafe/shadedlistitem.h | 34 |
1 files changed, 34 insertions, 0 deletions
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 <jmbowman@alum.mit.edu> + * + * 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 <qlistview.h> + +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 |