Commit 1d288ae6 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: cosmetics

parent 546624cc
......@@ -35,7 +35,6 @@
#include <QLabel>
#include <QHBoxLayout>
#include <QSpinBox>
#include <QMenu>
#include <QWidgetAction>
#include <QMouseEvent>
......@@ -164,8 +163,8 @@ void SoundWidget::libUpdateVolume()
i_volume = aout_VolumeGet( p_playlist );
i_volume = ( ( i_volume + 1 ) * VOLUME_MAX )/ (AOUT_VOLUME_MAX/2);
int i_gauge = volumeSlider->value();
if ( i_volume - i_gauge != 0 )
if ( i_volume - volumeSlider->value() != 0 )
{
b_ignore_valuechanged = true;
volumeSlider->setValue( i_volume );
......
......@@ -31,10 +31,10 @@
#include "qt4.hpp"
#include <QWidget>
#include <QFrame>
#include <QToolButton>
class QLabel;
class QFrame;
class QSpinBox;
class QAbstractSlider;
......@@ -78,13 +78,16 @@ public:
virtual ~SoundWidget();
void setMuted( bool );
protected:
virtual bool eventFilter( QObject *obj, QEvent *e );
private:
intf_thread_t *p_intf;
QLabel *volMuteLabel;
QAbstractSlider *volumeSlider;
QFrame *volumeControlWidget;
QMenu *volumeMenu;
virtual bool eventFilter( QObject *obj, QEvent *e );
bool b_is_muted;
bool b_ignore_valuechanged;
......
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