mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-25 02:09:48 +01:00
Woops, forgot to save a few files
This commit is contained in:
parent
443d7519ac
commit
440c3466dd
@ -281,3 +281,53 @@ SlideSwitchButton::createKnob()
|
||||
|
||||
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;
|
||||
}
|
||||
|
@ -36,3 +36,10 @@ UnstyledFrame::paintEvent( QPaintEvent* event )
|
||||
p.drawRect( contentsRect() );
|
||||
p.end();
|
||||
}
|
||||
|
||||
|
||||
void UnstyledFrame::setFrameColor(const QColor& color)
|
||||
{
|
||||
m_frameColor = color;
|
||||
repaint();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user