Mercurial > hg > svgui
diff layer/Colour3DPlotLayer.cpp @ 640:c6d705bf1672
Merge from branch "qt5". This revision actually builds with Qt4 (late releases) or Qt5, though it will warn on configure with Qt4.
author | Chris Cannam |
---|---|
date | Tue, 14 May 2013 12:36:43 +0100 |
parents | d632a1e87018 |
children | 41029a6e55c6 |
line wrap: on
line diff
--- a/layer/Colour3DPlotLayer.cpp Tue Apr 16 15:17:33 2013 +0100 +++ b/layer/Colour3DPlotLayer.cpp Tue May 14 12:36:43 2013 +0100 @@ -952,13 +952,13 @@ if (!m_cache) { m_cache = new QImage (cacheWidth, cacheHeight, QImage::Format_Indexed8); - m_cache->setNumColors(256); +// No longer exists in Qt5: m_cache->setNumColors(256); m_cache->fill(0); if (!m_normalizeVisibleArea) { m_peaksCache = new QImage (cacheWidth / m_peakResolution + 1, cacheHeight, QImage::Format_Indexed8); - m_peaksCache->setNumColors(256); +// No longer exists in Qt5: m_peaksCache->setNumColors(256); m_peaksCache->fill(0); } else if (m_peaksCache) { delete m_peaksCache;