From 7f9f480400ddbf3e23e46826d82b667a468df9ae Mon Sep 17 00:00:00 2001 From: Volker Fischer Date: Sun, 10 Dec 2006 12:45:32 +0000 Subject: [PATCH] fixed audio mixer board spacing problem --- src/audiomixerboard.cpp | 7 +++---- src/audiomixerboard.h | 4 +--- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/audiomixerboard.cpp b/src/audiomixerboard.cpp index 61c13b55..d30c4d8d 100755 --- a/src/audiomixerboard.cpp +++ b/src/audiomixerboard.cpp @@ -30,9 +30,8 @@ /* Implementation *************************************************************/ CChannelFader::CChannelFader ( QWidget* pNW, - QHBoxLayout* pNPtLy, - QString sName ) : - pParentLayout ( pNPtLy ) + QHBoxLayout* pParentLayout, + QString sName ) { // create new GUI control objects and store pointers to them pMainGrid = new QGridLayout ( 2, 1 ); @@ -107,7 +106,7 @@ CAudioMixerBoard::CAudioMixerBoard ( QWidget* parent, setFrameShadow ( QFrame::Sunken ); // 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 ) ); // create all mixer controls and make them invisible diff --git a/src/audiomixerboard.h b/src/audiomixerboard.h index be09b1db..1c672d59 100755 --- a/src/audiomixerboard.h +++ b/src/audiomixerboard.h @@ -49,7 +49,7 @@ class CChannelFader : public QObject Q_OBJECT public: - CChannelFader ( QWidget* pNW, QHBoxLayout* pNPtLy, QString sName ); + CChannelFader ( QWidget* pNW, QHBoxLayout* pParentLayout, QString sName ); ~CChannelFader() { pLabel->close(); @@ -71,8 +71,6 @@ protected: QSlider* pFader; QLabel* pLabel; - QHBoxLayout* pParentLayout; - public slots: void OnValueChanged ( int value );