Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 380270 Details for
Bug 515698
app-text/fbreader-0.99.4-r1 on ARM - QtWaitingSpinner.cpp:89:55: error: no matching function for call to 'min(double, qreal&)'
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch adding qreal casts
arm-qreal.patch (text/plain), 1.14 KB, created by
William Throwe
on 2014-07-06 01:51:20 UTC
(
hide
)
Description:
Patch adding qreal casts
Filename:
MIME Type:
Creator:
William Throwe
Created:
2014-07-06 01:51:20 UTC
Size:
1.14 KB
patch
obsolete
>diff --git a/zlibrary/ui/src/qt4/tree/QtWaitingSpinner.cpp b/zlibrary/ui/src/qt4/tree/QtWaitingSpinner.cpp >index 1be8569..22c007c 100644 >--- a/zlibrary/ui/src/qt4/tree/QtWaitingSpinner.cpp >+++ b/zlibrary/ui/src/qt4/tree/QtWaitingSpinner.cpp >@@ -86,7 +86,7 @@ void QtWaitingSpinner::setRadius(int radius) { > } > > void QtWaitingSpinner::setRoundness(qreal roundness) { >- myRoundness = std::max(0.0, std::min(100.0, roundness)); >+ myRoundness = std::max(static_cast<qreal>(0.0), std::min(static_cast<qreal>(100.0), roundness)); > } > > void QtWaitingSpinner::setColor(QColor color) { >@@ -148,7 +148,7 @@ QColor QtWaitingSpinner::countTrailColor(int distance, int lines, int trail, int > 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(static_cast<qreal>(1.0), std::max(static_cast<qreal>(0.0), resultAlpha)); //if alpha is out of bound, force it to bounds > color.setAlphaF(resultAlpha); > return color; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 515698
:
379948
| 380270