Ref T643, disable interactive docking

This commit is contained in:
Klaus Basan
2019-04-29 02:08:13 +02:00
parent e411dbb125
commit ecc203cf2e
2 changed files with 21 additions and 15 deletions

View File

@@ -260,6 +260,12 @@ namespace BlackGui
this->setFloating(floating);
this->setAlwaysOnTop(m_alwaysOnTop && floating);
// disable the interactive docking
if (floating)
{
this->setAllowedAreas(Qt::NoDockWidgetArea);
}
if (shift && floating) { this->resetPosition(); }
}