Commit a5c08fda authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: fix simple volume alignment

parent f11dc4f6
...@@ -62,6 +62,9 @@ SoundWidget::SoundWidget( QWidget *_parent, intf_thread_t * _p_intf, ...@@ -62,6 +62,9 @@ SoundWidget::SoundWidget( QWidget *_parent, intf_thread_t * _p_intf,
{ {
volumeMenu = NULL; subLayout = NULL; volumeMenu = NULL; subLayout = NULL;
volumeControlWidget = NULL; volumeControlWidget = NULL;
/* And add the label */
layout->addWidget( volMuteLabel, 0, Qt::AlignBottom );
} }
else else
{ {
...@@ -76,10 +79,10 @@ SoundWidget::SoundWidget( QWidget *_parent, intf_thread_t * _p_intf, ...@@ -76,10 +79,10 @@ SoundWidget::SoundWidget( QWidget *_parent, intf_thread_t * _p_intf,
QWidgetAction *widgetAction = new QWidgetAction( volumeControlWidget ); QWidgetAction *widgetAction = new QWidgetAction( volumeControlWidget );
widgetAction->setDefaultWidget( volumeControlWidget ); widgetAction->setDefaultWidget( volumeControlWidget );
volumeMenu->addAction( widgetAction ); volumeMenu->addAction( widgetAction );
}
/* And add the label */ /* And add the label */
layout->addWidget( volMuteLabel, 0, Qt::AlignBottom ); layout->addWidget( volMuteLabel );
}
/* Slider creation: shiny or clean */ /* Slider creation: shiny or clean */
if( b_shiny ) if( b_shiny )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment