Просмотр исходного кода

Don't force height to be an integer

Donald Carr 8 лет назад
Родитель
Сommit
2e64a7337a
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      qml/common/ArtImage.qml

+ 1 - 1
qml/common/ArtImage.qml

@@ -12,7 +12,7 @@ Item {
 
     //color: Qt.rgba(Math.random(255), Math.random(255), Math.random(255), 1.0)
 
-    height: Math.ceil(width/imageModel.data(modelIndex, PictureModel.RatioRole))
+    height: width/imageModel.data(modelIndex, PictureModel.RatioRole)
     width: parent ? parent.width : 0
 
     Image {