bug fix with dialog layout

This commit is contained in:
Volker Fischer 2009-05-02 06:37:05 +00:00
parent 15d52f3389
commit ccc0474164
2 changed files with 7 additions and 11 deletions

View file

@ -97,9 +97,9 @@
#define INVALID_SNC_CARD_DEVICE -1
// defines for LED input level meter
#define NUM_STEPS_INP_LEV_METER 10
#define YELLOW_BOUND_INP_LEV_METER 7
#define RED_BOUND_INP_LEV_METER 9
#define NUM_STEPS_INP_LEV_METER 12
#define YELLOW_BOUND_INP_LEV_METER 9
#define RED_BOUND_INP_LEV_METER 11
// maximum number of internet connections (channels)

View file

@ -42,13 +42,8 @@ CMultiColorLEDBar::CMultiColorLEDBar ( QWidget* parent, Qt::WindowFlags f )
// create layout and set spacing to zero
pMainLayout = new QHBoxLayout ( this );
pMainLayout->setAlignment ( Qt::AlignVCenter );
pMainLayout->setSpacing ( 0 );
// TEST helps finding the problem with margin on left and right
//setFrameShape ( QFrame::StyledPanel );
//setFrameShadow ( QFrame::Sunken );
pMainLayout->setMargin ( 0 );
pMainLayout->setSpacing ( 0 );
// create LEDs
vecpLEDs.Init ( iNumLEDs );
@ -57,7 +52,8 @@ CMultiColorLEDBar::CMultiColorLEDBar ( QWidget* parent, Qt::WindowFlags f )
// create LED label
vecpLEDs[i] = new QLabel ( "", parent );
// add LED to layout
// add LED to layout with spacer
pMainLayout->addStretch();
pMainLayout->addWidget ( vecpLEDs[i] );
// set initial bitmap