diff options
Diffstat (limited to 'src/plugins/platforms/xcb')
-rw-r--r-- | src/plugins/platforms/xcb/qxcbintegration.cpp | 9 | ||||
-rw-r--r-- | src/plugins/platforms/xcb/qxcbintegration.h | 3 | ||||
-rw-r--r-- | src/plugins/platforms/xcb/xcb.pro | 1 |
3 files changed, 12 insertions, 1 deletions
diff --git a/src/plugins/platforms/xcb/qxcbintegration.cpp b/src/plugins/platforms/xcb/qxcbintegration.cpp index 48aeae7601..d47bec60ef 100644 --- a/src/plugins/platforms/xcb/qxcbintegration.cpp +++ b/src/plugins/platforms/xcb/qxcbintegration.cpp @@ -46,6 +46,8 @@ #include "qxcbwindowsurface.h" #include "qxcbnativeinterface.h" +#include <qgenericunixprintersupport.h> + #include <xcb/xcb.h> #include <private/qpixmap_raster_p.h> @@ -59,7 +61,7 @@ #endif QXcbIntegration::QXcbIntegration() - : m_connection(new QXcbConnection) + : m_connection(new QXcbConnection), m_printerSupport(new QGenericUnixPrinterSupport) { foreach (QXcbScreen *screen, m_connection->screens()) m_screens << screen; @@ -148,3 +150,8 @@ QPlatformNativeInterface * QXcbIntegration::nativeInterface() const { return m_nativeInterface; } + +QPlatformPrinterSupport *QXcbIntegration::printerSupport() const +{ + return m_printerSupport; +} diff --git a/src/plugins/platforms/xcb/qxcbintegration.h b/src/plugins/platforms/xcb/qxcbintegration.h index 647eb500c3..36c792fe48 100644 --- a/src/plugins/platforms/xcb/qxcbintegration.h +++ b/src/plugins/platforms/xcb/qxcbintegration.h @@ -69,6 +69,8 @@ public: QPlatformNativeInterface *nativeInterface()const; + QPlatformPrinterSupport *printerSupport() const; + private: bool hasOpenGL() const; QList<QPlatformScreen *> m_screens; @@ -76,6 +78,7 @@ private: QPlatformFontDatabase *m_fontDatabase; QPlatformNativeInterface *m_nativeInterface; + QPlatformPrinterSupport *m_printerSupport; }; QT_END_NAMESPACE diff --git a/src/plugins/platforms/xcb/xcb.pro b/src/plugins/platforms/xcb/xcb.pro index 93a226bd06..c6bf17f0ef 100644 --- a/src/plugins/platforms/xcb/xcb.pro +++ b/src/plugins/platforms/xcb/xcb.pro @@ -69,6 +69,7 @@ contains(QT_CONFIG, opengl) { LIBS += -lxcb -lxcb-image -lxcb-keysyms -lxcb-icccm -lxcb-sync include (../fontdatabases/genericunix/genericunix.pri) +include (../printersupport/genericunix/genericunix.pri) target.path += $$[QT_INSTALL_PLUGINS]/platforms INSTALLS += target |