summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qplatformintegration_qpa.h
diff options
context:
space:
mode:
authorJørgen Lind <jorgen.lind@nokia.com>2010-08-20 10:33:33 (GMT)
committerJørgen Lind <jorgen.lind@nokia.com>2010-09-02 13:25:37 (GMT)
commit5e7fdcc7a4a2bb070ad7ece920ac5db81e3e6f77 (patch)
tree5a67130cd7144084adceed7c5e1697e650cee20f /src/gui/kernel/qplatformintegration_qpa.h
parentde66ffa4d7d057f0c782edc45374ad58322a0c4c (diff)
downloadQt-5e7fdcc7a4a2bb070ad7ece920ac5db81e3e6f77.zip
Qt-5e7fdcc7a4a2bb070ad7ece920ac5db81e3e6f77.tar.gz
Qt-5e7fdcc7a4a2bb070ad7ece920ac5db81e3e6f77.tar.bz2
Initial pluggable fontdatabase
QPlatformFontDatabase added. QPlatformIntegration now has a new virtual function: QPlatformDatabase::fontDatabase() const. Most unix platform plugins wants to follow the pattern implemented in directfb, linuxfb, vnc etc. In the pro file do: include(../fontdatabases/genericunix/genericunix.pri) In the QPlatformIntegration class do: and instansiate a QGenericFontDatabase in the constructor and return it in the getter function.
Diffstat (limited to 'src/gui/kernel/qplatformintegration_qpa.h')
-rw-r--r--src/gui/kernel/qplatformintegration_qpa.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/kernel/qplatformintegration_qpa.h b/src/gui/kernel/qplatformintegration_qpa.h
index 9460910..b1f4e5f 100644
--- a/src/gui/kernel/qplatformintegration_qpa.h
+++ b/src/gui/kernel/qplatformintegration_qpa.h
@@ -58,6 +58,7 @@ class QWindowSurface;
class QBlittable;
class QWidget;
class QPlatformEventLoopIntegration;
+class QPlatformFontDatabase;
class Q_GUI_EXPORT QPlatformIntegration
{
@@ -75,6 +76,9 @@ public:
virtual bool isVirtualDesktop() { return false; }
virtual QPixmap grabWindow(WId window, int x, int y, int width, int height) const;
+//Fontdatabase integration.
+ virtual QPlatformFontDatabase *fontDatabase() const;
+
// Experimental in mainthread eventloop integration
// This should only be used if it is only possible to do window system event processing in
// the gui thread. All of the functions in QWindowSystemInterface are thread safe.