|
From: Tapio V. <aa...@us...> - 2011-01-20 09:29:50
|
Module: editor
Branch: master
Commit: dc3463b3dd3effc6b3402f0c6c8c5f0fdbdd79d0
Author: Tapio Vierros <tap...@gm...>
Date: Thu Jan 20 11:07:38 2011 +0200
Make SeekHandle invisibly wider for easier grabbing.
---
notegraphwidget.cc | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/notegraphwidget.cc b/notegraphwidget.cc
index 22d2f00..c2e91b7 100644
--- a/notegraphwidget.cc
+++ b/notegraphwidget.cc
@@ -457,12 +457,14 @@ SeekHandle::SeekHandle(QWidget *parent)
: QLabel(parent)
{
// FIXME: height from notegraph
- QImage image(8, 768, QImage::Format_ARGB32_Premultiplied);
+ QImage image(16, 768, QImage::Format_ARGB32_Premultiplied);
image.fill(qRgba(0, 0, 0, 0));
QLinearGradient gradient(0, 0, image.width()-1, 0);
- gradient.setColorAt(0.0, QColor(255,255,0,50));
- gradient.setColorAt(0.5, QColor(255,255,0,200));
- gradient.setColorAt(1.0, QColor(255,255,0,50));
+ gradient.setColorAt(0.00, QColor(255,255,0,0));
+ gradient.setColorAt(0.25, QColor(255,255,0,50));
+ gradient.setColorAt(0.50, QColor(255,255,0,200));
+ gradient.setColorAt(0.75, QColor(255,255,0,50));
+ gradient.setColorAt(1.00, QColor(255,255,0,0));
QPainter painter;
painter.begin(&image);
|