summaryrefslogtreecommitdiff
path: root/noncore/settings/appearance2/fontlistitem.h
authorsandman <sandman>2002-09-20 01:42:10 (UTC)
committer sandman <sandman>2002-09-20 01:42:10 (UTC)
commitb1f3d33cb0b3f203f153074a8812d5988c3031b2 (patch) (side-by-side diff)
tree1734ac2808dab8f0982b23a2a9101486fcdcfee5 /noncore/settings/appearance2/fontlistitem.h
parent9204c61f669fb265f6c5f14bfd6ca363a2929e40 (diff)
downloadopie-b1f3d33cb0b3f203f153074a8812d5988c3031b2.zip
opie-b1f3d33cb0b3f203f153074a8812d5988c3031b2.tar.gz
opie-b1f3d33cb0b3f203f153074a8812d5988c3031b2.tar.bz2
New experimental appearance settings
Diffstat (limited to 'noncore/settings/appearance2/fontlistitem.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/appearance2/fontlistitem.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/noncore/settings/appearance2/fontlistitem.h b/noncore/settings/appearance2/fontlistitem.h
new file mode 100644
index 0000000..73f1d54
--- a/dev/null
+++ b/noncore/settings/appearance2/fontlistitem.h
@@ -0,0 +1,40 @@
+#ifndef FONTLISTITEM_H
+#define FONTLISTITEM_H
+
+#include <qlistbox.h>
+
+class FontListItem : public QListBoxText {
+public:
+ FontListItem ( const QString &t, const QStringList &styles, const QValueList<int> &sizes ) : QListBoxText ( )
+ {
+ m_name = t;
+ m_styles = styles;
+ m_sizes = sizes;
+
+ QString str = t;
+ str [0] = str [0]. upper ( );
+ setText ( str );
+ }
+
+ QString family ( ) const
+ {
+ return m_name;
+ }
+
+ const QStringList &styles ( ) const
+ {
+ return m_styles;
+ }
+
+ const QValueList<int> &sizes ( ) const
+ {
+ return m_sizes;
+ }
+
+private:
+ QStringList m_styles;
+ QValueList<int> m_sizes;
+ QString m_name;
+};
+
+#endif \ No newline at end of file