summaryrefslogtreecommitdiff
path: root/libopie/ofontselector.h
authorsandman <sandman>2002-10-01 16:58:13 (UTC)
committer sandman <sandman>2002-10-01 16:58:13 (UTC)
commit1d9e6c252f74bfc8fcf6c80d8ce2a80cbd566d26 (patch) (unidiff)
treee26b890b3b6679e3067f8c1b8a688d0651fbfa22 /libopie/ofontselector.h
parent541bd9eaebd630a39a9f1df320bf6e46d499c10a (diff)
downloadopie-1d9e6c252f74bfc8fcf6c80d8ce2a80cbd566d26.zip
opie-1d9e6c252f74bfc8fcf6c80d8ce2a80cbd566d26.tar.gz
opie-1d9e6c252f74bfc8fcf6c80d8ce2a80cbd566d26.tar.bz2
Added runtime detection of Qt version, because all qt/e's <= 2.3.3 return
font sizes *10
Diffstat (limited to 'libopie/ofontselector.h') (more/less context) (show whitespace changes)
-rw-r--r--libopie/ofontselector.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/libopie/ofontselector.h b/libopie/ofontselector.h
index b3aa862..a9c8a72 100644
--- a/libopie/ofontselector.h
+++ b/libopie/ofontselector.h
@@ -21,29 +21,28 @@
21  -_. . .   )=.  = Library General Public License along with 21  -_. . .   )=.  = Library General Public License along with
22    --        :-=` this library; see the file COPYING.LIB. 22    --        :-=` this library; see the file COPYING.LIB.
23 If not, write to the Free Software Foundation, 23 If not, write to the Free Software Foundation,
24 Inc., 59 Temple Place - Suite 330, 24 Inc., 59 Temple Place - Suite 330,
25 Boston, MA 02111-1307, USA. 25 Boston, MA 02111-1307, USA.
26 26
27*/ 27*/
28 28
29#ifndef __OPIE_FONTSELECTOR_H__ 29#ifndef __OPIE_FONTSELECTOR_H__
30#define __OPIE_FONTSELECTOR_H__ 30#define __OPIE_FONTSELECTOR_H__
31 31
32#include <qwidget.h> 32#include <qwidget.h>
33#include <qpe/fontdatabase.h>
34 33
35class QComboBox;
36class QListBox; 34class QListBox;
37class QFont; 35class OFontSelectorPrivate;
36
38 37
39class OFontSelector : public QWidget 38class OFontSelector : public QWidget
40{ 39{
41 Q_OBJECT 40 Q_OBJECT
42 41
43public: 42public:
44 OFontSelector ( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); 43 OFontSelector ( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
45 virtual ~OFontSelector ( ); 44 virtual ~OFontSelector ( );
46 45
47 bool selectedFont ( QString &family, QString &style, int &size ); 46 bool selectedFont ( QString &family, QString &style, int &size );
48 bool selectedFont ( QString &family, QString &style, int &size, QString &charset ); 47 bool selectedFont ( QString &family, QString &style, int &size, QString &charset );
49 48
@@ -62,21 +61,17 @@ signals:
62 61
63protected slots: 62protected slots:
64 virtual void fontFamilyClicked ( int ); 63 virtual void fontFamilyClicked ( int );
65 virtual void fontStyleClicked ( int ); 64 virtual void fontStyleClicked ( int );
66 virtual void fontSizeClicked ( int ); 65 virtual void fontSizeClicked ( int );
67 66
68private: 67private:
69 void loadFonts ( QListBox * ); 68 void loadFonts ( QListBox * );
70 69
71 void changeFont ( ); 70 void changeFont ( );
72 71
73private: 72private:
74 QListBox * m_font_family_list; 73 OFontSelectorPrivate *d;
75 QComboBox * m_font_style_list;
76 QComboBox * m_font_size_list;
77
78 FontDatabase m_fdb;
79}; 74};
80 75
81#endif 76#endif
82 77