forked from CountMurphy/QTalarm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaboutdialog.cpp
39 lines (35 loc) · 1.06 KB
/
aboutdialog.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
#include "aboutdialog.h"
#include "ui_aboutdialog.h"
#include <QPixmap>
AboutDialog::AboutDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::AboutDialog)
{
ui->setupUi(this);
//set Icon info
QPixmap image;
image.load(":/new/icons/clock.png");
ui->lblIcon->setPixmap(image);
QString InfoText;
InfoText.append("QTalarm was written by CountMurphy");
InfoText.append("\n");
InfoText.append("\n");
InfoText.append("Please send all bugs &");
InfoText.append("\n");
InfoText.append("feature requests to ");
InfoText.append("the git hub page:");
InfoText.append("\n");
ui->lblInfo->setText(InfoText);
ui->lbllink->setOpenExternalLinks(true);
QString linkText;
linkText.append("<a href=http://random-hackery.net>Homepage</a>");
linkText.append("\n");
linkText.append("\n");
linkText.append("<a href=https://github.com/CountMurphy/QTalarm>Git hub</a>");
ui->lbllink->setText(linkText);
ui->lblVersion->setText("Version: "+this->version);
}
AboutDialog::~AboutDialog()
{
delete ui;
}