diff options
author | Lars Knoll <lars.knoll@nokia.com> | 2012-05-27 05:25:47 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-06-08 00:12:20 +0200 |
commit | 02191b6e4b03fe05b1b953b3e5d5e456cc5817c9 (patch) | |
tree | 74ab227585ec52c6882a2f875910c729ee6963bb /src/printsupport/kernel | |
parent | 7715a2d0a55a8988162d32663c572cff7fbf64f6 (diff) |
Remove dependency from QFactoryInterface for the print plugin
Change-Id: Ia35890b72e7797ef655bf97b4a34af2908657c0e
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/printsupport/kernel')
-rw-r--r-- | src/printsupport/kernel/qplatformprintplugin.h | 11 |
1 files changed, 1 insertions, 10 deletions
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(); |