Mercurial > hg > svgui
comparison view/Pane.cpp @ 274:b9380f679f70
* Fix centre line position
* Fix failure to update overview when generating peaks from wav file
* Provide y-coordinate scale values and differences for spectrum measurement
mode, and fix values for waveform (inc dB for both)
* Add Printer colour scheme (may be futile)
author | Chris Cannam |
---|---|
date | Mon, 02 Jul 2007 13:04:17 +0000 |
parents | 87e4c880b4c8 |
children | 21c7152ddba8 |
comparison
equal
deleted
inserted
replaced
273:e954c00cbe55 | 274:b9380f679f70 |
---|---|
629 QColor c = QColor(0, 0, 0); | 629 QColor c = QColor(0, 0, 0); |
630 if (!hasLightBackground()) { | 630 if (!hasLightBackground()) { |
631 c = QColor(240, 240, 240); | 631 c = QColor(240, 240, 240); |
632 } | 632 } |
633 paint.setPen(c); | 633 paint.setPen(c); |
634 int x = width() / 2 + 1; | 634 int x = width() / 2; |
635 paint.drawLine(x, 0, x, height() - 1); | 635 paint.drawLine(x, 0, x, height() - 1); |
636 paint.drawLine(x-1, 1, x+1, 1); | 636 paint.drawLine(x-1, 1, x+1, 1); |
637 paint.drawLine(x-2, 0, x+2, 0); | 637 paint.drawLine(x-2, 0, x+2, 0); |
638 paint.drawLine(x-1, height() - 2, x+1, height() - 2); | 638 paint.drawLine(x-1, height() - 2, x+1, height() - 2); |
639 paint.drawLine(x-2, height() - 1, x+2, height() - 1); | 639 paint.drawLine(x-2, height() - 1, x+2, height() - 1); |