Commit 6d0a921b authored by Leander Schulten's avatar Leander Schulten
Browse files

Add clear function to the Modelvector

parent 357d8fa6
......@@ -173,6 +173,15 @@ public:
typename std::vector<Type>::reference back(){
return model.back();
}
void clear(){
if(size()==0){
return;
}
beginRemoveRows(QModelIndex(),0,size()-1);
model.clear();
endRemoveRows();
}
};
#endif // MODELVECTOR_H
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment