UI: Make scene items serializable via QDataStream

This minimal implementation should be enough to drag&drop scenes between UI
elements in the same process in the future
This commit is contained in:
Palana 2015-06-27 03:39:39 +02:00
commit b543ea6231
3 changed files with 29 additions and 0 deletions

View file

@ -134,6 +134,7 @@ OBSBasic::OBSBasic(QWidget *parent)
qRegisterMetaType<obs_hotkey_id>("obs_hotkey_id");
qRegisterMetaTypeStreamOperators<OBSScene>("OBSScene");
qRegisterMetaTypeStreamOperators<OBSSceneItem>("OBSSceneItem");
ui->scenes->setAttribute(Qt::WA_MacShowFocusRect, false);
ui->sources->setAttribute(Qt::WA_MacShowFocusRect, false);