From 0425c0fc179607978d6c6601482f500858790152 Mon Sep 17 00:00:00 2001 From: "Uwe L. Korn" Date: Fri, 26 Jul 2013 19:39:36 +0200 Subject: [PATCH] Export DynamicControl to support linking with Qt5 --- src/libtomahawk/playlist/dynamic/DynamicControl.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/libtomahawk/playlist/dynamic/DynamicControl.h b/src/libtomahawk/playlist/dynamic/DynamicControl.h index a5812eb73..967ad1b61 100644 --- a/src/libtomahawk/playlist/dynamic/DynamicControl.h +++ b/src/libtomahawk/playlist/dynamic/DynamicControl.h @@ -20,6 +20,7 @@ #ifndef DYNAMIC_PLAYLIST_CONTROL #define DYNAMIC_PLAYLIST_CONTROL +#include "DllMacro.h" #include "Typedefs.h" @@ -41,7 +42,7 @@ namespace Tomahawk * Each control also has a list of TypeSelectors that comes from the generator, and only one is selected at once. * */ -class DynamicControl : public QObject +class DLLEXPORT DynamicControl : public QObject { Q_OBJECT Q_PROPERTY( QString type READ type WRITE setType ) // the generator type associated with this control @@ -118,6 +119,8 @@ private: QString m_id; }; -}; +} + +Q_DECLARE_METATYPE( Tomahawk::dyncontrol_ptr ) #endif