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 @@ +#ifndef COLORLISTITEM_H +#define COLORLISTITEM_H + +#include <qlistbox.h> +#include <qpalette.h> + +class ColorListItem : public QListBoxText { +public: + ColorListItem ( const QString &t, const QPalette &pal ) : QListBoxText ( t ) + { + m_pal = pal; + } + + virtual ~ColorListItem ( ) + { + } + + QPalette palette ( ) + { + return m_pal; + } + +private: + QPalette m_pal; +}; + + +#endif |