summaryrefslogtreecommitdiff
path: root/library/fontdatabase.h
Unidiff
Diffstat (limited to 'library/fontdatabase.h') (more/less context) (ignore whitespace changes)
-rw-r--r--library/fontdatabase.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/fontdatabase.h b/library/fontdatabase.h
index 10aec91..991847b 100644
--- a/library/fontdatabase.h
+++ b/library/fontdatabase.h
@@ -15,48 +15,49 @@
15** 15**
16** Contact info@trolltech.com if any conditions of this licensing are 16** Contact info@trolltech.com if any conditions of this licensing are
17** not clear to you. 17** not clear to you.
18** 18**
19**********************************************************************/ 19**********************************************************************/
20#ifndef FONTFACTORY_H 20#ifndef FONTFACTORY_H
21#define FONTFACTORY_H 21#define FONTFACTORY_H
22 22
23#include <qpe/fontfactoryinterface.h> 23#include <qpe/fontfactoryinterface.h>
24 24
25#include <qfontdatabase.h> 25#include <qfontdatabase.h>
26#include <qvaluelist.h> 26#include <qvaluelist.h>
27 27
28class QLibrary; 28class QLibrary;
29 29
30struct FontFactory 30struct FontFactory
31{ 31{
32#ifndef QT_NO_COMPONENT 32#ifndef QT_NO_COMPONENT
33 QLibrary *library; 33 QLibrary *library;
34#endif 34#endif
35 FontFactoryInterface *interface; 35 FontFactoryInterface *interface;
36 QFontFactory *factory; 36 QFontFactory *factory;
37}; 37};
38 38
39#undef QT_NO_FONTDATABASE
39class FontDatabase 40class FontDatabase
40#ifndef QT_NO_FONTDATABASE 41#ifndef QT_NO_FONTDATABASE
41 : public QFontDatabase 42 : public QFontDatabase
42#endif 43#endif
43{ 44{
44public: 45public:
45 FontDatabase(); 46 FontDatabase();
46 47
47 // minimal functionality 48 // minimal functionality
48 QStringList families () const; 49 QStringList families () const;
49#ifdef QT_NO_FONTDATABASE 50#ifdef QT_NO_FONTDATABASE
50 static QValueList<int> standardSizes (); 51 static QValueList<int> standardSizes ();
51#endif 52#endif
52 53
53 static void loadRenderers(); 54 static void loadRenderers();
54 55
55private: 56private:
56 static void readFonts( QFontFactory *factory ); 57 static void readFonts( QFontFactory *factory );
57 58
58private: 59private:
59 static QValueList<FontFactory> *factoryList; 60 static QValueList<FontFactory> *factoryList;
60}; 61};
61 62
62#endif 63#endif