mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-09-22 16:25:14 -05:00
Adjust macro list to new OBS layout changes
This commit is contained in:
@@ -609,6 +609,9 @@
|
||||
<property name="defaultDropAction">
|
||||
<enum>Qt::MoveAction</enum>
|
||||
</property>
|
||||
<property name="spacing">
|
||||
<number>1</number>
|
||||
</property>
|
||||
<property name="sortingEnabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
|
||||
@@ -17,10 +17,11 @@ MacroListEntryWidget::MacroListEntryWidget(std::shared_ptr<Macro> macro,
|
||||
QLabel { background-color: rgba(0,0,0,0); }");
|
||||
|
||||
auto layout = new QHBoxLayout;
|
||||
layout->setContentsMargins(3, 3, 3, 3);
|
||||
layout->setContentsMargins(0, 0, 0, 0);
|
||||
layout->addWidget(_running);
|
||||
layout->addWidget(_name);
|
||||
layout->addStretch();
|
||||
layout->setSizeConstraint(QLayout::SetFixedSize);
|
||||
setLayout(layout);
|
||||
|
||||
connect(_running, SIGNAL(stateChanged(int)), this,
|
||||
|
||||
@@ -71,7 +71,6 @@ QListWidgetItem *AddNewMacroListEntry(QListWidget *list,
|
||||
item->setData(Qt::UserRole, QString::fromStdString(macro->Name()));
|
||||
auto listEntry = new MacroListEntryWidget(
|
||||
macro, switcher->macroProperties._highlightExecuted, list);
|
||||
item->setSizeHint(listEntry->minimumSizeHint());
|
||||
list->setItemWidget(item, listEntry);
|
||||
return item;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user