2021-06-08 04:49:52 -07:00
|
|
|
#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();
|
|
|
|
|
2021-06-14 09:24:20 -07:00
|
|
|
if(global::text::textBrowserDialog == true) {
|
|
|
|
ui->textBrowser->setStyleSheet("font-size: 9pt");
|
|
|
|
}
|
2021-06-08 04:49:52 -07:00
|
|
|
ui->textBrowser->setText(global::text::textBrowserContents);
|
|
|
|
}
|
|
|
|
|
|
|
|
textwidget::~textwidget()
|
|
|
|
{
|
|
|
|
delete ui;
|
|
|
|
}
|