1
0
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:
narunlifescience 2015-09-21 13:25:31 -05:00
parent 90c09d1d0a
commit c2e11bed30
2 changed files with 5 additions and 5 deletions

View File

@ -202,7 +202,7 @@ Amarok::VolumeSlider::VolumeSlider(QWidget* parent, uint max)
m_previous_theme_text_color = palette().color(QPalette::WindowText); m_previous_theme_text_color = palette().color(QPalette::WindowText);
m_previous_theme_highlight_color = palette().color(QPalette::Highlight); m_previous_theme_highlight_color = palette().color(QPalette::Highlight);
VolumeSliderHandle(); drawVolumeSliderHandle();
generateGradient(); generateGradient();
setMinimumWidth(m_pixmapInset.width()); setMinimumWidth(m_pixmapInset.width());
@ -293,7 +293,7 @@ void Amarok::VolumeSlider::paintEvent(QPaintEvent*) {
} }
if (m_previous_theme_highlight_color != palette().color(QPalette::Highlight)) { if (m_previous_theme_highlight_color != palette().color(QPalette::Highlight)) {
VolumeSliderHandle(); drawVolumeSliderHandle();
m_previous_theme_highlight_color = palette().color(QPalette::Highlight); m_previous_theme_highlight_color = palette().color(QPalette::Highlight);
} }
@ -354,7 +354,7 @@ QPixmap Amarok::VolumeSlider::volumePixmapDraw () const {
return pixmap; return pixmap;
} }
void Amarok::VolumeSlider::VolumeSliderHandle() { void Amarok::VolumeSlider::drawVolumeSliderHandle() {
QImage pixmapHandle(":volumeslider-handle.png"); QImage pixmapHandle(":volumeslider-handle.png");
QImage pixmapHandleGlow(":/volumeslider-handle_glow.png"); QImage pixmapHandleGlow(":/volumeslider-handle_glow.png");

View File

@ -98,8 +98,6 @@ class VolumeSlider : public Slider {
public: public:
VolumeSlider(QWidget* parent, uint max = 0); VolumeSlider(QWidget* parent, uint max = 0);
QPixmap volumePixmapDraw() const;
void VolumeSliderHandle();
protected: protected:
virtual void paintEvent(QPaintEvent*); virtual void paintEvent(QPaintEvent*);
@ -116,6 +114,8 @@ class VolumeSlider : public Slider {
private: private:
void generateGradient(); void generateGradient();
QPixmap volumePixmapDraw() const;
void drawVolumeSliderHandle();
VolumeSlider(const VolumeSlider&); // undefined VolumeSlider(const VolumeSlider&); // undefined
VolumeSlider& operator=(const VolumeSlider&); // undefined VolumeSlider& operator=(const VolumeSlider&); // undefined