summaryrefslogtreecommitdiffhomepage
path: root/spline-widget
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-11-01 08:36:28 +0100
committerStanislaw Halik <sthalik@misaki.pl>2015-11-01 08:49:12 +0100
commitcc16fd0121fe79ae1fd9539a606c19827f64bc23 (patch)
treed141902716ea4b8e563d9e708c3e99671d791f40 /spline-widget
parent73921613ddddc8d1f8e0caed21ab8dd490a74eb1 (diff)
use newly-added preprocessor variable
Diffstat (limited to 'spline-widget')
-rw-r--r--spline-widget/functionconfig.h9
-rw-r--r--spline-widget/qfunctionconfigurator.h4
2 files changed, 10 insertions, 3 deletions
diff --git a/spline-widget/functionconfig.h b/spline-widget/functionconfig.h
index 6d76d0de..3d2fc23c 100644
--- a/spline-widget/functionconfig.h
+++ b/spline-widget/functionconfig.h
@@ -8,6 +8,7 @@
#pragma once
+#include <QtGlobal>
#include <QList>
#include <QPointF>
#include <QString>
@@ -17,7 +18,13 @@
#include <limits>
#include "opentrack-compat/qcopyable-mutex.hpp"
-class Map {
+#ifdef BUILD_opentrack_spline_widget
+# define SPLINE_WIDGET_EXPORT Q_DECL_EXPORT
+#else
+# define SPLINE_WIDGET_EXPORT Q_DECL_IMPORT
+#endif
+
+class SPLINE_WIDGET_EXPORT Map {
private:
static constexpr int value_count = 10000;
diff --git a/spline-widget/qfunctionconfigurator.h b/spline-widget/qfunctionconfigurator.h
index baea9e34..4a9cb5f1 100644
--- a/spline-widget/qfunctionconfigurator.h
+++ b/spline-widget/qfunctionconfigurator.h
@@ -12,10 +12,10 @@
#include <QWidget>
#include <QtGui>
#include <QPointF>
-#include "spline-widget/functionconfig.h"
+#include "functionconfig.h"
#include "opentrack/plugin-api.hpp"
-class QFunctionConfigurator : public QWidget
+class SPLINE_WIDGET_EXPORT QFunctionConfigurator : public QWidget
{
Q_OBJECT
Q_PROPERTY(QColor colorBezier READ colorBezier WRITE setColorBezier)