aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@digia.com>2014-04-08 09:50:52 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-04-08 15:45:53 +0200
commitc5aaba627e1ab559f636808a65978148b013acda (patch)
tree49853007536079c441aa40d36a969365bfb678f0
parentb12285bc3d49b0d17751ebaf0853f3642b4b8b29 (diff)
Set font correctly in canvas example.
This fixes the following warning: Context2D: Missing or misplaced font family in font string (it must come after the font size). Task-number: QTBUG-38103 Change-Id: I0902e6e095fb76cdc8619229dccf2601007c3216 Reviewed-by: Jeff Tranter <jtranter@ics.com> Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
-rw-r--r--examples/quick/canvas/quadraticCurveTo/quadraticCurveTo.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/quick/canvas/quadraticCurveTo/quadraticCurveTo.qml b/examples/quick/canvas/quadraticCurveTo/quadraticCurveTo.qml
index 69e703cca7..b9214b020b 100644
--- a/examples/quick/canvas/quadraticCurveTo/quadraticCurveTo.qml
+++ b/examples/quick/canvas/quadraticCurveTo/quadraticCurveTo.qml
@@ -118,7 +118,7 @@ Item {
// ![1]
ctx.fillStyle = "white";
- ctx.font = "Bold 17px";
+ ctx.font = "bold 17px sans-serif";
ctx.fillText("Qt Quick", 40, 70);
// ![1]
ctx.restore();