bug fix: standard style: meter bar gets smaller sometimes if board is full and fader text is short
This commit is contained in:
parent
27e9bebea3
commit
dc656992ec
3 changed files with 4 additions and 7 deletions
|
@ -18,8 +18,6 @@ TODO support CoreAudio aggregated devices
|
|||
|
||||
TODO support internationalization
|
||||
|
||||
TODO standard style: meter bar gets smaller sometimes if board is full and fader text is short
|
||||
|
||||
TODO implement panning for channels (Ticket #52, #145)
|
||||
|
||||
TODO sometimes I cannot see the central server in the server list
|
||||
|
|
|
@ -249,7 +249,7 @@
|
|||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>16</width>
|
||||
<width>19</width>
|
||||
<height>88</height>
|
||||
</size>
|
||||
</property>
|
||||
|
@ -265,7 +265,7 @@
|
|||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>16</width>
|
||||
<width>19</width>
|
||||
<height>88</height>
|
||||
</size>
|
||||
</property>
|
||||
|
|
|
@ -48,8 +48,7 @@ CMultiColorLEDBar::CMultiColorLEDBar ( QWidget* parent, Qt::WindowFlags f ) :
|
|||
// create LED object
|
||||
vecpLEDs[iLEDIdx] = new cLED ( parent );
|
||||
|
||||
// add LED to layout with spacer (do not add spacer on the bottom of the
|
||||
// first LED)
|
||||
// add LED to layout with spacer (do not add spacer on the bottom of the first LED)
|
||||
if ( iLEDIdx < NUM_STEPS_LED_BAR - 1 )
|
||||
{
|
||||
pLEDLayout->addStretch();
|
||||
|
@ -77,7 +76,7 @@ CMultiColorLEDBar::CMultiColorLEDBar ( QWidget* parent, Qt::WindowFlags f ) :
|
|||
// according to QScrollArea description: "When using a scroll area to display the
|
||||
// contents of a custom widget, it is important to ensure that the size hint of
|
||||
// the child widget is set to a suitable value."
|
||||
pProgressBar->setMinimumSize ( QSize ( 1, 1 ) );
|
||||
pProgressBar->setMinimumSize ( QSize ( 19, 1 ) ); // 15px + 2 * 1px + 2 * 1px = 19px
|
||||
pLEDMeter->setMinimumSize ( QSize ( 1, 1 ) );
|
||||
|
||||
// update the meter type (using the default value of the meter type)
|
||||
|
|
Loading…
Reference in a new issue