fix for LED input level meter

This commit is contained in:
Volker Fischer 2009-05-03 20:27:46 +00:00
parent 3af2b24931
commit 09c073e014
2 changed files with 7 additions and 3 deletions

View File

@ -108,7 +108,7 @@
</property>
<property name="minimumSize" >
<size>
<width>84</width>
<width>88</width>
<height>0</height>
</size>
</property>

View File

@ -48,8 +48,12 @@ CMultiColorLEDBar::CMultiColorLEDBar ( QWidget* parent, Qt::WindowFlags f )
// create LED object
vecpLEDs[iLEDIdx] = new cLED ( parent );
// add LED to layout with spacer
pMainLayout->addStretch();
// add LED to layout with spacer (do not add spacer on the left of the
// first LED)
if ( iLEDIdx > 0 )
{
pMainLayout->addStretch();
}
pMainLayout->addWidget ( vecpLEDs[iLEDIdx]->getLabelPointer() );
}
}