mirror of
https://github.com/laurent22/joplin.git
synced 2025-04-23 11:52:59 +02:00
26 lines
487 B
C++
26 lines
487 B
C++
|
#include "notemodel.h"
|
||
|
|
||
|
jop::NoteModel::NoteModel(NoteService ¬eService)
|
||
|
{
|
||
|
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;
|
||
|
|
||
|
}
|