summaryrefslogtreecommitdiffstats
path: root/src/gui/image/qpixmap_qws.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/image/qpixmap_qws.cpp')
-rw-r--r--src/gui/image/qpixmap_qws.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/image/qpixmap_qws.cpp b/src/gui/image/qpixmap_qws.cpp
index a8516a5..9a52f3f 100644
--- a/src/gui/image/qpixmap_qws.cpp
+++ b/src/gui/image/qpixmap_qws.cpp
@@ -126,7 +126,7 @@ int QPixmap::numCols() const
{
if (data && data->classId() == QPixmapData::RasterClass) {
const QRasterPixmapData *d = static_cast<const QRasterPixmapData*>(data.data());
- return d->image.numColors();
+ return d->image.colorCount();
}
return 0;