1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-30 19:00:12 +02:00

Call direct implementation instead of virtual in constructor

This commit is contained in:
Uwe L. Korn
2014-10-20 16:49:57 +02:00
parent 5511e34cb6
commit 71c91ba04b

View File

@@ -267,8 +267,8 @@ SlideSwitchButton::backChecked() const
void
SlideSwitchButton::createKnob()
{
const qreal knobWidth = sizeHint().height() * KNOB_ASPECT_RATIO;
m_knob = QPixmap( QSize( knobWidth, sizeHint().height() ) );
const qreal knobWidth = SlideSwitchButton::sizeHint().height() * KNOB_ASPECT_RATIO;
m_knob = QPixmap( QSize( knobWidth, SlideSwitchButton::sizeHint().height() ) );
m_knob.fill( Qt::transparent );
QPainter p( &m_knob );