This repository has been archived by the owner on Nov 25, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 59
/
about.cpp
87 lines (71 loc) · 3 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#include "about.h"
aboutDialog::aboutDialog(QWidget *parent) : QDialog(parent)
{
setupUi(this);
layout()->setSizeConstraint(QLayout::SetFixedSize);
setWindowFlags(windowFlags() | Qt::MSWindowsFixedSizeDialogHint);
label_Version->setText(tr("Version %1 - %2").arg(APPVERS, APPDATE));
textEdit->setAlignment(Qt::AlignCenter);
textEdit->textCursor().insertText(tr("This program is Freeware and may be installed and used free of charge for non-commercial use on as many computers as you like without limitations.\n\nA liability for any damages resulting from the use is excluded. Use at your own risk!"));
textEdit->moveCursor(QTextCursor::Start);
textEdit->setFixedHeight(5 * textEdit->fontMetrics().height() + static_cast<int>(textEdit->document()->documentMargin()) + 2);
}
void aboutDialog::mouseReleaseEvent(QMouseEvent *me)
{
QWidget *child = QWidget::childAt(me->pos());
if(child)
{
QString name = child->objectName();
if(name == "label_Mail")
{
QDesktopServices::openUrl(QUrl(QByteArray::fromBase64("bWFpbHRvOkxhenlUQG1haWxib3gub3JnP3N1YmplY3Q9UlJDQyZib2R5PVdyaXRlIGluIEVuZ2xpc2ggb3IgR2VybWFuIHBsZWFzZS4uLg==")));
}
else if(name == "label_Forum")
{
QDesktopServices::openUrl(QUrl(QByteArray::fromBase64("aHR0cHM6Ly93d3cucm9ib3Rlci1mb3J1bS5jb20vaW5kZXgucGhwP3RocmVhZC8zMDMwOS1yb2Jvcm9jay1jb250cm9sLWNlbnRlci1kZXNrdG9wLWFwcC1mJUMzJUJDci13aW4tbGluLW9zeA==")));
}
else if(name == "label_Donation")
{
if(QMessageBox::warning(this, APPNAME, tr("Please note the following points:\n\n* The payment is made voluntarily without the acquisition of claims.\n* You receive no rights to the offered software.\n* Because this is not a donation in juridical sense no certificate can be issued.\n\nWould you like to support the further development of this project nevertheless?"), QMessageBox::Yes | QMessageBox::No, QMessageBox::Yes) == QMessageBox::Yes)
{
QDesktopServices::openUrl(QUrl(QByteArray::fromBase64("aHR0cHM6Ly93d3cucGF5cGFsLmNvbS9jZ2ktYmluL3dlYnNjcj9jbWQ9X2RvbmF0aW9ucyZidXNpbmVzcz1MYXp5VEBtYWlsYm94Lm9yZyZpdGVtX25hbWU9Um9ib1JvY2srQ29udHJvbCtDZW50ZXImYW1vdW50PTAmY3VycmVuY3lfY29kZT1FVVI=")));
}
}
}
}
void aboutDialog::on_label_qsshsocket_linkActivated(QString link)
{
QDesktopServices::openUrl(link);
}
void aboutDialog::on_label_qaes_linkActivated(QString link)
{
QDesktopServices::openUrl(link);
}
void aboutDialog::on_label_qarchive_linkActivated(QString link)
{
QDesktopServices::openUrl(link);
}
void aboutDialog::on_label_ccrypt_linkActivated(QString link)
{
QDesktopServices::openUrl(link);
}
void aboutDialog::on_label_libarchive_linkActivated(QString link)
{
QDesktopServices::openUrl(link);
}
void aboutDialog::on_label_zlib_linkActivated(QString link)
{
QDesktopServices::openUrl(link);
}
void aboutDialog::on_label_libssh_linkActivated(QString link)
{
QDesktopServices::openUrl(link);
}
void aboutDialog::on_label_openssl_linkActivated(QString link)
{
QDesktopServices::openUrl(link);
}
void aboutDialog::on_label_qt_linkActivated(QString link)
{
QDesktopServices::openUrl(link);
}