bug fix with dialog layout
This commit is contained in:
parent
15d52f3389
commit
ccc0474164
2 changed files with 7 additions and 11 deletions
|
@ -97,9 +97,9 @@
|
||||||
#define INVALID_SNC_CARD_DEVICE -1
|
#define INVALID_SNC_CARD_DEVICE -1
|
||||||
|
|
||||||
// defines for LED input level meter
|
// defines for LED input level meter
|
||||||
#define NUM_STEPS_INP_LEV_METER 10
|
#define NUM_STEPS_INP_LEV_METER 12
|
||||||
#define YELLOW_BOUND_INP_LEV_METER 7
|
#define YELLOW_BOUND_INP_LEV_METER 9
|
||||||
#define RED_BOUND_INP_LEV_METER 9
|
#define RED_BOUND_INP_LEV_METER 11
|
||||||
|
|
||||||
|
|
||||||
// maximum number of internet connections (channels)
|
// maximum number of internet connections (channels)
|
||||||
|
|
|
@ -42,13 +42,8 @@ CMultiColorLEDBar::CMultiColorLEDBar ( QWidget* parent, Qt::WindowFlags f )
|
||||||
// create layout and set spacing to zero
|
// create layout and set spacing to zero
|
||||||
pMainLayout = new QHBoxLayout ( this );
|
pMainLayout = new QHBoxLayout ( this );
|
||||||
pMainLayout->setAlignment ( Qt::AlignVCenter );
|
pMainLayout->setAlignment ( Qt::AlignVCenter );
|
||||||
pMainLayout->setSpacing ( 0 );
|
pMainLayout->setMargin ( 0 );
|
||||||
|
pMainLayout->setSpacing ( 0 );
|
||||||
|
|
||||||
// TEST helps finding the problem with margin on left and right
|
|
||||||
//setFrameShape ( QFrame::StyledPanel );
|
|
||||||
//setFrameShadow ( QFrame::Sunken );
|
|
||||||
|
|
||||||
|
|
||||||
// create LEDs
|
// create LEDs
|
||||||
vecpLEDs.Init ( iNumLEDs );
|
vecpLEDs.Init ( iNumLEDs );
|
||||||
|
@ -57,7 +52,8 @@ CMultiColorLEDBar::CMultiColorLEDBar ( QWidget* parent, Qt::WindowFlags f )
|
||||||
// create LED label
|
// create LED label
|
||||||
vecpLEDs[i] = new QLabel ( "", parent );
|
vecpLEDs[i] = new QLabel ( "", parent );
|
||||||
|
|
||||||
// add LED to layout
|
// add LED to layout with spacer
|
||||||
|
pMainLayout->addStretch();
|
||||||
pMainLayout->addWidget ( vecpLEDs[i] );
|
pMainLayout->addWidget ( vecpLEDs[i] );
|
||||||
|
|
||||||
// set initial bitmap
|
// set initial bitmap
|
||||||
|
|
Loading…
Add table
Reference in a new issue