1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-04-20 11:28:40 +02:00
Laurent Cozic a409f994cd api sync
2016-12-27 21:25:07 +01:00

29 lines
412 B
C++
Executable File

#include "note.h"
using namespace jop;
Note::Note()
{
}
QString Note::body() const {
return body_;
}
void Note::setBody(const QString &v) {
body_ = v;
}
QStringList Note::dbFields() {
QStringList output = Item::dbFields();
output << "body";
return output;
}
void Note::fromSqlQuery(const QSqlQuery &q) {
Item::fromSqlQuery(q);
int idx = Item::dbFields().size();
body_ = q.value(idx).toString();
}