summaryrefslogtreecommitdiffstats
path: root/kchart/kdchart/kdchart_export.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-01-20 01:29:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-01-20 01:29:50 +0000
commit8362bf63dea22bbf6736609b0f49c152f975eb63 (patch)
tree0eea3928e39e50fae91d4e68b21b1e6cbae25604 /kchart/kdchart/kdchart_export.h
downloadkoffice-8362bf63dea22bbf6736609b0f49c152f975eb63.tar.gz
koffice-8362bf63dea22bbf6736609b0f49c152f975eb63.zip
Added old abandoned KDE3 version of koffice
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1077364 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kchart/kdchart/kdchart_export.h')
-rw-r--r--kchart/kdchart/kdchart_export.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/kchart/kdchart/kdchart_export.h b/kchart/kdchart/kdchart_export.h
new file mode 100644
index 00000000..81f1d47f
--- /dev/null
+++ b/kchart/kdchart/kdchart_export.h
@@ -0,0 +1,47 @@
+#ifndef KDCHART_EXPORT_H
+#define KDCHART_EXPORT_H
+
+#include <qglobal.h>
+
+#if 1
+#include <koffice_export.h>
+#else
+
+#if defined(Q_OS_WIN32) && defined(KDCHART_DLL)
+#define DLL_EXPORT __declspec(dllexport)
+#define DLL_IMPORT __declspec(dllimport)
+#else
+#define DLL_EXPORT
+#define DLL_IMPORT
+#endif
+
+#if defined(KDCHART_DLL)
+#define KDCHART_EXPORT DLL_EXPORT
+#else
+#define KDCHART_EXPORT DLL_IMPORT
+#endif
+
+#endif
+
+#endif // #if 1
+
+/*
+ How to make a KD Chart DLL rather than linking statically:
+
+ 1. We have an #include <kdchart_export.h> statement in all
+ of our public KD Chart header files
+
+ 2. We have the KDCHART_EXPORT macro added to all of our
+ public classes.
+
+ So e.g. the class header reads:
+
+ class KDCHART_EXPORT KDChartWidget : public QWidget
+ {
+
+ }
+
+
+ 3. In order to create a DLL
+ just add "CONFIG += dll" to the qmake command line or to the [KD Chart directory]/src/src.pro file
+*/