diff options
author | Thomas Hartmann <thomas.hartmann@qt.io> | 2018-04-09 16:26:25 +0200 |
---|---|---|
committer | Thomas Hartmann <thomas.hartmann@qt.io> | 2018-04-10 13:18:44 +0000 |
commit | 3c08fb2668bd18eeb7a5ad167164f215f66e6999 (patch) | |
tree | 8283216d1bb71e2dc3b8082cd316b2cdd170941f /share/qtcreator | |
parent | a4e9624ce122f9db256ad4f0bbc94063003e29fa (diff) |
QmlDesigner: Adjust font pixel size if pixel density is high
We define some fonts in pixel size and those have to be increased
if the pixel density is high.
Change-Id: I88e932d967aaa9d8757e733048d457e9e7c17f5b
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Diffstat (limited to 'share/qtcreator')
3 files changed, 3 insertions, 3 deletions
diff --git a/share/qtcreator/qmldesigner/itemLibraryQmlSources/ItemDelegate.qml b/share/qtcreator/qmldesigner/itemLibraryQmlSources/ItemDelegate.qml index 09f4f6c8fe4..6d0d42dd6ec 100644 --- a/share/qtcreator/qmldesigner/itemLibraryQmlSources/ItemDelegate.qml +++ b/share/qtcreator/qmldesigner/itemLibraryQmlSources/ItemDelegate.qml @@ -50,7 +50,7 @@ Item { Text { id: text - font.pixelSize: 9 + font.pixelSize: Theme.smallFontPixelSize() elide: Text.ElideMiddle wrapMode: Text.WordWrap anchors.top: itemIcon.bottom diff --git a/share/qtcreator/qmldesigner/itemLibraryQmlSources/ItemsView.qml b/share/qtcreator/qmldesigner/itemLibraryQmlSources/ItemsView.qml index 35217c2553d..30b741f99da 100644 --- a/share/qtcreator/qmldesigner/itemLibraryQmlSources/ItemsView.qml +++ b/share/qtcreator/qmldesigner/itemLibraryQmlSources/ItemsView.qml @@ -69,7 +69,7 @@ ScrollView { readonly property color lighterBackgroundColor: Theme.color(Theme.FancyToolBarSeparatorColor) property int textWidth: 58 - property int textHeight: 22 + property int textHeight: Theme.smallFontPixelSize() * 2 property int cellHorizontalMargin: 1 property int cellVerticalSpacing: 2 diff --git a/share/qtcreator/qmldesigner/statesEditorQmlSources/StatesDelegate.qml b/share/qtcreator/qmldesigner/statesEditorQmlSources/StatesDelegate.qml index 769a43eb318..f3f220562ea 100644 --- a/share/qtcreator/qmldesigner/statesEditorQmlSources/StatesDelegate.qml +++ b/share/qtcreator/qmldesigner/statesEditorQmlSources/StatesDelegate.qml @@ -134,7 +134,7 @@ Rectangle { TextField { id: stateNameField y: 4 - font.pixelSize: 9 + font.pixelSize: Theme.smallFontPixelSize() anchors.left: whenButton.right // use the spacing which the image to the delegate rectangle has anchors.leftMargin: 4 |