Contributors / Release notes dialogs refactoring

This commit is contained in:
bsongis
2015-07-08 19:42:18 +02:00
parent 46d7fb3ff6
commit df7f715dd3
13 changed files with 841 additions and 729 deletions
+25
View File
@@ -0,0 +1,25 @@
#include "releasenotesdialog.h"
#include "ui_htmldialog.h"
ReleaseNotesDialog::ReleaseNotesDialog(QWidget * parent) :
QDialog(parent, Qt::WindowTitleHint | Qt::WindowSystemMenuHint),
ui(new Ui::HtmlDialog)
{
ui->setupUi(this);
setWindowTitle(tr("Companion Release Notes"));
setWindowIcon(CompanionIcon("changelog.png"));
QFile file(":/releasenotes.txt");
if (file.open( QIODevice::ReadOnly | QIODevice::Text ) ) {
ui->textEditor->setHtml(file.readAll());
ui->textEditor->setOpenExternalLinks(true);
}
ui->textEditor->scroll(0, 0);
ui->textEditor->setOpenExternalLinks(true);
}
ReleaseNotesDialog::~ReleaseNotesDialog()
{
delete ui;
}