From c4edb9a07f886ecf85a8c006cac1fd736031de6f Mon Sep 17 00:00:00 2001 From: Warchamp7 Date: Tue, 17 Aug 2021 04:23:08 -0400 Subject: [PATCH] UI: Clean up Filters form markup Fixes some QWidgets that Qt Creator tries to clobber. As a result, there are a couple spacers added now for the toolbars to align properly and a stretch policy on the main layout. This re-adds the native attribute for the OBSQTDisplay that was removed in #3782. I believe this particular removal was an error, and there is no way around this entry being native since OBSQTDisplay extends QWidget --- UI/forms/OBSBasicFilters.ui | 135 ++++++++++++++++++++++++------------ 1 file changed, 89 insertions(+), 46 deletions(-) diff --git a/UI/forms/OBSBasicFilters.ui b/UI/forms/OBSBasicFilters.ui index a007df771..7f8401e40 100644 --- a/UI/forms/OBSBasicFilters.ui +++ b/UI/forms/OBSBasicFilters.ui @@ -15,20 +15,26 @@ - + QLayout::SetMinimumSize - + 0 0 + + + 255 + 0 + + 0 @@ -62,8 +68,8 @@ - - + + 4 @@ -88,11 +94,14 @@ 22 + + Add + - + :/res/images/add.png:/res/images/add.png @@ -104,9 +113,6 @@ addIconSmall - - Add - @@ -117,11 +123,14 @@ 22 + + Remove + - + :/res/images/list_remove.png:/res/images/list_remove.png @@ -133,9 +142,6 @@ removeIconSmall - - Remove - @@ -146,11 +152,14 @@ 22 + + MoveUp + - + :/res/images/up.png:/res/images/up.png @@ -162,9 +171,6 @@ upArrowIconSmall - - MoveUp - @@ -175,11 +181,14 @@ 22 + + MoveDown + - + :/res/images/down.png:/res/images/down.png @@ -191,11 +200,24 @@ downArrowIconSmall - - MoveDown - + + + + Qt::Horizontal + + + QSizePolicy::Expanding + + + + 20 + 0 + + + + @@ -210,13 +232,19 @@ - + 0 0 + + + 255 + 0 + + 0 @@ -250,8 +278,8 @@ - - + + 4 @@ -276,11 +304,14 @@ 22 + + Add + - + :/res/images/add.png:/res/images/add.png @@ -292,9 +323,6 @@ addIconSmall - - Add - @@ -305,11 +333,14 @@ 22 + + Remove + - + :/res/images/list_remove.png:/res/images/list_remove.png @@ -321,9 +352,6 @@ removeIconSmall - - Remove - @@ -334,11 +362,14 @@ 22 + + MoveUp + - + :/res/images/up.png:/res/images/up.png @@ -350,9 +381,6 @@ upArrowIconSmall - - MoveUp - @@ -363,11 +391,14 @@ 22 + + MoveDown + - + :/res/images/down.png:/res/images/down.png @@ -379,11 +410,24 @@ downArrowIconSmall - - MoveDown - + + + + Qt::Horizontal + + + QSizePolicy::Expanding + + + + 20 + 0 + + + + @@ -397,7 +441,7 @@ - + 0 @@ -438,7 +482,7 @@ - QDialogButtonBox::Reset|QDialogButtonBox::Close + QDialogButtonBox::Close|QDialogButtonBox::Reset @@ -451,7 +495,7 @@ - + :/res/images/list_remove.png:/res/images/list_remove.png @@ -463,7 +507,7 @@ - + :/res/images/up.png:/res/images/up.png @@ -475,7 +519,7 @@ - + :/res/images/down.png:/res/images/down.png @@ -502,6 +546,5 @@ - - +