mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-03 00:04:47 -04:00
output socket now are always filled
This commit is contained in:
parent
f84c4ff43b
commit
0e1e1505eb
@ -187,7 +187,16 @@ void QgsModelDesignerSocketGraphicItem::paint( QPainter *painter, const QStyleOp
|
||||
{
|
||||
QColor outlineColor = getColor();
|
||||
QColor fillColor = QColor( outlineColor );
|
||||
fillColor.setAlpha( isDefaultParamValue() ? 30 : 255 );
|
||||
|
||||
if ( isInput() )
|
||||
{
|
||||
fillColor.setAlpha( isDefaultParamValue() ? 30 : 255 );
|
||||
}
|
||||
else
|
||||
{
|
||||
// outputs are always filled sockets
|
||||
fillColor.setAlpha( 255 );
|
||||
}
|
||||
|
||||
// Outline style
|
||||
painter->setPen( QPen( outlineColor, mHoverState ? mSocketOutlineWidth * 2 : mSocketOutlineWidth ) );
|
||||
@ -201,6 +210,7 @@ void QgsModelDesignerSocketGraphicItem::paint( QPainter *painter, const QStyleOp
|
||||
float ellipseOffset = 0.4;
|
||||
QPointF ellipsePosition = QPointF( position().x() + ellipseOffset, position().y() + ellipseOffset );
|
||||
painter->drawEllipse( ellipsePosition, DISPLAY_SIZE, DISPLAY_SIZE );
|
||||
|
||||
/* Uncomment to display bounding box */
|
||||
#if 0
|
||||
painter->save();
|
||||
|
Loading…
x
Reference in New Issue
Block a user