1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-31 11:20:22 +02:00

Woops, forgot to save a few files

This commit is contained in:
Dominik Schmidt
2012-11-03 03:45:15 +01:00
parent 443d7519ac
commit 440c3466dd
2 changed files with 57 additions and 0 deletions

View File

@@ -281,3 +281,53 @@ SlideSwitchButton::createKnob()
p.drawRoundedRect( m_knob.rect(), ROUNDING_RADIUS-1, ROUNDING_RADIUS-1 ); p.drawRoundedRect( m_knob.rect(), ROUNDING_RADIUS-1, ROUNDING_RADIUS-1 );
} }
QSize
SlideSwitchButton::minimumSizeHint() const
{
return sizeHint();
}
void
SlideSwitchButton::setKnobX(qreal x)
{
m_knobX = x;
repaint();
}
qreal
SlideSwitchButton::knobX() const
{
return m_knobX;
}
void
SlideSwitchButton::setBaseColorTop(const QColor& color)
{
m_baseColorTop = color;
repaint();
}
QColor
SlideSwitchButton::baseColorTop() const
{
return m_baseColorTop;
}
void
SlideSwitchButton::setBaseColorBottom(const QColor& color)
{
m_baseColorBottom = color;
}
QColor
SlideSwitchButton::baseColorBottom() const
{
return m_baseColorBottom;
}

View File

@@ -36,3 +36,10 @@ UnstyledFrame::paintEvent( QPaintEvent* event )
p.drawRect( contentsRect() ); p.drawRect( contentsRect() );
p.end(); p.end();
} }
void UnstyledFrame::setFrameColor(const QColor& color)
{
m_frameColor = color;
repaint();
}