UI: Enable drag&drop reordering for scenes
The empty implementation for the QDataStream operators is necessary to fix a Qt assertion: "QVariant::save: unable to save type 'std::vector<std::shared_ptr<OBSSignal> >' (type id: 1036)." It doesn't seem like a full implementation of the stream operators would be useful since the signal registration is very specific to the interaction between the scenes and sources list, i.e. in case the scenes list ever accepts scenes from sources (not 'obs_source's) other than itself (non InternalMove drag&drop?) it would have to register those scenes with the libobs core which should trigger the normal signal registration
This commit is contained in:
@@ -473,6 +473,18 @@
|
||||
<property name="frameShadow">
|
||||
<enum>QFrame::Plain</enum>
|
||||
</property>
|
||||
<property name="showDropIndicator" stdset="0">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="dragEnabled">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="dragDropMode">
|
||||
<enum>QAbstractItemView::InternalMove</enum>
|
||||
</property>
|
||||
<property name="defaultDropAction">
|
||||
<enum>Qt::IgnoreAction</enum>
|
||||
</property>
|
||||
<addaction name="actionRemoveScene"/>
|
||||
</widget>
|
||||
</item>
|
||||
|
Reference in New Issue
Block a user