Commit 02ee6240 authored by Jakob Leben's avatar Jakob Leben

Qt: appropriate SoundSlider size

parent 9cca111d
......@@ -98,11 +98,6 @@ SoundWidget::SoundWidget( QWidget *_parent, intf_thread_t * _p_intf,
volumeSlider->setMaximum( var_InheritBool( p_intf, "qt-volume-complete" )
? 400 : 200 );
}
if( volumeSlider->orientation() == Qt::Horizontal )
{
volumeSlider->setMaximumSize( QSize( 200, 40 ) );
volumeSlider->setMinimumSize( QSize( 85, 30 ) );
}
volumeSlider->setFocusPolicy( Qt::NoFocus );
if( b_special )
......
......@@ -173,7 +173,7 @@ SoundSlider::SoundSlider( QWidget *_parent, int _i_step, bool b_hard,
const QPixmap temp( ":/toolbar/volslide-inside" );
const QBitmap mask( temp.createHeuristicMask() );
setMinimumSize( pixOutside.size() );
setFixedSize( pixOutside.size() );
pixGradient = QPixmap( mask.size() );
pixGradient2 = QPixmap( mask.size() );
......
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