mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-18 22:31:48 -05:00
Value dial: improved sunken perspective
This commit is contained in:
parent
30696762df
commit
93d1a5bae7
@ -195,12 +195,12 @@ void ValueDial::paintEvent(QPaintEvent*)
|
|||||||
painter.drawLine(width() - 2, 1, width() - 2, height() - 1);
|
painter.drawLine(width() - 2, 1, width() - 2, height() - 1);
|
||||||
|
|
||||||
// dial borders
|
// dial borders
|
||||||
painter.setPen(m_colorMapper.getLightBorderColor());
|
|
||||||
painter.drawLine(0, height() - 1, width() - 1, height() - 1);
|
|
||||||
painter.drawLine(width() - 1, height() - 1, width() - 1, 0);
|
|
||||||
painter.setPen(m_colorMapper.getDarkBorderColor());
|
painter.setPen(m_colorMapper.getDarkBorderColor());
|
||||||
painter.drawLine(0, 0, width() - 1, 0);
|
painter.drawLine(0, 0, width() - 2, 0);
|
||||||
painter.drawLine(0, height() - 1, 0, 0);
|
painter.drawLine(0, height() - 1, 0, 0);
|
||||||
|
painter.setPen(m_colorMapper.getLightBorderColor());
|
||||||
|
painter.drawLine(1, height() - 1, width() - 1, height() - 1);
|
||||||
|
painter.drawLine(width() - 1, height() - 1, width() - 1, 0);
|
||||||
|
|
||||||
if(m_hightlightedDigit >= 0) {
|
if(m_hightlightedDigit >= 0) {
|
||||||
painter.setPen(Qt::NoPen);
|
painter.setPen(Qt::NoPen);
|
||||||
|
Loading…
Reference in New Issue
Block a user