comparison view/Overview.cpp @ 1186:8665e0ffa0d8 levelpanwidget

Merge from branch 3.0-integration
author Chris Cannam
date Wed, 14 Dec 2016 14:28:41 +0000
parents 97d0c798c2ac
children a34a2a25907c
comparison
equal deleted inserted replaced
1180:6a6a63506e3f 1186:8665e0ffa0d8
209 QPainter paint; 209 QPainter paint;
210 paint.begin(this); 210 paint.begin(this);
211 paint.setClipRegion(e->region()); 211 paint.setClipRegion(e->region());
212 paint.setRenderHints(QPainter::Antialiasing); 212 paint.setRenderHints(QPainter::Antialiasing);
213 213
214 QRect r(rect());
215
216 // We paint a rounded rect for each distinct set of view extents, 214 // We paint a rounded rect for each distinct set of view extents,
217 // and we colour in the inside and outside of the rect that 215 // and we colour in the inside and outside of the rect that
218 // corresponds to the current view. (One small caveat -- we don't 216 // corresponds to the current view. (One small caveat -- we don't
219 // know which rect that is yet. We'll have to figure it out 217 // know which rect that is yet. We'll have to figure it out
220 // somehow...) 218 // somehow...)
242 f1 = alignFromReference(rf1); 240 f1 = alignFromReference(rf1);
243 } 241 }
244 242
245 int x0 = getXForFrame(f0); 243 int x0 = getXForFrame(f0);
246 int x1 = getXForFrame(f1); 244 int x1 = getXForFrame(f1);
247
248 245
249 if (x1 <= x0) x1 = x0 + 1; 246 if (x1 <= x0) x1 = x0 + 1;
250 247
251 std::pair<int, int> extent(x0, x1); 248 std::pair<int, int> extent(x0, x1);
252 249