18#ifndef MOTIV_LICENSE_HPP
19#define MOTIV_LICENSE_HPP
36 explicit License(QWidget *parent =
nullptr) : QTextEdit(parent) {
37 QFile licenseFile(
":res/gpl-3.0.html");
38 if (!licenseFile.open(QIODevice::ReadOnly | QIODevice::Text)) {
39 qDebug(
"license file could not be opened");
43 QTextStream licenseTextStream(&licenseFile);
44 QString licenseText = licenseTextStream.readAll();
47 this->setReadOnly(
true);
48 this->setHtml(licenseText);
49 this->setWindowTitle(tr(
"License"));
A widget showcasing displaying license information about this software.
License(QWidget *parent=nullptr)