diff --git a/src/accounts/xmpp/XmppInfoPlugin.cpp b/src/accounts/xmpp/XmppInfoPlugin.cpp index 56397580d..fdeff5d8b 100644 --- a/src/accounts/xmpp/XmppInfoPlugin.cpp +++ b/src/accounts/xmpp/XmppInfoPlugin.cpp @@ -25,6 +25,11 @@ #include "utils/Logger.h" #include "TomahawkSettings.h" +// Forward Declarations breaking QSharedPointer +#if QT_VERSION < QT_VERSION_CHECK( 5, 0, 0 ) + #include "Source.h" +#endif + // remove now playing status after PAUSE_TIMEOUT seconds static const int PAUSE_TIMEOUT = 10; diff --git a/src/infoplugins/linux/mpris/MprisPlugin.h b/src/infoplugins/linux/mpris/MprisPlugin.h index a5997cf55..13cf210b8 100644 --- a/src/infoplugins/linux/mpris/MprisPlugin.h +++ b/src/infoplugins/linux/mpris/MprisPlugin.h @@ -27,6 +27,11 @@ #include "../../InfoPluginDllMacro.h" +// Forward Declarations breaking QSharedPointer +#if QT_VERSION < QT_VERSION_CHECK( 5, 0, 0 ) + #include "PlaylistInterface.h" +#endif + #include #include diff --git a/src/tomahawk/sourcetree/items/SourceTreeItem.cpp b/src/tomahawk/sourcetree/items/SourceTreeItem.cpp index f042b561a..768a2f0cd 100644 --- a/src/tomahawk/sourcetree/items/SourceTreeItem.cpp +++ b/src/tomahawk/sourcetree/items/SourceTreeItem.cpp @@ -21,6 +21,12 @@ #include "audio/AudioEngine.h" #include "utils/Logger.h" +// Forward Declarations breaking QSharedPointer +#if QT_VERSION < QT_VERSION_CHECK( 5, 0, 0 ) + #include "Query.h" +#endif + + using namespace Tomahawk;