summaryrefslogtreecommitdiff
path: root/noncore/apps/zsafe/shadedlistitem.h
Side-by-side diff
Diffstat (limited to 'noncore/apps/zsafe/shadedlistitem.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/zsafe/shadedlistitem.h34
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