Browse Source

Return fixed ratio for Qt logo fallback

very naughty, I know

Change-Id: Ia63f4e0d0e02ad66144ba64e256750586150aac8
Donald Carr 8 năm trước cách đây
mục cha
commit
da56c9e271
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      src/picturemodel.cpp

+ 2 - 0
src/picturemodel.cpp

@@ -203,6 +203,8 @@ QVariant PictureModel::data(const QModelIndex &index, int role) const
         switch (role) {
         case SizeRole:
             return QSize(1222,900);
+        case RatioRole:
+            return 1222/900;
         case NameRole:
             return "Qt logo";
         case PathRole: