Commit 2aaae05d authored by Sebastian Eichelbaum's avatar Sebastian Eichelbaum
Browse files

[FIX] WQtPropertyGroupWidget forgot to set the group title if none was specified manually. Fixed.

parent 3b1cb640
......@@ -305,11 +305,17 @@ QWidget* WQtPropertyGroupWidget::createPropertyGroupBox( WPropertyGroupBase::SPt
sizePolicy.setHorizontalStretch( 0 );
sizePolicy.setVerticalStretch( 0 );
QString titleCorrected = title;
if( title == "" )
{
titleCorrected = QString::fromStdString( group->getName() );
}
WQtPropertyGroupWidget* propWidget = new WQtPropertyGroupWidget( group, depth, parent );
propWidget->setName( title );
QWidget* tab = WQtPropertyGroupWidget::createPropertyGroupBox( propWidget, false, parent, title );
propWidget->setName( titleCorrected );
QWidget* tab = WQtPropertyGroupWidget::createPropertyGroupBox( propWidget, false, parent, titleCorrected );
tab->setSizePolicy( sizePolicy );
tab->setWindowTitle( title );
tab->setWindowTitle( titleCorrected );
return tab;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment