]> git.sesse.net Git - mlt/commitdiff
Round corners in titles for rectangle borders (Patch from Till Theato)
authorj-b-m <jb@kdenlive.org>
Fri, 22 Jan 2010 19:47:40 +0000 (20:47 +0100)
committerj-b-m <jb@kdenlive.org>
Fri, 22 Jan 2010 19:47:40 +0000 (20:47 +0100)
modified:   src/modules/qimage/kdenlivetitle_wrapper.cpp

src/modules/qimage/kdenlivetitle_wrapper.cpp

index b84f685a84e7428c27e41c963204a97cd968189b..980750355af8a69cd4cdbbac7d1087b03c42c960 100755 (executable)
@@ -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" )