#include "notesdialog.h" #include "ui_notesdialog.h" #include NotesDialog::NotesDialog(QWidget *parent) : QDialog(parent), ui(new Ui::NotesDialog) { ui->setupUi(this); QByteArray text; QFile notes(":/notes/notes.txt"); if (notes.open(QIODevice::ReadOnly | QIODevice::Text)) { text = notes.readAll(); notes.close(); } else { text = "No notes available right now! Maybe next version!"; } ui->notesArea->setMarkdown(text); } NotesDialog::~NotesDialog() { delete ui; }