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:
@@ -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;
|
||||||
|
}
|
||||||
|
@@ -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();
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user