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_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");

View File

@ -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