Version to main screen
This commit is contained in:
parent
313ceed1d0
commit
5aa47d35e7
3 changed files with 14 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue