Commit adfe1ef7 authored by Frédéric Larue's avatar Frédéric Larue

GradientWidget display improved.

parent 016b07a2
......@@ -106,18 +106,18 @@ void GradientWidget::paintEvent( QPaintEvent *evt )
if( i == m_SelectedStop )
painter.setPen( QPen(color,1.0f) );
else
painter.setPen( QPen(color,1.0f,Qt::DotLine) );
painter.setPen( QPen(color,1.0f,Qt::DashLine) );
painter.drawLine( s.x(), 3, s.x(), h-4 );
painter.setPen( QPen(color,1.0f) );
// Top arrow head.
if( i == m_SelectedStop )
//if( i == m_SelectedStop )
painter.drawLine( s.x()-3, 0, s.x()+3, 0 );
painter.drawLine( s.x()-2, 1, s.x()+2, 1 );
painter.drawLine( s.x()-1, 2, s.x()+1, 2 );
// Bottom arrow head.
if( i == m_SelectedStop )
//if( i == m_SelectedStop )
painter.drawLine( s.x()-3, h-1, s.x()+3, h-1 );
painter.drawLine( s.x()-2, h-2, s.x()+2, h-2 );
painter.drawLine( s.x()-1, h-3, s.x()+1, h-3 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment