Mercurial > hg > svgui
comparison view/View.cpp @ 1493:c5589d94b731
Improve drawn alignment of lines in AlignmentView against the view below; also cache the mapping locations
author | Chris Cannam |
---|---|
date | Fri, 09 Aug 2019 19:02:51 +0100 |
parents | a2fbcfeb2572 |
children | 6bb0afa607f5 |
comparison
equal
deleted
inserted
replaced
1492:a2fbcfeb2572 | 1493:c5589d94b731 |
---|---|
2164 ModelId alignmentReferenceId; | 2164 ModelId alignmentReferenceId; |
2165 auto aligningModel = ModelById::get(getAligningModel()); | 2165 auto aligningModel = ModelById::get(getAligningModel()); |
2166 if (aligningModel) { | 2166 if (aligningModel) { |
2167 alignmentModelId = aligningModel->getAlignment(); | 2167 alignmentModelId = aligningModel->getAlignment(); |
2168 alignmentReferenceId = aligningModel->getAlignmentReference(); | 2168 alignmentReferenceId = aligningModel->getAlignmentReference(); |
2169 #ifdef DEBUG_VIEW_WIDGET_PAINT | |
2169 SVCERR << "alignmentModelId = " << alignmentModelId << " (reference = " << alignmentReferenceId << ")" << endl; | 2170 SVCERR << "alignmentModelId = " << alignmentModelId << " (reference = " << alignmentReferenceId << ")" << endl; |
2171 #endif | |
2170 } else { | 2172 } else { |
2173 #ifdef DEBUG_VIEW_WIDGET_PAINT | |
2171 SVCERR << "no aligningModel" << endl; | 2174 SVCERR << "no aligningModel" << endl; |
2175 #endif | |
2172 } | 2176 } |
2173 ViewProxy aligningProxy(this, dpratio, alignmentModelId); | 2177 ViewProxy aligningProxy(this, dpratio, alignmentModelId); |
2174 | 2178 |
2175 // Scrollable (cacheable) items first. If we are repainting the | 2179 // Scrollable (cacheable) items first. If we are repainting the |
2176 // cache, then we paint these to the cache; otherwise straight to | 2180 // cache, then we paint these to the cache; otherwise straight to |