[apps/sequence/graph] Change name: highlightColor ->

shouldColorHighlighted

Change-Id: Ia9e37e040fb4cb46cdcbb138c07201491d1a4dc2
This commit is contained in:
Émilie Feral
2017-03-02 16:37:16 +01:00
committed by Romain Goyet
parent e2eae2b2d0
commit 3245704ded
2 changed files with 5 additions and 5 deletions

View File

@@ -11,7 +11,7 @@ GraphView::GraphView(SequenceStore * sequenceStore, InteractiveCurveViewRange *
m_verticalCursor(false),
m_highlightedDotStart(-1),
m_highlightedDotEnd(-1),
m_highlightColor(false),
m_shouldColorHighlighted(false),
m_selectedSequence(nullptr)
{
}
@@ -29,7 +29,7 @@ void GraphView::drawRect(KDContext * ctx, KDRect rect) const {
}
drawDot(ctx, rect, x, y, s->color());
if (x >= m_highlightedDotStart && x <= m_highlightedDotEnd && s == m_selectedSequence) {
KDColor color = m_highlightColor ? s->color() : KDColorBlack;
KDColor color = m_shouldColorHighlighted ? s->color() : KDColorBlack;
if (y >= 0.0f) {
drawSegment(ctx, rect, Axis::Vertical, x, 0.0f, y, color, 1);
} else {
@@ -67,9 +67,9 @@ void GraphView::setHighlight(int start, int end) {
}
void GraphView::setHighlightColor(bool highlightColor) {
if (m_highlightColor != highlightColor) {
if (m_shouldColorHighlighted != highlightColor) {
reload();
m_highlightColor = highlightColor;
m_shouldColorHighlighted = highlightColor;
reload();
}
}