mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-23 02:00:20 +07:00
Version to main screen
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
#include "vpnconnection.h"
|
||||
#include <functional>
|
||||
#include "../uilogic.h"
|
||||
#include "defines.h"
|
||||
|
||||
|
||||
VpnLogic::VpnLogic(UiLogic *logic, QObject *parent):
|
||||
@@ -59,6 +60,8 @@ void VpnLogic::onUpdatePage()
|
||||
else {
|
||||
set_labelErrorText("");
|
||||
}
|
||||
QString ver = QString("v. %2").arg(QString(APP_MAJOR_VERSION));
|
||||
set_labelVersionText(ver);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -22,6 +22,7 @@ class VpnLogic : public PageLogicBase
|
||||
AUTO_PROPERTY(bool, isContainerWorkingOnPlatform)
|
||||
|
||||
AUTO_PROPERTY(QString, labelErrorText)
|
||||
AUTO_PROPERTY(QString, labelVersionText)
|
||||
|
||||
AUTO_PROPERTY(bool, radioButtonVpnModeAllSitesChecked)
|
||||
AUTO_PROPERTY(bool, radioButtonVpnModeForwardSitesChecked)
|
||||
|
||||
@@ -20,6 +20,16 @@ PageBase {
|
||||
source: "qrc:/images/background_connected.png"
|
||||
}
|
||||
|
||||
LabelType {
|
||||
x: 10
|
||||
y: 5
|
||||
width: 100
|
||||
height: 21
|
||||
text: VpnLogic.labelVersionText
|
||||
color: "#dddddd"
|
||||
font.pixelSize: 12
|
||||
}
|
||||
|
||||
ImageButtonType {
|
||||
x: parent.width - 40
|
||||
y: 10
|
||||
|
||||
Reference in New Issue
Block a user