fixed audio mixer board spacing problem
This commit is contained in:
parent
35b26094ae
commit
7f9f480400
2 changed files with 4 additions and 7 deletions
|
@ -30,9 +30,8 @@
|
||||||
|
|
||||||
/* Implementation *************************************************************/
|
/* Implementation *************************************************************/
|
||||||
CChannelFader::CChannelFader ( QWidget* pNW,
|
CChannelFader::CChannelFader ( QWidget* pNW,
|
||||||
QHBoxLayout* pNPtLy,
|
QHBoxLayout* pParentLayout,
|
||||||
QString sName ) :
|
QString sName )
|
||||||
pParentLayout ( pNPtLy )
|
|
||||||
{
|
{
|
||||||
// create new GUI control objects and store pointers to them
|
// create new GUI control objects and store pointers to them
|
||||||
pMainGrid = new QGridLayout ( 2, 1 );
|
pMainGrid = new QGridLayout ( 2, 1 );
|
||||||
|
@ -107,7 +106,7 @@ CAudioMixerBoard::CAudioMixerBoard ( QWidget* parent,
|
||||||
setFrameShadow ( QFrame::Sunken );
|
setFrameShadow ( QFrame::Sunken );
|
||||||
|
|
||||||
// add hboxlayout with horizontal spacer
|
// add hboxlayout with horizontal spacer
|
||||||
pMainLayout = new QHBoxLayout ( this, 11, 6 );
|
pMainLayout = new QHBoxLayout ( this, 11, 0 );
|
||||||
pMainLayout->addItem ( new QSpacerItem ( 0, 0, QSizePolicy::Expanding ) );
|
pMainLayout->addItem ( new QSpacerItem ( 0, 0, QSizePolicy::Expanding ) );
|
||||||
|
|
||||||
// create all mixer controls and make them invisible
|
// create all mixer controls and make them invisible
|
||||||
|
|
|
@ -49,7 +49,7 @@ class CChannelFader : public QObject
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
CChannelFader ( QWidget* pNW, QHBoxLayout* pNPtLy, QString sName );
|
CChannelFader ( QWidget* pNW, QHBoxLayout* pParentLayout, QString sName );
|
||||||
~CChannelFader()
|
~CChannelFader()
|
||||||
{
|
{
|
||||||
pLabel->close();
|
pLabel->close();
|
||||||
|
@ -71,8 +71,6 @@ protected:
|
||||||
QSlider* pFader;
|
QSlider* pFader;
|
||||||
QLabel* pLabel;
|
QLabel* pLabel;
|
||||||
|
|
||||||
QHBoxLayout* pParentLayout;
|
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void OnValueChanged ( int value );
|
void OnValueChanged ( int value );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue