mirror of
https://github.com/martinrotter/rssguard.git
synced 2025-01-20 12:49:15 +01:00
edit mirrors of aqt
This commit is contained in:
parent
8c4d9bdf1b
commit
828ac562cb
@ -5,12 +5,13 @@ baseurl: https://mirror.netcologne.de/qtproject
|
|||||||
[mirrors]
|
[mirrors]
|
||||||
trusted_mirrors:
|
trusted_mirrors:
|
||||||
https://download.qt.io
|
https://download.qt.io
|
||||||
|
https://mirrors.ocf.berkeley.edu/qt
|
||||||
|
https://ftp.jaist.ac.jp/pub/qtproject
|
||||||
|
http://ftp1.nluug.nl/languages/qt
|
||||||
|
https://mirrors.dotsrc.org/qtproject
|
||||||
blacklist:
|
blacklist:
|
||||||
http://mirrors.ustc.edu.cn
|
http://mirrors.ustc.edu.cn
|
||||||
http://mirrors.tuna.tsinghua.edu.cn
|
http://mirrors.tuna.tsinghua.edu.cn
|
||||||
http://mirrors.geekpie.club
|
http://mirrors.geekpie.club
|
||||||
fallbacks:
|
fallbacks:
|
||||||
https://mirrors.ocf.berkeley.edu/qt
|
|
||||||
https://ftp.jaist.ac.jp/pub/qtproject
|
|
||||||
http://ftp1.nluug.nl/languages/qt
|
|
||||||
https://mirrors.dotsrc.org/qtproject
|
|
@ -328,7 +328,10 @@ QString WebFactory::limitSizeOfHtmlImages(const QString& html, int desired_width
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// No dimensions given or just height.
|
// No dimensions given.
|
||||||
|
// In this case we simply rely on original image dimensions
|
||||||
|
// if no specific limit is set.
|
||||||
|
// Too wide images will get downscaled.
|
||||||
if (desired_max_height > 0) {
|
if (desired_max_height > 0) {
|
||||||
attrs.insert("height", QString::number(desired_max_height));
|
attrs.insert("height", QString::number(desired_max_height));
|
||||||
}
|
}
|
||||||
@ -337,6 +340,7 @@ QString WebFactory::limitSizeOfHtmlImages(const QString& html, int desired_width
|
|||||||
else {
|
else {
|
||||||
attrs.remove("width");
|
attrs.remove("width");
|
||||||
attrs.remove("height");
|
attrs.remove("height");
|
||||||
|
|
||||||
if (desired_max_height > 0) {
|
if (desired_max_height > 0) {
|
||||||
attrs.insert("style", QSL("max-height: %1px !important;").arg(desired_max_height));
|
attrs.insert("style", QSL("max-height: %1px !important;").arg(desired_max_height));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user