From 02191b6e4b03fe05b1b953b3e5d5e456cc5817c9 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Sun, 27 May 2012 05:25:47 +0200 Subject: Remove dependency from QFactoryInterface for the print plugin Change-Id: Ia35890b72e7797ef655bf97b4a34af2908657c0e Reviewed-by: Thiago Macieira --- src/printsupport/kernel/qplatformprintplugin.h | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'src/printsupport/kernel') diff --git a/src/printsupport/kernel/qplatformprintplugin.h b/src/printsupport/kernel/qplatformprintplugin.h index 597a5f4fcf..d7abfb65f8 100644 --- a/src/printsupport/kernel/qplatformprintplugin.h +++ b/src/printsupport/kernel/qplatformprintplugin.h @@ -61,24 +61,15 @@ QT_BEGIN_NAMESPACE class QPlatformPrinterSupport; -struct QPlatformPrinterSupportFactoryInterface : public QFactoryInterface -{ - virtual QPlatformPrinterSupport *create(const QString &key) = 0; -}; - #define QPlatformPrinterSupportFactoryInterface_iid "org.qt-project.QPlatformPrinterSupportFactoryInterface" -Q_DECLARE_INTERFACE(QPlatformPrinterSupportFactoryInterface, QPlatformPrinterSupportFactoryInterface_iid) - -class Q_PRINTSUPPORT_EXPORT QPlatformPrinterSupportPlugin : public QObject, public QPlatformPrinterSupportFactoryInterface +class Q_PRINTSUPPORT_EXPORT QPlatformPrinterSupportPlugin : public QObject { Q_OBJECT - Q_INTERFACES(QPlatformPrinterSupportFactoryInterface:QFactoryInterface) public: explicit QPlatformPrinterSupportPlugin(QObject *parent = 0); ~QPlatformPrinterSupportPlugin(); - virtual QStringList keys() const = 0; virtual QPlatformPrinterSupport *create(const QString &key) = 0; static QPlatformPrinterSupport *get(); -- cgit v1.2.3