qTox
Version: nightly | Commit: bc751c8e1cac455f9690654fcfe0f560d2d7dfdd
src
widget
form
settings
aboutform.h
Go to the documentation of this file.
1
/*
2
Copyright © 2014-2019 by The qTox Project Contributors
3
4
This file is part of qTox, a Qt-based graphical interface for Tox.
5
6
qTox is libre software: you can redistribute it and/or modify
7
it under the terms of the GNU General Public License as published by
8
the Free Software Foundation, either version 3 of the License, or
9
(at your option) any later version.
10
11
qTox is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
GNU General Public License for more details.
15
16
You should have received a copy of the GNU General Public License
17
along with qTox. If not, see <http://www.gnu.org/licenses/>.
18
*/
19
20
#pragma once
21
22
#include "
genericsettings.h
"
23
24
#include <memory>
25
class
Core
;
26
class
QTimer;
27
class
QString;
28
class
UpdateCheck
;
29
class
QLayoutItem;
30
31
namespace
Ui
{
32
class
AboutSettings;
33
}
34
35
class
AboutForm
:
public
GenericForm
36
{
37
Q_OBJECT
38
public
:
39
AboutForm
(
UpdateCheck
*
updateCheck
);
40
~AboutForm
();
41
QString
getFormName
() final
42
{
43
return
tr(
"About"
);
44
}
45
46
public
slots:
47
void
onUpdateAvailable
(QString latestVersion, QUrl link);
48
void
onUpToDate
();
49
void
onUpdateCheckFailed
();
50
void
reloadTheme
()
override
;
51
void
onUnstableVersion
();
52
53
private
:
54
void
retranslateUi
();
55
void
replaceVersions
();
56
inline
QString
createLink
(QString path, QString text)
const
;
57
58
private
:
59
Ui::AboutSettings*
bodyUI
;
60
QTimer*
progressTimer
;
61
UpdateCheck
*
updateCheck
;
62
QMetaObject::Connection
linkConnection
;
63
};
AboutForm::linkConnection
QMetaObject::Connection linkConnection
Definition:
aboutform.h:62
AboutForm::retranslateUi
void retranslateUi()
Retranslate all elements in the form.
Definition:
aboutform.cpp:226
AboutForm
Definition:
aboutform.h:35
AboutForm::~AboutForm
~AboutForm()
Definition:
aboutform.cpp:217
AboutForm::AboutForm
AboutForm(UpdateCheck *updateCheck)
Constructor of AboutForm.
Definition:
aboutform.cpp:57
AboutForm::reloadTheme
void reloadTheme() override
Definition:
aboutform.cpp:193
AboutForm::bodyUI
Ui::AboutSettings * bodyUI
Definition:
aboutform.h:59
genericsettings.h
AboutForm::onUnstableVersion
void onUnstableVersion()
Definition:
aboutform.cpp:198
Ui
Definition:
filetransferwidget.h:30
AboutForm::onUpToDate
void onUpToDate()
Definition:
aboutform.cpp:183
AboutForm::onUpdateCheckFailed
void onUpdateCheckFailed()
Definition:
aboutform.cpp:188
AboutForm::replaceVersions
void replaceVersions()
Update versions and links.
Definition:
aboutform.cpp:91
AboutForm::progressTimer
QTimer * progressTimer
Definition:
aboutform.h:60
AboutForm::getFormName
QString getFormName() final
Definition:
aboutform.h:41
AboutForm::onUpdateAvailable
void onUpdateAvailable(QString latestVersion, QUrl link)
Definition:
aboutform.cpp:175
AboutForm::updateCheck
UpdateCheck * updateCheck
Definition:
aboutform.h:61
AboutForm::createLink
QString createLink(QString path, QString text) const
Creates hyperlink with specific style.
Definition:
aboutform.cpp:210
UpdateCheck
Definition:
updatecheck.h:32
GenericForm
Definition:
genericsettings.h:24
Core
Definition:
core.h:59
Generated by
1.8.17