mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-06 06:19:52 +08:00

Thanks to [marked JavaScript library](https://github.com/chjj/marked) by Christopher Jeffrey. The [style sheet](http://kevinburke.bitbucket.org/markdowncss/markdown.css) was created by Kevin Burke. Signed-off-by: Le Tan <tamlokveer@gmail.com>
25 lines
471 B
C++
25 lines
471 B
C++
#ifndef VDOCUMENT_H
|
|
#define VDOCUMENT_H
|
|
|
|
#include <QObject>
|
|
#include <QString>
|
|
|
|
class VDocument : public QObject
|
|
{
|
|
Q_OBJECT
|
|
Q_PROPERTY(QString text MEMBER m_text NOTIFY textChanged)
|
|
public:
|
|
explicit VDocument(QObject *parent = 0);
|
|
VDocument(const QString &text, QObject *parent = 0);
|
|
void setText(const QString &text);
|
|
QString getText();
|
|
|
|
signals:
|
|
void textChanged(const QString &text);
|
|
|
|
private:
|
|
QString m_text;
|
|
};
|
|
|
|
#endif // VDOCUMENT_H
|