You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-07-16 00:14:34 +02:00
refactoring to use vector of smart pointers
This commit is contained in:
@ -56,22 +56,17 @@ int AbstractListModel::rowCount(const QModelIndex & parent) const { Q_UNUSED(par
|
||||
// return atIndex(index.row());
|
||||
//}
|
||||
|
||||
BaseModel AbstractListModel::newBaseModel() const {
|
||||
qFatal("AbstractListModel::baseModel() not implemented");
|
||||
return BaseModel();
|
||||
}
|
||||
|
||||
int AbstractListModel::baseModelCount() const {
|
||||
qFatal("AbstractListModel::baseModelCount() not implemented");
|
||||
return 0;
|
||||
}
|
||||
|
||||
BaseModel AbstractListModel::cacheGet(int index) const {
|
||||
BaseModel* AbstractListModel::cacheGet(int index) const {
|
||||
qFatal("AbstractListModel::cacheGet() not implemented");
|
||||
return BaseModel();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void AbstractListModel::cacheSet(int index, const BaseModel &baseModel) {
|
||||
void AbstractListModel::cacheSet(int index, BaseModel* baseModel) const {
|
||||
qFatal("AbstractListModel::cacheSet() not implemented");
|
||||
}
|
||||
|
||||
@ -80,10 +75,15 @@ bool AbstractListModel::cacheIsset(int index) const {
|
||||
return false;
|
||||
}
|
||||
|
||||
void AbstractListModel::cacheClear() {
|
||||
void AbstractListModel::cacheClear() const {
|
||||
qFatal("AbstractListModel::cacheClear() not implemented");
|
||||
}
|
||||
|
||||
int AbstractListModel::cacheSize() const {
|
||||
qFatal("AbstractListModel::cacheSize() not implemented");
|
||||
return -1;
|
||||
}
|
||||
|
||||
void AbstractListModel::showVirtualItem() {
|
||||
virtualItemShown_ = true;
|
||||
beginInsertRows(QModelIndex(), this->rowCount() - 1, this->rowCount() - 1);
|
||||
|
Reference in New Issue
Block a user