From 95fea0bfc1dbd528f34b0a2d5860a225c2087e5c Mon Sep 17 00:00:00 2001
From: Thomas Hartmann <Thomas.Hartmann@nokia.com>
Date: Wed, 10 Nov 2010 11:39:58 +0100
Subject: [PATCH] QmlDesigner.itemLibrary: use pixelSize instead of pointSize
 as default.

Since all units in qml are usually pixels and mobile devices
usually have much higher dpi than desktop screens, specifing font sizes
in points is usually not what a user wants to do.

Reviewed-by: Kai Koehne
---
 src/plugins/qmldesigner/qtquickplugin/quick.metainfo | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/plugins/qmldesigner/qtquickplugin/quick.metainfo b/src/plugins/qmldesigner/qtquickplugin/quick.metainfo
index 139a82bc056..781e6352cb7 100644
--- a/src/plugins/qmldesigner/qtquickplugin/quick.metainfo
+++ b/src/plugins/qmldesigner/qtquickplugin/quick.metainfo
@@ -21,6 +21,7 @@
       <property name="width" type="int" value="80"/>
       <property name="height" type="int" value="20"/>
       <property name="text" type="QString" value="text"/>
+      <property name="font.pixelSize" type="int" value="12"/>
     </itemlibraryentry>
   </node>
   <node name="Qt/TextEdit" isContainer="false" icon=":/qtquickplugin/images/text-edit-icon16.png">
@@ -30,6 +31,7 @@
       <property name="width" type="int" value="80"/>
       <property name="height" type="int" value="20"/>
       <property name="text" type="QString" value="textEdit"/>
+      <property name="font.pixelSize" type="int" value="12"/>
     </itemlibraryentry>
   </node>
   <node name="Qt/TextInput" isContainer="false" icon=":/qtquickplugin/images/text-input-icon16.png">
@@ -39,6 +41,7 @@
       <property name="width" type="int" value="80"/>
       <property name="height" type="int" value="20"/>
       <property name="text" type="QString" value="textInput"/>
+      <property name="font.pixelSize" type="int" value="12"/>
     </itemlibraryentry>
   </node>
   <node name="Qt/MouseArea" icon=":/qtquickplugin/images/mouse-area-icon16.png">
-- 
GitLab