Move aspect to resize in parameters
This commit is contained in:
+10
-11
@@ -356,17 +356,16 @@ 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();
|
||||||
{
|
if(aspectStr == "keep")
|
||||||
QString aspectStr = map["aspect"].toString();
|
aspect = Qt::KeepAspectRatio;
|
||||||
if(aspectStr == "keep")
|
else if(aspectStr == "expand")
|
||||||
aspect = Qt::KeepAspectRatio;
|
aspect = Qt::KeepAspectRatioByExpanding;
|
||||||
else if(aspectStr == "expand")
|
else if(aspectStr == "ignore")
|
||||||
aspect = Qt::KeepAspectRatioByExpanding;
|
aspect = Qt::IgnoreAspectRatio;
|
||||||
else if(aspectStr == "ignore")
|
}
|
||||||
aspect = Qt::IgnoreAspectRatio;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(map.contains("autostretch"))
|
if(map.contains("autostretch"))
|
||||||
|
|||||||
Reference in New Issue
Block a user