[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdepim/kdgantt
From: Marijn Kruisselbrink <m.kruisselbrink () student ! tue ! nl>
Date: 2008-08-24 23:19:44
Message-ID: 1219619984.379607.8118.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 851932 by mkruisselbrink:
fix some issues when qreal is not double, as on ARM
M +1 -1 kdganttdatetimegrid.cpp
M +2 -2 kdganttgraphicsview.cpp
--- trunk/KDE/kdepim/kdgantt/kdganttdatetimegrid.cpp #851931:851932
@@ -118,7 +118,7 @@
void DateTimeGrid::setDayWidth( qreal w )
{
qDebug()<<"DateTimeGrid::setDayWidth"<<w;
- d->dayWidth = qMax( w, 1.0 );
+ d->dayWidth = qMax( w, qreal(1.0) );
emit gridChanged();
}
--- trunk/KDE/kdepim/kdgantt/kdganttgraphicsview.cpp #851931:851932
@@ -531,7 +531,7 @@
d->updateHeaderGeometry();
QRectF r = scene()->itemsBoundingRect();
// To scroll more to the left than the actual item start, bug #4516
- r.setLeft( qMin( 0.0, r.left() ) );
+ r.setLeft( qMin( qreal(0.0), r.left() ) );
// TODO: take scrollbars into account (if not always on)
// The scene should be at least the size of the viewport
// NOTE: scrollbar calculus uses maximumViewportSize() - frameWidth()*2 (not the \
same as viewport()->size()) @@ -584,7 +584,7 @@
*/
QRectF r = d->scene.itemsBoundingRect();
// To scroll more to the left than the actual item start, bug #4516
- r.setLeft( qMin( 0.0, r.left() ) );
+ r.setLeft( qMin( qreal(0.0), r.left() ) );
r.setSize( r.size().expandedTo( maximumViewportSize() - QSizeF( frameWidth()*2, \
frameWidth()*2 ) ) );
d->scene.setSceneRect( r );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic