quill/textwidget.cpp

31 lines
679 B
C++
Raw Normal View History

#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);
ui->textBrowser->setFont(QFont("u001"));
// Stylesheet
2022-04-03 19:44:46 -07:00
QFile stylesheetFile("eink.qss");
stylesheetFile.open(QFile::ReadOnly);
this->setStyleSheet(stylesheetFile.readAll());
stylesheetFile.close();
if(global::text::textBrowserDialog == true) {
ui->textBrowser->setStyleSheet("font-size: 9pt");
}
ui->textBrowser->setText(global::text::textBrowserContents);
}
textwidget::~textwidget()
{
delete ui;
}