mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
Add the ability to selectively disallow certain panels from floating
This commit is contained in:
@@ -811,6 +811,11 @@ void ToolWindowManager::finishDrag() {
|
||||
return;
|
||||
}
|
||||
if (m_suggestions.isEmpty()) {
|
||||
bool allowFloat = m_allowFloatingWindow;
|
||||
|
||||
for(QWidget *w : m_draggedToolWindows)
|
||||
allowFloat &= !(toolWindowProperties(w) & DisallowFloatWindow);
|
||||
|
||||
if (m_allowFloatingWindow)
|
||||
{
|
||||
QRect r;
|
||||
|
||||
@@ -115,6 +115,8 @@ public:
|
||||
DisableDraggableTab = 0x4,
|
||||
//! When the tool window is closed, hide it instead of removing it
|
||||
HideOnClose = 0x8,
|
||||
//! Don't allow this tool window to be floated
|
||||
DisallowFloatWindow = 0x10,
|
||||
};
|
||||
|
||||
//! Type of AreaReference.
|
||||
|
||||
Reference in New Issue
Block a user