]> git.sesse.net Git - kdenlive/commitdiff
Bezier Spline Editor: if zoomed out draw borders indicating the standard range
authorTill Theato <root@ttill.de>
Sat, 1 Jan 2011 23:28:14 +0000 (23:28 +0000)
committerTill Theato <root@ttill.de>
Sat, 1 Jan 2011 23:28:14 +0000 (23:28 +0000)
svn path=/trunk/kdenlive/; revision=5237

src/beziercurve/beziersplineeditor.cpp

index cf2c17410e5e63daf44e4616041e476f8e6e3afe..291a3d8248c82bdafc4fa99b76334fe880f564f5 100644 (file)
@@ -21,7 +21,6 @@
 #include <QPainter>
 #include <QMouseEvent>
 
-#include <KDebug>
 
 BezierSplineEditor::BezierSplineEditor(QWidget* parent) :
         QWidget(parent),
@@ -97,6 +96,14 @@ void BezierSplineEditor::paintEvent(QPaintEvent* event)
     /*p.setPen(QPen(Qt::gray, 1, Qt::SolidLine));
     p.drawLine(QLineF(0, wHeight, wWidth, 0));*/
 
+    if (m_zoomLevel != 0) {
+        /*
+         * Borders
+         */
+        p.setPen(QPen(Qt::gray, 1, Qt::SolidLine));
+        p.drawRect(offset, offset, wWidth, wHeight);
+    }
+
     /*
      * Spline
      */