From f83122aebdb8b9f3f83301f761a15bd3c1537dad Mon Sep 17 00:00:00 2001 From: alemuntoni Date: Wed, 15 Sep 2021 18:13:44 +0200 Subject: [PATCH] better management category labels in parameter frame --- src/meshlab/rich_parameter_gui/richparameterlistframe.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/meshlab/rich_parameter_gui/richparameterlistframe.cpp b/src/meshlab/rich_parameter_gui/richparameterlistframe.cpp index 022e1ba1d..c03a13014 100644 --- a/src/meshlab/rich_parameter_gui/richparameterlistframe.cpp +++ b/src/meshlab/rich_parameter_gui/richparameterlistframe.cpp @@ -176,7 +176,8 @@ void RichParameterListFrame::loadFrameContent( if (!p.first.isEmpty()) { QString labltext = "

" + p.first + ":

"; QLabel* l = new QLabel(labltext, this); - glay->addWidget(l,i++,0,Qt::AlignLeft); + l->setAlignment(Qt::AlignRight); + glay->addWidget(l,i++,0); } //put the parameter widgets into the grid layout for (const RichParameter* fpi : p.second){ @@ -197,7 +198,8 @@ void RichParameterListFrame::loadFrameContent( if (!p.first.isEmpty()) { QString labltext = "

" + p.first + ":

"; QLabel* l = new QLabel(labltext, this); - flay->addWidget(l,j++,0,Qt::AlignLeft); + l->setAlignment(Qt::AlignRight); + flay->addWidget(l,j++,0); } for (const RichParameter* fpi : p.second){ const RichParameter& defrp = defParSet.getParameterByName(fpi->name());