Clean up UI

This commit is contained in:
WarmUpTill 2023-02-17 19:56:12 +01:00 committed by WarmUpTill
parent a0550ca141
commit 160d19d6c1

View File

@ -529,6 +529,14 @@ MacroConditionVideoEdit::MacroConditionVideoEdit(
populateVideoInputSelection(_videoInputTypes);
populateConditionSelection(_condition);
_patternMatchModeLayout->setContentsMargins(0, 0, 0, 0);
_ocrLayout->setContentsMargins(0, 0, 0, 0);
_modelPathLayout->setContentsMargins(0, 0, 0, 0);
_neighborsControlLayout->setContentsMargins(0, 0, 0, 0);
_sizeLayout->setContentsMargins(0, 0, 0, 0);
_checkAreaControlLayout->setContentsMargins(0, 0, 0, 0);
_throttleControlLayout->setContentsMargins(0, 0, 0, 0);
QHBoxLayout *entryLine1Layout = new QHBoxLayout;
std::unordered_map<std::string, QWidget *> widgetPlaceholders = {
{"{{videoInputTypes}}", _videoInputTypes},
@ -604,7 +612,6 @@ MacroConditionVideoEdit::MacroConditionVideoEdit(
sizeGrid->addWidget(_maxSize, 1, 1);
_sizeLayout->addLayout(sizeGrid);
_sizeLayout->addStretch();
_sizeLayout->setContentsMargins(0, 0, 0, 0);
QHBoxLayout *showMatchLayout = new QHBoxLayout;
showMatchLayout->addWidget(_showMatch);