[libcalamaresui] Fix build for ::ceil
This commit is contained in:
parent
87ff7ae0da
commit
7db14cb5cf
@ -30,6 +30,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||||||
|
|
||||||
#include "waitingspinnerwidget.h"
|
#include "waitingspinnerwidget.h"
|
||||||
|
|
||||||
|
#include <qmath.h>
|
||||||
#include <QPainter>
|
#include <QPainter>
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
|
|
||||||
@ -58,7 +59,7 @@ currentLineColor( int countDistance, int totalNrOfLines, qreal trailFadePerc, qr
|
|||||||
return color;
|
return color;
|
||||||
}
|
}
|
||||||
const qreal minAlphaF = minOpacity / 100.0;
|
const qreal minAlphaF = minOpacity / 100.0;
|
||||||
int distanceThreshold = static_cast< int >( ceil( ( totalNrOfLines - 1 ) * trailFadePerc / 100.0 ) );
|
int distanceThreshold = static_cast< int >( qCeil( ( totalNrOfLines - 1 ) * trailFadePerc / 100.0 ) );
|
||||||
if ( countDistance > distanceThreshold )
|
if ( countDistance > distanceThreshold )
|
||||||
{
|
{
|
||||||
color.setAlphaF( minAlphaF );
|
color.setAlphaF( minAlphaF );
|
||||||
|
Loading…
Reference in New Issue
Block a user