diff --git a/scriptengines/javascript/simplebindings/painter.cpp b/scriptengines/javascript/simplebindings/painter.cpp index 6b93a94be..e0f5f2412 100644 --- a/scriptengines/javascript/simplebindings/painter.cpp +++ b/scriptengines/javascript/simplebindings/painter.cpp @@ -1090,7 +1090,7 @@ QScriptValue constructPainterClass(QScriptEngine *eng) proto.setProperty("backgroundMode", eng->newFunction(setBackgroundMode), setter); proto.setProperty("brush", eng->newFunction(brush), getter); - proto.setProperty("setBrush", eng->newFunction(setBrush), setter); + proto.setProperty("brush", eng->newFunction(setBrush), setter); proto.setProperty("brushOrigin", eng->newFunction(brushOrigin), getter); proto.setProperty("brushOrigin", eng->newFunction(setBrushOrigin), setter);