When truncating the URL, show the first 5 characters (for the protocol)

This commit is contained in:
Mark Johnson 2016-03-15 13:43:42 -07:00
parent bc2aea8774
commit 6094613d06

View file

@ -187,7 +187,7 @@ Item {
font.pixelSize: root.fontSize font.pixelSize: root.fontSize
visible: root.expanded; visible: root.expanded;
text: modelData.length > 30 text: modelData.length > 30
? "..." + modelData.substring(modelData.length - 27) ? modelData.substring(0, 5) + "..." + modelData.substring(modelData.length - 22)
: modelData : modelData
} }
} }