Mercurial > hg > svgui
diff layer/Colour3DPlotLayer.cpp @ 616:d632a1e87018 qt5
Build fixes for Qt5
author | Chris Cannam |
---|---|
date | Mon, 11 Mar 2013 14:23:52 +0000 |
parents | 5b72899d692b |
children | 41029a6e55c6 |
line wrap: on
line diff
--- a/layer/Colour3DPlotLayer.cpp Fri Nov 16 17:14:12 2012 +0000 +++ b/layer/Colour3DPlotLayer.cpp Mon Mar 11 14:23:52 2013 +0000 @@ -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;