summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qcolormap_qws.cpp
diff options
context:
space:
mode:
authorMarius Storm-Olsen <marius.storm-olsen@nokia.com>2009-11-06 10:36:38 +0100
committerMarius Storm-Olsen <marius.storm-olsen@nokia.com>2009-11-06 16:10:02 +0100
commit8d4f3c94411d21f0b7d851b56f951ad54d64340f (patch)
treefc84e1c710012c723e6b1806d1439976c00533e7 /src/gui/painting/qcolormap_qws.cpp
parente53c26b52c890f242491e0dfed4201313d98f720 (diff)
API review: Rename numCols() -> colorCount()
The name numCols is ambiguous, as sometimes it's refering to the number of columns, and sometimes the number of colors. It also does not match the typical Qt naming convention *Count(). Reviewed-by: Tom Cooksey Reviewed-by: Andreas Aardal Hanssen
Diffstat (limited to 'src/gui/painting/qcolormap_qws.cpp')
-rw-r--r--src/gui/painting/qcolormap_qws.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/painting/qcolormap_qws.cpp b/src/gui/painting/qcolormap_qws.cpp
index ce4cd0995d..bc97b086e7 100644
--- a/src/gui/painting/qcolormap_qws.cpp
+++ b/src/gui/painting/qcolormap_qws.cpp
@@ -170,7 +170,7 @@ const QColor QColormap::colorAt(uint pixel) const
(pixel & green_mask) >> green_shift,
(pixel & blue_mask));
}
- Q_ASSERT_X(int(pixel) < qt_screen->numCols(), "QColormap::colorAt", "pixel out of bounds of palette");
+ Q_ASSERT_X(int(pixel) < qt_screen->colorCount(), "QColormap::colorAt", "pixel out of bounds of palette");
return QColor(qt_screen->clut()[pixel]);
}