plot: Draw centre-line

This commit is contained in:
Mike Walters
2016-03-01 22:32:30 +00:00
parent 1e929fa9a7
commit caa2709ffc
8 changed files with 13 additions and 14 deletions

View File

@@ -17,4 +17,13 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "plot.h"
#include "plot.h"
void Plot::paintBack(QPainter &painter, QRect &rect, range_t<off_t> sampleRange)
{
painter.save();
QPen pen(Qt::white, 1, Qt::DashLine);
painter.setPen(pen);
painter.drawLine(rect.left(), rect.center().y(), rect.right(), rect.center().y());
painter.restore();
}