1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-04-23 11:52:59 +02:00

26 lines
487 B
C++
Raw Normal View History

2016-12-11 16:09:39 +00:00
#include "notemodel.h"
jop::NoteModel::NoteModel(NoteService &noteService)
{
noteService_ = noteService;
}
int jop::NoteModel::rowCount(const QModelIndex &parent) const
{
return 0;
}
QVariant jop::NoteModel::data(const QModelIndex &index, int role) const
{
return QVariant();
}
QHash<int, QByteArray> jop::NoteModel::roleNames() const
{
QHash<int, QByteArray> roles = QAbstractItemModel::roleNames();
// roles[TitleRole] = "title";
// roles[UuidRole] = "uuid";
return roles;
}