From 548ad319dddf53e4edac1cfa44b3193027eefda2 Mon Sep 17 00:00:00 2001 From: Dan Stowell Date: Sun, 29 Jul 2012 22:49:13 +0100 Subject: [PATCH] arm build fix: another double->qreal in QcMultiSlider --- QtCollider/widgets/QcMultiSlider.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/QtCollider/widgets/QcMultiSlider.cpp b/QtCollider/widgets/QcMultiSlider.cpp index aedac583b..bce134880 100644 --- a/QtCollider/widgets/QcMultiSlider.cpp +++ b/QtCollider/widgets/QcMultiSlider.cpp @@ -226,7 +226,7 @@ void QcMultiSlider::mouseMoveEvent( QMouseEvent *e ) return; } - double xStep; + qreal xStep; QRect r( valueRect( c - startIndex, xStep ) ); @@ -329,10 +329,10 @@ void QcMultiSlider::paintEvent( QPaintEvent *e ) } int count = _values.count() - startIndex; - double spacing, width, yscale; + qreal spacing, width, yscale; - spacing = elastic ? (double) bounds.width() / count : thumbSize.width() + gap; - width = elastic ? qMin( spacing, (double) thumbSize.width() ) : thumbSize.width(); + spacing = elastic ? (qreal) bounds.width() / count : thumbSize.width() + gap; + width = elastic ? qMin( spacing, (qreal) thumbSize.width() ) : thumbSize.width(); yscale = bounds.height(); if( !isFilled ) yscale -= thumbSize.height(); -- 2.11.4.GIT