diff options
| author | David Skoland <davidskoland@gmail.com> | 2017-02-14 10:21:56 +0100 |
|---|---|---|
| committer | David Skoland <davidskoland@gmail.com> | 2017-02-14 10:21:56 +0100 |
| commit | 9e601caa568353cbb91b4f6e9b0a7a9159a436ac (patch) | |
| tree | a9f8ab31a50aef85e612442689a83fb2fa58c471 | |
| parent | 28c0879e631579273c49d36d36bcc2f1b0e0fb0b (diff) | |
added version label
| -rw-r--r-- | lobby.cpp | 4 | ||||
| -rw-r--r-- | lobby.h | 1 |
2 files changed, 5 insertions, 0 deletions
@@ -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"); @@ -53,6 +53,7 @@ private: AOButton *ui_add_to_fav; AOButton *ui_connect; + QLabel *ui_version; AOButton *ui_about; QListWidget *ui_server_list; |
