From 860b309db86ac4e096df1d72b9cf8f99d60e8c56 Mon Sep 17 00:00:00 2001 From: gxalpha Date: Sat, 10 Sep 2022 23:53:54 +0200 Subject: [PATCH] UI: Remove spacing from scene and source tree Due to QTBUG-106395, sources or scenes that are drag-and-dropped into the spacing between other sources and scenes would currently go to the bottom of the list, leaving users confused. Until that is fixed, we have to remove this spacing. The call in scene-tree.cpp was redundant anyways, should this commit get reverted in the future it doesn't need to be re-added. --- UI/forms/OBSBasic.ui | 4 ++-- UI/scene-tree.cpp | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/UI/forms/OBSBasic.ui b/UI/forms/OBSBasic.ui index d88e8a83e..4d268f8bd 100644 --- a/UI/forms/OBSBasic.ui +++ b/UI/forms/OBSBasic.ui @@ -794,7 +794,7 @@ - 1 + 0 Qt::CustomContextMenu @@ -932,7 +932,7 @@ - 1 + 0 Qt::CustomContextMenu diff --git a/UI/scene-tree.cpp b/UI/scene-tree.cpp index 5ed8eb412..f458b8e0b 100644 --- a/UI/scene-tree.cpp +++ b/UI/scene-tree.cpp @@ -91,7 +91,6 @@ void SceneTree::resizeEvent(QResizeEvent *event) } } else { setGridSize(QSize()); - setSpacing(1); for (int i = 0; i < count(); i++) { item(i)->setData(Qt::SizeHintRole, QVariant()); }