forked from qt-creator/qt-creator
WelcomeScreen: Don't use clipping
Aparrently clipping is slow in QML, so we use elide and manually control visibility instead. Change-Id: Idb743a8daec04b028f103a075a5416729f0e2a16 Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
This commit is contained in:
@@ -117,7 +117,7 @@ Rectangle {
|
|||||||
y: 170
|
y: 170
|
||||||
color: colors.strongForegroundColor
|
color: colors.strongForegroundColor
|
||||||
text: qsTr("2D PAINTING EXAMPLE long description")
|
text: qsTr("2D PAINTING EXAMPLE long description")
|
||||||
clip: true
|
elide: Text.ElideRight
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.rightMargin: 16
|
anchors.rightMargin: 16
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
@@ -330,7 +330,6 @@ Rectangle {
|
|||||||
height: 32
|
height: 32
|
||||||
anchors.left: tags.right
|
anchors.left: tags.right
|
||||||
anchors.leftMargin: 6
|
anchors.leftMargin: 6
|
||||||
clip: true
|
|
||||||
|
|
||||||
spacing: 2
|
spacing: 2
|
||||||
|
|
||||||
@@ -355,7 +354,7 @@ Rectangle {
|
|||||||
onClicked: appendTag(modelData)
|
onClicked: appendTag(modelData)
|
||||||
property bool hugeTag: (text.length > 12) && index > 1
|
property bool hugeTag: (text.length > 12) && index > 1
|
||||||
property bool isExampleTag: text === "example"
|
property bool isExampleTag: text === "example"
|
||||||
visible: !hugeTag && !isExampleTag && index < 8
|
visible: !hugeTag && !isExampleTag && index < 8 && y < 32
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user