Skip to content

Commit

Permalink
Version to main screen
Browse files Browse the repository at this point in the history
  • Loading branch information
pokamest committed Dec 14, 2021
1 parent 313ceed commit 5aa47d3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions client/ui/pages_logic/VpnLogic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include "vpnconnection.h"
#include <functional>
#include "../uilogic.h"
#include "defines.h"


VpnLogic::VpnLogic(UiLogic *logic, QObject *parent):
Expand Down Expand Up @@ -59,6 +60,8 @@ void VpnLogic::onUpdatePage()
else {
set_labelErrorText("");
}
QString ver = QString("v. %2").arg(QString(APP_MAJOR_VERSION));
set_labelVersionText(ver);
}


Expand Down
1 change: 1 addition & 0 deletions client/ui/pages_logic/VpnLogic.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
10 changes: 10 additions & 0 deletions client/ui/qml/Pages/PageVPN.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5aa47d3

Please sign in to comment.