Skip to content

Commit

Permalink
Round corners in titles for rectangle borders (Patch from Till Theato)
Browse files Browse the repository at this point in the history
	modified:   src/modules/qimage/kdenlivetitle_wrapper.cpp
  • Loading branch information
j-b-m committed Jan 22, 2010
1 parent 08dfac0 commit fe9964c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/qimage/kdenlivetitle_wrapper.cpp
Expand Up @@ -253,7 +253,7 @@ void loadFromXml( mlt_producer producer, QGraphicsScene *scene, const char *temp
QString br_str = items.item( i ).namedItem( "content" ).attributes().namedItem( "brushcolor" ).nodeValue();
QString pen_str = items.item( i ).namedItem( "content" ).attributes().namedItem( "pencolor" ).nodeValue();
double penwidth = items.item( i ).namedItem( "content" ).attributes().namedItem( "penwidth") .nodeValue().toDouble();
QGraphicsRectItem *rec = scene->addRect( stringToRect( rect ), QPen( QBrush( stringToColor( pen_str ) ), penwidth ), QBrush( stringToColor( br_str ) ) );
QGraphicsRectItem *rec = scene->addRect( stringToRect( rect ), QPen( QBrush( stringToColor( pen_str ) ), penwidth, Qt::SolidLine, Qt::SquareCap, Qt::RoundJoin ), QBrush( stringToColor( br_str ) ) );
gitem = rec;
}
else if ( items.item( i ).attributes().namedItem( "type" ).nodeValue() == "QGraphicsPixmapItem" )
Expand Down

0 comments on commit fe9964c

Please sign in to comment.