comparison view/View.cpp @ 272:87e4c880b4c8

* highlight the nearest measurement rect * fix rewind during playback
author Chris Cannam
date Fri, 29 Jun 2007 13:58:08 +0000
parents 61a704654497
children b9380f679f70
comparison
equal deleted inserted replaced
271:1a49bd0d8375 272:87e4c880b4c8
1648 1648
1649 if (r.width() != 0 || r.height() != 0) { 1649 if (r.width() != 0 || r.height() != 0) {
1650 paint.save(); 1650 paint.save();
1651 if (focus) { 1651 if (focus) {
1652 paint.setPen(Qt::NoPen); 1652 paint.setPen(Qt::NoPen);
1653 QColor brushColour(Qt::green); 1653 QColor brushColour(Qt::black);
1654 brushColour.setAlpha(30); 1654 brushColour.setAlpha(hasLightBackground() ? 15 : 40);
1655 paint.setBrush(brushColour); 1655 paint.setBrush(brushColour);
1656 if (r.x() > 0) { 1656 if (r.x() > 0) {
1657 paint.drawRect(0, 0, r.x(), height()); 1657 paint.drawRect(0, 0, r.x(), height());
1658 } 1658 }
1659 if (r.x() + r.width() < width()) { 1659 if (r.x() + r.width() < width()) {