diff options
author | Martin Jones <martin.jones@nokia.com> | 2011-03-17 08:01:50 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2011-03-17 08:24:20 (GMT) |
commit | ac704e9f682378a5ec56e3f5c195dcf2f2dfa1ac (patch) | |
tree | 2be2b63af1d80af90082a7668e96e83b0dcce602 /src/declarative | |
parent | 695a39410c8ce186a2ce78cef51093c55fc32643 (diff) | |
download | Qt-ac704e9f682378a5ec56e3f5c195dcf2f2dfa1ac.zip Qt-ac704e9f682378a5ec56e3f5c195dcf2f2dfa1ac.tar.gz Qt-ac704e9f682378a5ec56e3f5c195dcf2f2dfa1ac.tar.bz2 |
PathView doesn't update if preferred highlight range changes.
Simply call refill() when they change.
Change-Id: I45ab56cbcaf5c726ce4c4f23f66ee687a6d89dad
Task-number: QTBUG-15356
Reviewed-by: Kevin Wu Won
Diffstat (limited to 'src/declarative')
-rw-r--r-- | src/declarative/graphicsitems/qdeclarativepathview.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativepathview.cpp b/src/declarative/graphicsitems/qdeclarativepathview.cpp index 4e401e9..778b8b9 100644 --- a/src/declarative/graphicsitems/qdeclarativepathview.cpp +++ b/src/declarative/graphicsitems/qdeclarativepathview.cpp @@ -796,6 +796,7 @@ void QDeclarativePathView::setPreferredHighlightBegin(qreal start) return; d->highlightRangeStart = start; d->haveHighlightRange = d->highlightRangeMode != NoHighlightRange && d->highlightRangeStart <= d->highlightRangeEnd; + refill(); emit preferredHighlightBeginChanged(); } @@ -812,6 +813,7 @@ void QDeclarativePathView::setPreferredHighlightEnd(qreal end) return; d->highlightRangeEnd = end; d->haveHighlightRange = d->highlightRangeMode != NoHighlightRange && d->highlightRangeStart <= d->highlightRangeEnd; + refill(); emit preferredHighlightEndChanged(); } |