]> git.sesse.net Git - kdenlive/blobdiff - src/titlewidget.cpp
Various fixes to improve general stability in Qt 4.5.2
[kdenlive] / src / titlewidget.cpp
index 1edc631e6f3fc0538df431dd16e5b0e79eb1df83..1dc30385ea629a6a3d1b283bf7c157fd95893cf4 100644 (file)
@@ -503,10 +503,11 @@ void TitleWidget::displayBackgroundFrame()
         QPixmap bg(m_frameWidth / 2, m_frameHeight / 2);
         QPixmap pattern(20, 20);
         pattern.fill();
+        QColor bgcolor(210, 210, 210);
         QPainter p;
         p.begin(&pattern);
-        p.fillRect(QRect(0, 0, 10, 10), QColor(210, 210, 210));
-        p.fillRect(QRect(10, 10, 20, 20), QColor(210, 210, 210));
+        p.fillRect(QRect(0, 0, 10, 10), bgcolor);
+        p.fillRect(QRect(10, 10, 20, 20), bgcolor);
         p.end();
         QBrush br(pattern);