if( !b_special )
{
volumeMenu = NULL; subLayout = NULL;
+ volumeControlWidget = NULL;
}
else
{
/* Special view, click on button shows the slider */
b_shiny = false;
- QFrame *volumeControlWidget = new QFrame;
+ volumeControlWidget = new QFrame;
subLayout = new QVBoxLayout( volumeControlWidget );
subLayout->setLayoutMargins( 4, 4, 4, 4, 4 );
volumeMenu = new QMenu( this );
CONNECT( THEMIM, volumeChanged( void ), this, updateVolume( void ) );
}
+SoundWidget::~SoundWidget()
+{
+ delete volumeSlider;
+ delete volumeControlWidget;
+}
+
void SoundWidget::updateVolume( int i_sliderVolume )
{
if( !b_my_volume )
public:
SoundWidget( QWidget *parent, intf_thread_t *_p_i, bool,
bool b_special = false );
+ virtual ~SoundWidget();
private:
intf_thread_t *p_intf;
QLabel *volMuteLabel;
QAbstractSlider *volumeSlider;
+ QFrame *volumeControlWidget;
bool b_my_volume;
QMenu *volumeMenu;
virtual bool eventFilter( QObject *obj, QEvent *e );