Mercurial > hg > svgui
comparison layer/Colour3DPlotRenderer.cpp @ 1471:f2525e6cbdf1 by-id
More layer updates
author | Chris Cannam |
---|---|
date | Mon, 01 Jul 2019 14:17:13 +0100 |
parents | 11a150e65ee1 |
children | 886c1cd48f9d |
comparison
equal
deleted
inserted
replaced
1470:696e569ff21b | 1471:f2525e6cbdf1 |
---|---|
529 int rx1 = v->getXForFrame(int(double(fx + modelResolution + 1) * rateRatio)); | 529 int rx1 = v->getXForFrame(int(double(fx + modelResolution + 1) * rateRatio)); |
530 | 530 |
531 int rw = rx1 - rx0; | 531 int rw = rx1 - rx0; |
532 if (rw < 1) rw = 1; | 532 if (rw < 1) rw = 1; |
533 | 533 |
534 // Qt 5.13 deprecates QFontMetrics::width(), but its suggested | |
535 // replacement (horizontalAdvance) was only added in Qt 5.11 | |
536 // which is too new for us | |
537 #pragma GCC diagnostic ignored "-Wdeprecated-declarations" | |
538 | |
534 bool showLabel = (rw > 10 && | 539 bool showLabel = (rw > 10 && |
535 paint.fontMetrics().width("0.000000") < rw - 3 && | 540 paint.fontMetrics().width("0.000000") < rw - 3 && |
536 paint.fontMetrics().height() < (h / sh)); | 541 paint.fontMetrics().height() < (h / sh)); |
537 | 542 |
538 for (int sy = minbin; sy < minbin + nbins; ++sy) { | 543 for (int sy = minbin; sy < minbin + nbins; ++sy) { |