From 865213c5b54c852953c42a7d6c032ad1cccf923e Mon Sep 17 00:00:00 2001 From: mfreiholz Date: Fri, 26 Feb 2016 12:48:10 +0100 Subject: [PATCH] Fixes includes for Qt4. --- AdvancedDockingSystem/include/ads/ContainerWidget.h | 3 +-- AdvancedDockingSystem/include/ads/Internal.h | 5 +++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/AdvancedDockingSystem/include/ads/ContainerWidget.h b/AdvancedDockingSystem/include/ads/ContainerWidget.h index f596f32..cb18624 100644 --- a/AdvancedDockingSystem/include/ads/ContainerWidget.h +++ b/AdvancedDockingSystem/include/ads/ContainerWidget.h @@ -2,6 +2,7 @@ #define ADS_CONTAINERWIDGET_H #include +#include #include #include class QPoint; @@ -143,9 +144,7 @@ private: // Helper lookup maps, restricted to this container. QHash _scLookupMapById; QHash _scLookupMapByName; - QHash _swLookupMapById; - //QHash > _swLookupMapByContainer; // TODO Do we really need it? // Layout stuff diff --git a/AdvancedDockingSystem/include/ads/Internal.h b/AdvancedDockingSystem/include/ads/Internal.h index ccd996a..b97e838 100644 --- a/AdvancedDockingSystem/include/ads/Internal.h +++ b/AdvancedDockingSystem/include/ads/Internal.h @@ -6,6 +6,11 @@ #include "ads/API.h" +#if QT_VERSION >= 0x050000 +#else +#include "ads/SectionContent.h" +#endif + #define SCLookupMapById(X) X->_scLookupMapById #define SCLookupMapByName(X) X->_scLookupMapByName #define SWLookupMapById(X) X->_swLookupMapById