Adjust the way properties view UI displays

It didn't really look very nice in most cases and the controls were
always compacted, doing this makes it look a bit better.

Also change it so the properties window shows the properties on the
bottom below the source rather than to the right, seeing as in most
cases the source has a greater width than height, and it feels just a
little bit better to look at (thought that's just my opinion).

Controls still stretch really far sometimes though, I wonder what should
be done about that to be honest.  Maybe prevent it from scrolling to the
right?
This commit is contained in:
jp9000
2014-04-24 21:12:23 -07:00
parent 89e02ca73c
commit fbbf274c51
4 changed files with 29 additions and 15 deletions

View File

@@ -48,7 +48,8 @@ OBSBasicProperties::OBSBasicProperties(QWidget *parent, OBSSource source_)
source, (PropertiesUpdateCallback)obs_source_update);
layout()->addWidget(view);
layout()->setAlignment(view, Qt::AlignRight);
layout()->setAlignment(view, Qt::AlignBottom);
view->setMinimumHeight(150);
view->show();
connect(windowHandle(), &QWindow::screenChanged, [this]() {