be5369a0cb
* fpc is kept at -Np0 ```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
20 lines
925 B
Diff
20 lines
925 B
Diff
--- a/zlibrary/ui/src/qt4/tree/QtWaitingSpinner.cpp 2018-03-17 07:35:31.000000000 +0000
|
|
+++ b/zlibrary/ui/src/qt4/tree/QtWaitingSpinner.cpp 2018-03-17 07:37:07.801751090 +0000
|
|
@@ -86,7 +86,7 @@
|
|
}
|
|
|
|
void QtWaitingSpinner::setRoundness(qreal roundness) {
|
|
- myRoundness = std::max(0.0, std::min(100.0, roundness));
|
|
+ myRoundness = std::max((qreal)0.0, std::min((qreal)100.0, roundness));
|
|
}
|
|
|
|
void QtWaitingSpinner::setColor(QColor color) {
|
|
@@ -148,7 +148,7 @@
|
|
qreal alphaDiff = color.alphaF() - (qreal)minAlphaF;
|
|
qreal gradation = alphaDiff / (qreal)(distanceThreshold + 1);
|
|
qreal resultAlpha = color.alphaF() - gradation * distance;
|
|
- resultAlpha = std::min(1.0, std::max(0.0, resultAlpha)); //if alpha is out of bound, force it to bounds
|
|
+ resultAlpha = std::min((qreal)1.0, std::max((qreal)0.0, (qreal)resultAlpha)); //if alpha is out of bound, force it to bounds
|
|
color.setAlphaF(resultAlpha);
|
|
return color;
|
|
}
|