]> git.sesse.net Git - kdenlive/commitdiff
Make monitor ruler slightly bigger so it's easier to click for seeking
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Tue, 12 Feb 2013 12:55:15 +0000 (13:55 +0100)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Sat, 16 Feb 2013 18:02:20 +0000 (19:02 +0100)
src/smallruler.cpp
src/widgets/monitor_ui.ui

index cc5f1999a25408ab1a897b069c9cd00f6d05b5ee..b476c0384814153ee16f4b0c9603d28d5f027af1 100644 (file)
@@ -47,7 +47,7 @@ SmallRuler::SmallRuler(Monitor *monitor, Render *render, QWidget *parent) :
     m_zoneColor.setAlpha(180);
 
     setMouseTracking(true);
-    setMinimumHeight(8);
+    setMinimumHeight(QFontInfo(font()).pixelSize());
     adjustScale(m_maxval);
 }
 
@@ -286,7 +286,7 @@ void SmallRuler::paintEvent(QPaintEvent *e)
     int cursorPos = m_cursorFramePosition * m_scale;
     // draw pointer
     QPolygon pa(3);
-    pa.setPoints(3, cursorPos - 6, 7, cursorPos + 6, 7, cursorPos/*+0*/, 0);
+    pa.setPoints(3, cursorPos - 6, height() - 1, cursorPos + 6, height() - 1, cursorPos/*+0*/, height() - 8);
     p.setBrush(m_cursorColor);
     p.setPen(Qt::NoPen);
     p.drawPolygon(pa);
index da42b948feeefab2c6ac4ea018259e7c6710a81d..0ace84b3f305d6298bfe6d95b8759318a170d2a5 100644 (file)
@@ -34,7 +34,7 @@
      <property name="maximumSize">
       <size>
        <width>16777215</width>
-       <height>10</height>
+       <height>12</height>
       </size>
      </property>
      <property name="lineWidth">