summaryrefslogtreecommitdiffstats
path: root/src/printsupport/platform/windows/qwindowsprintersupport.cpp
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2021-11-16 16:37:35 +0100
committerJoerg Bornemann <joerg.bornemann@qt.io>2021-11-19 18:48:07 +0100
commit68600869cd3a1b5f118d9a69200f1a6453e0c8ec (patch)
treeb193f1b907af9c0b9ac65f4630584a1a976cf9ec /src/printsupport/platform/windows/qwindowsprintersupport.cpp
parenta41d9bcac90af5d8f528d6198ea91f25e5189082 (diff)
Link printer plugins into user projects when using a static Qt
When building a user project against a static Qt on Windows or macOS the static printer support plugins were not linked. Move the Q_IMPORT_PLUGIN statements to qplatformprintplugin.cpp, which is a translation unit that is guaranteed to be linked into the user project. Pick-to: 6.2 Fixes: QTBUG-97490 Change-Id: Ic35c6483a664a06461304c7e8a2b7b06ce651ed6 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/printsupport/platform/windows/qwindowsprintersupport.cpp')
-rw-r--r--src/printsupport/platform/windows/qwindowsprintersupport.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/printsupport/platform/windows/qwindowsprintersupport.cpp b/src/printsupport/platform/windows/qwindowsprintersupport.cpp
index fbf11fe93e..8d8322dca9 100644
--- a/src/printsupport/platform/windows/qwindowsprintersupport.cpp
+++ b/src/printsupport/platform/windows/qwindowsprintersupport.cpp
@@ -103,8 +103,6 @@ QPlatformPrinterSupport *QWindowsPrinterSupportPlugin::create(const QString &key
return nullptr;
}
-Q_IMPORT_PLUGIN(QWindowsPrinterSupportPlugin)
-
#include "qwindowsprintersupport.moc"
QT_END_NAMESPACE