]> git.sesse.net Git - kdenlive/blobdiff - src/onmonitoritems/onmonitorrectitem.cpp
Fix timeline drawing pixel offset and remove deprecated use of matrix in QPainter
[kdenlive] / src / onmonitoritems / onmonitorrectitem.cpp
index 0514fe8bf60e0e20445964b64220b4d0c9206cb4..acf5c1faf673aa219afdceb31ab1c9543e874676 100644 (file)
@@ -264,7 +264,7 @@ void OnMonitorRectItem::paint(QPainter* painter, const QStyleOptionGraphicsItem*
     painter->drawRect(option->rect);
 
     if (isEnabled()) {
-        double handleSize = 6 / painter->matrix().m11();
+        double handleSize = 6 / painter->worldTransform().m11();
         double halfHandleSize = handleSize / 2;
         painter->fillRect(-halfHandleSize, -halfHandleSize, handleSize, handleSize, QColor(Qt::yellow));
         painter->fillRect(option->rect.width() - halfHandleSize, -halfHandleSize, handleSize, handleSize, QColor(Qt::yellow));