mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-31 03:27:40 +01:00
move functions to private section & rename a function
This commit is contained in:
parent
90c09d1d0a
commit
c2e11bed30
@ -202,7 +202,7 @@ Amarok::VolumeSlider::VolumeSlider(QWidget* parent, uint max)
|
||||
m_previous_theme_text_color = palette().color(QPalette::WindowText);
|
||||
m_previous_theme_highlight_color = palette().color(QPalette::Highlight);
|
||||
|
||||
VolumeSliderHandle();
|
||||
drawVolumeSliderHandle();
|
||||
generateGradient();
|
||||
|
||||
setMinimumWidth(m_pixmapInset.width());
|
||||
@ -293,7 +293,7 @@ void Amarok::VolumeSlider::paintEvent(QPaintEvent*) {
|
||||
}
|
||||
|
||||
if (m_previous_theme_highlight_color != palette().color(QPalette::Highlight)) {
|
||||
VolumeSliderHandle();
|
||||
drawVolumeSliderHandle();
|
||||
m_previous_theme_highlight_color = palette().color(QPalette::Highlight);
|
||||
}
|
||||
|
||||
@ -354,7 +354,7 @@ QPixmap Amarok::VolumeSlider::volumePixmapDraw () const {
|
||||
return pixmap;
|
||||
}
|
||||
|
||||
void Amarok::VolumeSlider::VolumeSliderHandle() {
|
||||
void Amarok::VolumeSlider::drawVolumeSliderHandle() {
|
||||
QImage pixmapHandle(":volumeslider-handle.png");
|
||||
QImage pixmapHandleGlow(":/volumeslider-handle_glow.png");
|
||||
|
||||
|
@ -98,8 +98,6 @@ class VolumeSlider : public Slider {
|
||||
|
||||
public:
|
||||
VolumeSlider(QWidget* parent, uint max = 0);
|
||||
QPixmap volumePixmapDraw() const;
|
||||
void VolumeSliderHandle();
|
||||
|
||||
protected:
|
||||
virtual void paintEvent(QPaintEvent*);
|
||||
@ -116,6 +114,8 @@ class VolumeSlider : public Slider {
|
||||
|
||||
private:
|
||||
void generateGradient();
|
||||
QPixmap volumePixmapDraw() const;
|
||||
void drawVolumeSliderHandle();
|
||||
|
||||
VolumeSlider(const VolumeSlider&); // undefined
|
||||
VolumeSlider& operator=(const VolumeSlider&); // undefined
|
||||
|
Loading…
x
Reference in New Issue
Block a user