Przeglądaj źródła

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.
gxalpha 3 lat temu
rodzic
commit
860b309db8
2 zmienionych plików z 2 dodań i 3 usunięć
  1. 2 2
      UI/forms/OBSBasic.ui
  2. 0 1
      UI/scene-tree.cpp

+ 2 - 2
UI/forms/OBSBasic.ui

@@ -794,7 +794,7 @@
            </sizepolicy>
            </sizepolicy>
           </property>
           </property>
           <property name="spacing">
           <property name="spacing">
-           <number>1</number>
+           <number>0</number>
           </property>
           </property>
           <property name="contextMenuPolicy">
           <property name="contextMenuPolicy">
            <enum>Qt::CustomContextMenu</enum>
            <enum>Qt::CustomContextMenu</enum>
@@ -932,7 +932,7 @@
            </sizepolicy>
            </sizepolicy>
           </property>
           </property>
           <property name="spacing">
           <property name="spacing">
-           <number>1</number>
+           <number>0</number>
           </property>
           </property>
           <property name="contextMenuPolicy">
           <property name="contextMenuPolicy">
            <enum>Qt::CustomContextMenu</enum>
            <enum>Qt::CustomContextMenu</enum>

+ 0 - 1
UI/scene-tree.cpp

@@ -91,7 +91,6 @@ void SceneTree::resizeEvent(QResizeEvent *event)
 		}
 		}
 	} else {
 	} else {
 		setGridSize(QSize());
 		setGridSize(QSize());
-		setSpacing(1);
 		for (int i = 0; i < count(); i++) {
 		for (int i = 0; i < count(); i++) {
 			item(i)->setData(Qt::SizeHintRole, QVariant());
 			item(i)->setData(Qt::SizeHintRole, QVariant());
 		}
 		}