ui: fix window issue introduced by QT 5.15.1. Investigate why this is required at all.

This commit is contained in:
sshumakov3
2020-11-16 01:12:24 +03:00
parent bfc0886b46
commit 40e55c8053
3 changed files with 3 additions and 3 deletions

View File

@@ -9,7 +9,7 @@ namespace noggit
namespace ui
{
detail_infos::detail_infos(QWidget* parent)
: widget (parent)
: widget (parent, Qt::Window)
{
setWindowFlags (Qt::Tool);
auto layout (new QFormLayout (this));

View File

@@ -17,7 +17,7 @@ namespace noggit
{
help::help(QWidget* parent)
: widget (parent)
: widget (parent, Qt::Window)
{
setWindowTitle ("Help");
setWindowIcon (QIcon (":/icon"));

View File

@@ -22,7 +22,7 @@ namespace noggit
{
texture_picker::texture_picker
(current_texture* current_texture_window, QWidget* parent)
: widget (parent)
: widget (parent, Qt::Window)
, layout (new ::QGridLayout(this))
, _chunk (nullptr)
{