aboutsummaryrefslogtreecommitdiff
path: root/src/lobby.cpp
diff options
context:
space:
mode:
authoroldmud0 <oldmud0@users.noreply.github.com>2020-11-10 08:56:45 -0600
committerGitHub <noreply@github.com>2020-11-10 08:56:45 -0600
commitfe3b16829fc51e04e284436788db57e96bdded24 (patch)
tree0c74b9d7980ad2b3e78713112944cd030de937ac /src/lobby.cpp
parentfe3224d7e8ebc81e5389e46f38f2e1120a78f9b8 (diff)
parent2dbedf516391c8f432bfc5a2d2749ba054a78e06 (diff)
Merge pull request #335 from AttorneyOnline/white_space
* set no maximize flag on lobby * set no maximize flag on courtroom * set no maximize flag on charselect * stop them from dragging the charselect * stop them from dragging the courtroom * stop them from dragging the lobby Co-authored-by: stonedDiscord <10584181+stonedDiscord@users.noreply.github.com>
Diffstat (limited to 'src/lobby.cpp')
-rw-r--r--src/lobby.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lobby.cpp b/src/lobby.cpp
index eaa73ce3..79a565a8 100644
--- a/src/lobby.cpp
+++ b/src/lobby.cpp
@@ -13,6 +13,7 @@ Lobby::Lobby(AOApplication *p_ao_app) : QMainWindow()
this->setWindowTitle(tr("Attorney Online 2"));
this->setWindowIcon(QIcon(":/logo.png"));
+ this->setWindowFlags( (this->windowFlags() | Qt::CustomizeWindowHint) & ~Qt::WindowMaximizeButtonHint);
ui_background = new AOImage(this, ao_app);
ui_public_servers = new AOButton(this, ao_app);
@@ -97,10 +98,10 @@ void Lobby::set_widgets()
"Did you download all resources correctly from tiny.cc/getao, "
"including the large 'base' folder?"));
- this->resize(517, 666);
+ this->setFixedSize(517, 666);
}
else {
- this->resize(f_lobby.width, f_lobby.height);
+ this->setFixedSize(f_lobby.width, f_lobby.height);
}
set_size_and_pos(ui_background, "lobby");