From 3d9e3c2efc2ae7f49024197ff1b964e41d98372f Mon Sep 17 00:00:00 2001 From: mfreiholz Date: Fri, 1 Apr 2016 09:53:30 +0200 Subject: [PATCH] fixes qt4 compatibility --- .../src/dialogs/SectionContentListModel.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/AdvancedDockingSystemDemo/src/dialogs/SectionContentListModel.cpp b/AdvancedDockingSystemDemo/src/dialogs/SectionContentListModel.cpp index 0151176..4e64381 100644 --- a/AdvancedDockingSystemDemo/src/dialogs/SectionContentListModel.cpp +++ b/AdvancedDockingSystemDemo/src/dialogs/SectionContentListModel.cpp @@ -14,10 +14,16 @@ SectionContentListModel::~SectionContentListModel() void SectionContentListModel::init(ADS_NS::ContainerWidget* cw) { +#if QT_VERSION >= 0x050000 beginResetModel(); _cw = cw; _contents = _cw->contents(); endResetModel(); +#else + _cw = cw; + _contents = _cw->contents(); + reset(); +#endif } int SectionContentListModel::columnCount(const QModelIndex& parent) const