From b3af67cb6e87c2a900b024910916cc0e939003fc Mon Sep 17 00:00:00 2001 From: bitdust Date: Mon, 15 May 2017 19:35:08 +0800 Subject: [PATCH] =?UTF-8?q?Fix=EF=BC=9A=20disable=20fullscreen=20button?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WamaCry/wamacry.cpp | 3 ++- WamaCry/wamacry.ui | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/WamaCry/wamacry.cpp b/WamaCry/wamacry.cpp index ee57454..3826567 100644 --- a/WamaCry/wamacry.cpp +++ b/WamaCry/wamacry.cpp @@ -14,7 +14,8 @@ WamaCry::WamaCry(QWidget *parent) : ui(new Ui::WamaCry) { ui->setupUi(this); - + setWindowFlags(windowFlags()& ~Qt::WindowMaximizeButtonHint); + setFixedSize(this->width(), this->height()); // read settings QSettings settings("./mod/config.ini", QSettings::IniFormat); settings.setIniCodec("UTF8"); diff --git a/WamaCry/wamacry.ui b/WamaCry/wamacry.ui index f1de8a2..fb28a46 100644 --- a/WamaCry/wamacry.ui +++ b/WamaCry/wamacry.ui @@ -10,6 +10,9 @@ 612 + + Qt::DefaultContextMenu + Wama Decrypt0r 3.0