Fixes includes for Qt4.

This commit is contained in:
mfreiholz 2016-02-26 12:48:10 +01:00
parent 06304b9818
commit 865213c5b5
2 changed files with 6 additions and 2 deletions

View File

@ -2,6 +2,7 @@
#define ADS_CONTAINERWIDGET_H
#include <QList>
#include <QHash>
#include <QPointer>
#include <QFrame>
class QPoint;
@ -143,9 +144,7 @@ private:
// Helper lookup maps, restricted to this container.
QHash<int, SectionContent::WeakPtr> _scLookupMapById;
QHash<QString, SectionContent::WeakPtr> _scLookupMapByName;
QHash<int, SectionWidget*> _swLookupMapById;
//QHash<ContainerWidget*, QHash<int, SectionWidget*> > _swLookupMapByContainer; // TODO Do we really need it?
// Layout stuff

View File

@ -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