summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--utils/themeeditor/qtfindreplacedialog/findreplace_global.h4
-rw-r--r--utils/themeeditor/themeeditor.pro2
2 files changed, 6 insertions, 0 deletions
diff --git a/utils/themeeditor/qtfindreplacedialog/findreplace_global.h b/utils/themeeditor/qtfindreplacedialog/findreplace_global.h
index 4f8c1a7353..be71bff752 100644
--- a/utils/themeeditor/qtfindreplacedialog/findreplace_global.h
+++ b/utils/themeeditor/qtfindreplacedialog/findreplace_global.h
@@ -8,10 +8,14 @@
#include <QtCore/qglobal.h>
+#ifndef FINDREPLACE_NOLIB
#if defined(FINDREPLACE_LIBRARY)
# define FINDREPLACESHARED_EXPORT Q_DECL_EXPORT
#else
# define FINDREPLACESHARED_EXPORT Q_DECL_IMPORT
#endif
+#else
+#define FINDREPLACESHARED_EXPORT
+#endif
#endif // FINDREPLACE_GLOBAL_H
diff --git a/utils/themeeditor/themeeditor.pro b/utils/themeeditor/themeeditor.pro
index 3d9ddca694..c7bde1fa1a 100644
--- a/utils/themeeditor/themeeditor.pro
+++ b/utils/themeeditor/themeeditor.pro
@@ -23,6 +23,8 @@ INCLUDEPATH += models
INCLUDEPATH += graphics
INCLUDEPATH += quazip
INCLUDEPATH += qtfindreplacedialog
+
+DEFINES += FINDREPLACE_NOLIB
cross {
message("Crossbuilding for W32 binary")