the two optional pictures should be above each other, the text is next to the pictures
This commit is contained in:
parent
cad2da0d2a
commit
71856d5488
1 changed files with 17 additions and 14 deletions
|
@ -44,6 +44,7 @@ CChannelFader::CChannelFader ( QWidget* pNW,
|
|||
plblInstrument = new QLabel ( pFrame );
|
||||
plblCountryFlag = new QLabel ( pFrame );
|
||||
QHBoxLayout* pLabelGrid = new QHBoxLayout ( pLabelInstBox );
|
||||
QVBoxLayout* pLabelPictGrid = new QVBoxLayout();
|
||||
|
||||
// setup slider
|
||||
pFader->setPageStep ( 1 );
|
||||
|
@ -61,7 +62,8 @@ CChannelFader::CChannelFader ( QWidget* pNW,
|
|||
|
||||
// setup fader tag label (black bold text which is centered)
|
||||
plblLabel->setTextFormat ( Qt::PlainText );
|
||||
plblLabel->setAlignment ( Qt::AlignHCenter );
|
||||
plblLabel->setAlignment ( Qt::AlignHCenter | Qt::AlignVCenter );
|
||||
plblLabel->setMinimumHeight ( 40 ); // maximum hight of the instrument+flag pictures
|
||||
plblLabel->setStyleSheet (
|
||||
"QLabel { color: black;"
|
||||
" font: bold; }" );
|
||||
|
@ -72,9 +74,10 @@ CChannelFader::CChannelFader ( QWidget* pNW,
|
|||
pLabelGrid->setSpacing ( 2 ); // only minimal space between picture and text
|
||||
|
||||
// add user controls to the grids
|
||||
pLabelGrid->addWidget ( plblInstrument );
|
||||
pLabelPictGrid->addWidget ( plblCountryFlag, 0, Qt::AlignHCenter );
|
||||
pLabelPictGrid->addWidget ( plblInstrument, 0, Qt::AlignHCenter );
|
||||
pLabelGrid->addLayout ( pLabelPictGrid );
|
||||
pLabelGrid->addWidget ( plblLabel, 0, Qt::AlignVCenter );
|
||||
pLabelGrid->addWidget ( plblCountryFlag, 0, Qt::AlignRight );
|
||||
|
||||
pMainGrid->addWidget ( pFader, 0, Qt::AlignHCenter );
|
||||
pMainGrid->addWidget ( pcbMute, 0, Qt::AlignLeft );
|
||||
|
|
Loading…
Add table
Reference in a new issue