mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-04 21:27:58 +02:00
Call direct implementation instead of virtual in constructor
This commit is contained in:
@@ -267,8 +267,8 @@ SlideSwitchButton::backChecked() const
|
|||||||
void
|
void
|
||||||
SlideSwitchButton::createKnob()
|
SlideSwitchButton::createKnob()
|
||||||
{
|
{
|
||||||
const qreal knobWidth = sizeHint().height() * KNOB_ASPECT_RATIO;
|
const qreal knobWidth = SlideSwitchButton::sizeHint().height() * KNOB_ASPECT_RATIO;
|
||||||
m_knob = QPixmap( QSize( knobWidth, sizeHint().height() ) );
|
m_knob = QPixmap( QSize( knobWidth, SlideSwitchButton::sizeHint().height() ) );
|
||||||
m_knob.fill( Qt::transparent );
|
m_knob.fill( Qt::transparent );
|
||||||
|
|
||||||
QPainter p( &m_knob );
|
QPainter p( &m_knob );
|
||||||
|
Reference in New Issue
Block a user