Mercurial > hg > svgui
comparison view/Overview.cpp @ 1184:97d0c798c2ac 3.0-integration
Fix some compiler problems
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Tue, 13 Dec 2016 16:23:48 +0000 |
parents | 73b0dc7d6ec1 |
children | a34a2a25907c |
comparison
equal
deleted
inserted
replaced
1182:6605984fa98f | 1184:97d0c798c2ac |
---|---|
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 |