aboutsummaryrefslogtreecommitdiff
path: root/src/courtroom.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/courtroom.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/courtroom.cpp')
-rw-r--r--src/courtroom.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/courtroom.cpp b/src/courtroom.cpp
index 74e9cde7..96e2a533 100644
--- a/src/courtroom.cpp
+++ b/src/courtroom.cpp
@@ -3,6 +3,9 @@
Courtroom::Courtroom(AOApplication *p_ao_app) : QMainWindow()
{
ao_app = p_ao_app;
+
+ this->setWindowFlags( (this->windowFlags() | Qt::CustomizeWindowHint) & ~Qt::WindowMaximizeButtonHint);
+
ao_app->initBASS();
qsrand(static_cast<uint>(QDateTime::currentMSecsSinceEpoch() / 1000));
@@ -451,13 +454,13 @@ void Courtroom::set_widgets()
if (f_courtroom.width < 0 || f_courtroom.height < 0) {
qDebug() << "W: did not find courtroom width or height in " << filename;
- this->resize(714, 668);
+ this->setFixedSize(714, 668);
}
else {
m_courtroom_width = f_courtroom.width;
m_courtroom_height = f_courtroom.height;
- this->resize(f_courtroom.width, f_courtroom.height);
+ this->setFixedSize(f_courtroom.width, f_courtroom.height);
}
set_fonts();