quill/textwidget.cpp
Nicolas Mailloux 9428483d02 Add QTextBrowser widget and dialog
Some things, such as UIDs, just couldn't display normally and we need
such a browser for them.
I'll work on implementing as the main engine for the Reader framework.
2021-06-08 07:49:52 -04:00

26 lines
532 B
C++

#include "textwidget.h"
#include "ui_textwidget.h"
#include "functions.h"
#include <QFile>
#include <QProcess>
textwidget::textwidget(QWidget *parent) :
QWidget(parent),
ui(new Ui::textwidget)
{
ui->setupUi(this);
// Stylesheet
QFile stylesheetFile(":/resources/eink.qss");
stylesheetFile.open(QFile::ReadOnly);
this->setStyleSheet(stylesheetFile.readAll());
stylesheetFile.close();
ui->textBrowser->setText(global::text::textBrowserContents);
}
textwidget::~textwidget()
{
delete ui;
}