Move aspect to resize in parameters
This commit is contained in:
+2
-3
@@ -356,9 +356,7 @@ ConvertRunable::ConvertParams::ConvertParams(const QVariantMap &map)
|
|||||||
int h = size["height"].toInt();
|
int h = size["height"].toInt();
|
||||||
resize = QSize(w, h);
|
resize = QSize(w, h);
|
||||||
}
|
}
|
||||||
}
|
if(size.contains("aspect"))
|
||||||
|
|
||||||
if(map.contains("aspect"))
|
|
||||||
{
|
{
|
||||||
QString aspectStr = map["aspect"].toString();
|
QString aspectStr = map["aspect"].toString();
|
||||||
if(aspectStr == "keep")
|
if(aspectStr == "keep")
|
||||||
@@ -368,6 +366,7 @@ ConvertRunable::ConvertParams::ConvertParams(const QVariantMap &map)
|
|||||||
else if(aspectStr == "ignore")
|
else if(aspectStr == "ignore")
|
||||||
aspect = Qt::IgnoreAspectRatio;
|
aspect = Qt::IgnoreAspectRatio;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if(map.contains("autostretch"))
|
if(map.contains("autostretch"))
|
||||||
autostretch = map["autostretch"].toBool();
|
autostretch = map["autostretch"].toBool();
|
||||||
|
|||||||
Reference in New Issue
Block a user