-
Notifications
You must be signed in to change notification settings - Fork 1
/
about.cpp
40 lines (36 loc) · 1.03 KB
/
about.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#include "about.h"
#include "ui_about.h"
#include "form1.h"
#include <QFile>
#include <qtextstream.h>
about::about(QWidget *parent) :
QDialog(parent),
ui(new Ui::about)
{
ui->setupUi(this);
this->setAutoFillBackground(true);
this->setWindowIcon(QIcon::fromTheme("help-about"));
this->setWindowTitle("About Persian Subtitle Fixer");
this->ui->lblAuthorName->setText("Author: Ehsan Tork, E-Mail: journalehsan@gmail.com");
this->ui->lblAppname->setText("Persian Subtitle Fixer TP1");
this->ui->lblAppversion->setText("0.3-TP1");
QFile fileopen(":/text/LICENSE");
if (!fileopen.open(QIODevice::ReadOnly | QIODevice::Text)){
//;
}
QTextStream open(&fileopen);
QString filedata = open.readAll();
fileopen.flush();
fileopen.close();
ui->plainTextEdit->setPlainText(filedata);
ui->image->setScaledContents(true);
ui->image->setMaximumHeight(70);
ui->image->setMaximumWidth(70);
}
about::~about()
{
delete ui;
}
void about::on_about_accepted()
{
}