mirror of
https://github.com/Quill-OS/quill.git
synced 2024-10-31 21:33:22 -07:00
0756004db6
Inter is still there in a lot of areas and blends quite well with this new font.
30 lines
691 B
C++
30 lines
691 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);
|
|
ui->textBrowser->setFont(QFont("u001"));
|
|
|
|
// Stylesheet
|
|
QFile stylesheetFile(":/resources/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;
|
|
}
|