Fix clang warning about logical operator ambiguity.
Use QPainter::drawLines instead of an individual drawLine call per beat.

Profiling on OS X, this drops WaveformRenderBeat from 18% of the waveform render
time to 8%.