fixes qt4 compatibility

This commit is contained in:
mfreiholz 2016-04-01 09:53:30 +02:00
parent 4debaaaf85
commit 3d9e3c2efc

View File

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