Fix missing median line in audio thumbnails

parent 0a6270d4
...@@ -91,13 +91,9 @@ public: ...@@ -91,13 +91,9 @@ public:
if (data.isEmpty()) return; if (data.isEmpty()) return;
const qreal indicesPrPixel = qreal(m_outPoint - m_inPoint) / width(); const qreal indicesPrPixel = qreal(m_outPoint - m_inPoint) / width();
painter->setPen(Qt::NoPen); painter->setPen(m_color);
painter->setOpacity(0.5); painter->setBrush(m_color);
if (!KdenliveSettings::displayallchannels()) { if (!KdenliveSettings::displayallchannels()) {
//m_gradient.setFinalStop(0, height());
//painter->setBrush(m_gradient);
painter->setBrush(m_color);
// Draw merged channels // Draw merged channels
QPainterPath path; QPainterPath path;
path.moveTo(-1, height()); path.moveTo(-1, height());
...@@ -122,14 +118,10 @@ public: ...@@ -122,14 +118,10 @@ public:
} else { } else {
// Fill gradient // Fill gradient
int channelHeight = height() / (2 * m_channels); int channelHeight = height() / (2 * m_channels);
//m_gradient.setFinalStop(0, channelHeight);
//painter->setBrush(m_gradient);
painter->setBrush(m_color);
// Draw separate channels // Draw separate channels
QMap<int, QPainterPath> positiveChannelPaths; QMap<int, QPainterPath> positiveChannelPaths;
QMap<int, QPainterPath> negativeChannelPaths; QMap<int, QPainterPath> negativeChannelPaths;
// TODO: get channels count
double i = 0; double i = 0;
double increment = qMax(1., 1 / indicesPrPixel); double increment = qMax(1., 1 / indicesPrPixel);
for (int channel = 0; channel < m_channels; channel++) { for (int channel = 0; channel < m_channels; channel++) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment