From d9ec2128f22718e789ef38bd4afb53854df442f3 Mon Sep 17 00:00:00 2001 From: HomeWorld Date: Mon, 5 Jan 2015 15:41:25 +0200 Subject: [PATCH] UI: Removed an unnecesary setSizeConstraint call This setSizeConstraint(QLayout::SetMaximumSize) call caused the widgets to be improperly sized. For example: combo boxes with long texts ('big' widget width) not being completly visible. --- obs/properties-view.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/obs/properties-view.cpp b/obs/properties-view.cpp index 354a99ebb..cff98afec 100644 --- a/obs/properties-view.cpp +++ b/obs/properties-view.cpp @@ -61,7 +61,7 @@ void OBSPropertiesView::RefreshProperties() QSizePolicy mainPolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); QSizePolicy policy(QSizePolicy::Preferred, QSizePolicy::Preferred); //widget->setSizePolicy(policy); - layout->setSizeConstraint(QLayout::SetMaximumSize); + layout->setLabelAlignment(Qt::AlignRight); obs_property_t *property = obs_properties_first(properties.get());