summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-11-18 21:43:06 +0100
committerStanislaw Halik <sthalik@misaki.pl>2016-11-18 21:43:06 +0100
commit495184931f8001716231573d4346a970fbd1b5e0 (patch)
treed1e4eb845f0eb2f363e1b6036d5c39551291f40e
parent5b324d3ceeb0da37dd040210065f9fc2cd67db60 (diff)
gui: restore resize disable
-rw-r--r--gui/main-window.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/gui/main-window.cpp b/gui/main-window.cpp
index d3e0baa8..59dc7a7a 100644
--- a/gui/main-window.cpp
+++ b/gui/main-window.cpp
@@ -42,6 +42,7 @@ MainWindow::MainWindow() :
menu_action_mappings(&tray_menu)
{
ui.setupUi(this);
+ setWindowFlags(Qt::MSWindowsFixedSizeDialogHint | windowFlags());
setFixedSize(size());
updateButtonState(false, false);
@@ -574,7 +575,7 @@ bool mk_dialog(mem<dylib> lib, ptr<t>& orig)
if (lib && lib->Dialog)
{
t* dialog = reinterpret_cast<t*>(lib->Dialog());
- dialog->setWindowFlags(Qt::Dialog);
+ dialog->setWindowFlags(Qt::Dialog | Qt::MSWindowsFixedSizeDialogHint);
// HACK: prevent stderr whining by adding a few pixels
dialog->setFixedSize(dialog->size() + QSize(4, 4));
dialog->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
@@ -620,7 +621,7 @@ static bool mk_window(ptr<t>* place, Args&&... params)
else
{
*place = make_unique<t>(std::forward<Args>(params)...);
- (*place)->setWindowFlags(Qt::Dialog);
+ (*place)->setWindowFlags(Qt::Dialog | Qt::MSWindowsFixedSizeDialogHint);
// HACK: prevent stderr whining by adding a few pixels
(*place)->setFixedSize((*place)->size() + QSize(4, 4));
(*place)->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);