mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-11 09:24:50 +01:00
const & format
This commit is contained in:
parent
aaec092454
commit
e269f7ae40
@ -338,12 +338,13 @@ void Amarok::VolumeSlider::paletteChange(const QPalette&) {
|
|||||||
generateGradient();
|
generateGradient();
|
||||||
}
|
}
|
||||||
|
|
||||||
QPixmap Amarok::VolumeSlider::volumePixmapDraw () {
|
QPixmap Amarok::VolumeSlider::volumePixmapDraw () const {
|
||||||
QPixmap pixmap (112, 36);
|
QPixmap pixmap(112, 36);
|
||||||
pixmap.fill(Qt::transparent);
|
pixmap.fill(Qt::transparent);
|
||||||
QPainter painter( &pixmap );
|
QPainter painter(&pixmap);
|
||||||
QPen pen(palette().color(QPalette::WindowText), 0.3, Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin);
|
QPen pen(palette().color(QPalette::WindowText), 0.3, Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin);
|
||||||
painter.setPen(pen);
|
painter.setPen(pen);
|
||||||
|
|
||||||
painter.setRenderHint(QPainter::Antialiasing);
|
painter.setRenderHint(QPainter::Antialiasing);
|
||||||
painter.setRenderHint(QPainter::SmoothPixmapTransform);
|
painter.setRenderHint(QPainter::SmoothPixmapTransform);
|
||||||
// Draw volume control pixmap
|
// Draw volume control pixmap
|
||||||
|
@ -98,7 +98,7 @@ class VolumeSlider : public Slider {
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
VolumeSlider(QWidget* parent, uint max = 0);
|
VolumeSlider(QWidget* parent, uint max = 0);
|
||||||
QPixmap volumePixmapDraw();
|
QPixmap volumePixmapDraw() const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void paintEvent(QPaintEvent*);
|
virtual void paintEvent(QPaintEvent*);
|
||||||
|
Loading…
Reference in New Issue
Block a user