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/fontlistitem.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/fontlistitem.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/appearance2/fontlistitem.h | 40 |
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 @@ | |||
1 | #ifndef FONTLISTITEM_H | ||
2 | #define FONTLISTITEM_H | ||
3 | |||
4 | #include <qlistbox.h> | ||
5 | |||
6 | class FontListItem : public QListBoxText { | ||
7 | public: | ||
8 | FontListItem ( const QString &t, const QStringList &styles, const QValueList<int> &sizes ) : QListBoxText ( ) | ||
9 | { | ||
10 | m_name = t; | ||
11 | m_styles = styles; | ||
12 | m_sizes = sizes; | ||
13 | |||
14 | QString str = t; | ||
15 | str [0] = str [0]. upper ( ); | ||
16 | setText ( str ); | ||
17 | } | ||
18 | |||
19 | QString family ( ) const | ||
20 | { | ||
21 | return m_name; | ||
22 | } | ||
23 | |||
24 | const QStringList &styles ( ) const | ||
25 | { | ||
26 | return m_styles; | ||
27 | } | ||
28 | |||
29 | const QValueList<int> &sizes ( ) const | ||
30 | { | ||
31 | return m_sizes; | ||
32 | } | ||
33 | |||
34 | private: | ||
35 | QStringList m_styles; | ||
36 | QValueList<int> m_sizes; | ||
37 | QString m_name; | ||
38 | }; | ||
39 | |||
40 | #endif \ No newline at end of file | ||