From 30d0df70f6e749c1d5c5ad3fd92ef710bd9d1d7b Mon Sep 17 00:00:00 2001 From: David Skoland Date: Tue, 14 Feb 2017 10:13:58 +0100 Subject: fixed all-black right-click menus --- lobby.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lobby.cpp') diff --git a/lobby.cpp b/lobby.cpp index c47b673..0416d65 100644 --- a/lobby.cpp +++ b/lobby.cpp @@ -95,7 +95,7 @@ void Lobby::set_widgets() set_size_and_pos(ui_chatbox, "chatbox"); ui_chatbox->setReadOnly(true); - ui_chatbox->setStyleSheet("background-color: rgba(0, 0, 0, 0);"); + ui_chatbox->setStyleSheet("QPlainTextEdit{background-color: rgba(0, 0, 0, 0);}"); set_size_and_pos(ui_chatname, "chatname"); ui_chatname->setStyleSheet("background-color: rgba(0, 0, 0, 0);" -- cgit From 9e601caa568353cbb91b4f6e9b0a7a9159a436ac Mon Sep 17 00:00:00 2001 From: David Skoland Date: Tue, 14 Feb 2017 10:21:56 +0100 Subject: added version label --- lobby.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lobby.cpp') diff --git a/lobby.cpp b/lobby.cpp index 0416d65..cfcc8bf 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"); -- cgit