diff --git a/src/plugins/qmldesigner/components/propertyeditor/contextpanewidget.cpp b/src/plugins/qmldesigner/components/propertyeditor/contextpanewidget.cpp
index fa09d4a99be7ddf9662ef42176b77d1d65da0070..139c943c60f1841e617c9c8de89462b1ba21ca8d 100644
--- a/src/plugins/qmldesigner/components/propertyeditor/contextpanewidget.cpp
+++ b/src/plugins/qmldesigner/components/propertyeditor/contextpanewidget.cpp
@@ -39,7 +39,7 @@ static const char * const line_xpm[] = {
         "............"};
 
 /* XPM */
-static char * pin_xpm[] = {
+static const char * pin_xpm[] = {
 "12 9 7 1",
 " 	c None",
 ".	c #000000",