Version to main screen

This commit is contained in:
pokamest 2021-12-14 12:50:57 +03:00
parent 313ceed1d0
commit 5aa47d35e7
3 changed files with 14 additions and 0 deletions

View file

@ -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);
}

View file

@ -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)

View file

@ -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