Added a PixmapSlider class and changed Slider to inherit from it.
PixmapSlider is a subclass of QAbstractSlider. It is independent of Skin.cpp. Slider is now only a wrapper to update the QPixmaps on a skin change. removed a workaround from equalizerwidget, that was necessary for the previous implementation. 2-3 one line fixes I don't remember
This commit is contained in:
parent
88b8ab8683
commit
6e7e2c2184
10 changed files with 311 additions and 280 deletions
|
@ -99,7 +99,7 @@ MainDisplay::MainDisplay (QWidget *parent) : SkinDisplay(parent)
|
|||
connect (client.cache () , SIGNAL (playtime (uint32_t)),
|
||||
this, SLOT (setPlaytime (uint32_t)));
|
||||
connect (&client, SIGNAL(getVolume(uint)), this, SLOT(updateVolume(uint)));
|
||||
connect (m_vslider, SIGNAL(valueChanged(int)), this, SLOT(setVolume(int)));
|
||||
connect (m_vslider, SIGNAL(sliderMoved(int)), this, SLOT(setVolume(int)));
|
||||
client.volumeGet();
|
||||
|
||||
setupServerConfig ();
|
||||
|
@ -139,6 +139,7 @@ MainDisplay::setStatus (Xmms::Playback::Status status)
|
|||
m_time->setTime(0);
|
||||
m_posbar->setPos (0);
|
||||
m_posbar->hideBar (true);
|
||||
m_stereo->setStereoMono (false, false);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue