UI: Make scenes 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 10:48:58 +02:00
commit 363b887cad
3 changed files with 25 additions and 1 deletions

View file

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