diff --git a/share/qtcreator/gdbmacros/gdbmacros.py b/share/qtcreator/gdbmacros/gdbmacros.py
index 2c7840e0ec6444c5a5d79a3bdc9a5c6bc39cb458..60869f6e8d885541b70bd1b54520b79f365cc8f5 100644
--- a/share/qtcreator/gdbmacros/gdbmacros.py
+++ b/share/qtcreator/gdbmacros/gdbmacros.py
@@ -491,9 +491,9 @@ def qdump__QLocale(d, item):
             d.putCallItem("measurementSystem", item, "measurementSystem()")
             d.putCallItem("numberOptions", item, "numberOptions()")
             d.putCallItem("timeFormat_(short)", item,
-                "timeFormat(" + d.ns + "QLocale::ShortFormat)")
+                "timeFormat('" + d.ns + "QLocale::ShortFormat')")
             d.putCallItem("timeFormat_(long)", item,
-                "timeFormat(" + d.ns + "QLocale::LongFormat)")
+                "timeFormat('" + d.ns + "QLocale::LongFormat')")
             d.putCallItem("decimalPoint", item, "decimalPoint()")
             d.putCallItem("exponential", item, "exponential()")
             d.putCallItem("percent", item, "percent()")