Fix color picker broken

Fixes #17
parent 258937df
......@@ -157,7 +157,7 @@ public:
positiveChannelPaths[channel].lineTo(i, y - level);
negativeChannelPaths[channel].lineTo(i, y + level);
}
if (m_firstChunk && m_channels < 7) {
if (m_firstChunk && m_channels > 1 && m_channels < 7) {
painter->drawText(2, y + channelHeight, chanelNames[channel]);
}
positiveChannelPaths[channel].lineTo(i, y);
......
......@@ -144,8 +144,6 @@ void ColorPickerWidget::mousePressEvent(QMouseEvent *event)
m_grabRectFrame->setGeometry(m_grabRect);
m_grabRectFrame->show();
}
QWidget::mousePressEvent(event);
}
void ColorPickerWidget::mouseReleaseEvent(QMouseEvent *event)
......@@ -178,7 +176,6 @@ void ColorPickerWidget::mouseMoveEvent(QMouseEvent *event)
m_grabRect.setHeight(event->globalY() - m_grabRect.y());
m_grabRectFrame->setGeometry(m_grabRect.normalized());
}
QWidget::mouseMoveEvent(event);
}
void ColorPickerWidget::slotSetupEventFilter()
......
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