mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-20 13:18:06 +00:00
Fix build error from Qt version.
This commit is contained in:
parent
33afd2a17a
commit
2d7d007b21
2 changed files with 5 additions and 1 deletions
|
|
@ -101,7 +101,7 @@ public:
|
|||
return true;
|
||||
}
|
||||
*/
|
||||
virtual void resetData(){
|
||||
virtual void resetData() override{
|
||||
beginResetModel();
|
||||
mMappedList.clear();
|
||||
endResetModel();
|
||||
|
|
|
|||
|
|
@ -151,7 +151,11 @@ void ContentListModel::updateContents(ChatMessageModel * messageModel){
|
|||
while( c < mList.size() && mList.at(c).objectCast<ContentModel>()->getContent() != content)
|
||||
++c;
|
||||
if( c < mList.size()){// Found => swap position
|
||||
#if QT_VERSION < QT_VERSION_CHECK(5, 13, 0)
|
||||
mList.swap(count, c);
|
||||
#else
|
||||
mList.swapItemsAt(count, c);
|
||||
#endif
|
||||
}else{// content is new
|
||||
mList.insert(count, QSharedPointer<ContentModel>::create(content, messageModel));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue