author | sandman <sandman> | 2002-09-20 01:42:10 (UTC) |
---|---|---|
committer | sandman <sandman> | 2002-09-20 01:42:10 (UTC) |
commit | b1f3d33cb0b3f203f153074a8812d5988c3031b2 (patch) (unidiff) | |
tree | 1734ac2808dab8f0982b23a2a9101486fcdcfee5 /noncore/settings/appearance2/colorlistitem.h | |
parent | 9204c61f669fb265f6c5f14bfd6ca363a2929e40 (diff) | |
download | opie-b1f3d33cb0b3f203f153074a8812d5988c3031b2.zip opie-b1f3d33cb0b3f203f153074a8812d5988c3031b2.tar.gz opie-b1f3d33cb0b3f203f153074a8812d5988c3031b2.tar.bz2 |
New experimental appearance settings
Diffstat (limited to 'noncore/settings/appearance2/colorlistitem.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/appearance2/colorlistitem.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/noncore/settings/appearance2/colorlistitem.h b/noncore/settings/appearance2/colorlistitem.h new file mode 100644 index 0000000..c7318a6 --- a/dev/null +++ b/noncore/settings/appearance2/colorlistitem.h | |||
@@ -0,0 +1,28 @@ | |||
1 | #ifndef COLORLISTITEM_H | ||
2 | #define COLORLISTITEM_H | ||
3 | |||
4 | #include <qlistbox.h> | ||
5 | #include <qpalette.h> | ||
6 | |||
7 | class ColorListItem : public QListBoxText { | ||
8 | public: | ||
9 | ColorListItem ( const QString &t, const QPalette &pal ) : QListBoxText ( t ) | ||
10 | { | ||
11 | m_pal = pal; | ||
12 | } | ||
13 | |||
14 | virtual ~ColorListItem ( ) | ||
15 | { | ||
16 | } | ||
17 | |||
18 | QPalette palette ( ) | ||
19 | { | ||
20 | return m_pal; | ||
21 | } | ||
22 | |||
23 | private: | ||
24 | QPalette m_pal; | ||
25 | }; | ||
26 | |||
27 | |||
28 | #endif | ||