aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Skoland <davidskoland@gmail.com>2017-02-14 10:21:56 +0100
committerDavid Skoland <davidskoland@gmail.com>2017-02-14 10:21:56 +0100
commit9e601caa568353cbb91b4f6e9b0a7a9159a436ac (patch)
treea9f8ab31a50aef85e612442689a83fb2fa58c471
parent28c0879e631579273c49d36d36bcc2f1b0e0fb0b (diff)
added version label
-rw-r--r--lobby.cpp4
-rw-r--r--lobby.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/lobby.cpp b/lobby.cpp
index 0416d651..cfcc8bf3 100644
--- a/lobby.cpp
+++ b/lobby.cpp
@@ -21,6 +21,7 @@ Lobby::Lobby(AOApplication *p_ao_app) : QMainWindow()
ui_refresh = new AOButton(this, ao_app);
ui_add_to_fav = new AOButton(this, ao_app);
ui_connect = new AOButton(this, ao_app);
+ ui_version = new QLabel(this);
ui_about = new AOButton(this, ao_app);
ui_server_list = new QListWidget(this);
ui_player_count = new QLabel(this);
@@ -75,6 +76,9 @@ void Lobby::set_widgets()
ui_connect->set_image("connect.png");
set_size_and_pos(ui_connect, "connect");
+ ui_version->setText("Version: " + ao_app->get_version_string());
+ set_size_and_pos(ui_version, "version");
+
ui_about->set_image("about.png");
set_size_and_pos(ui_about, "about");
diff --git a/lobby.h b/lobby.h
index 3bf11b71..7743577d 100644
--- a/lobby.h
+++ b/lobby.h
@@ -53,6 +53,7 @@ private:
AOButton *ui_add_to_fav;
AOButton *ui_connect;
+ QLabel *ui_version;
AOButton *ui_about;
QListWidget *ui_server_list;