From 72e792364c954651ff2dcc1fd005dbb89ef31350 Mon Sep 17 00:00:00 2001 From: thmichel Date: Wed, 20 May 2015 10:52:20 +0200 Subject: [PATCH] fixed Bug: Flicable in BudgetView not clipping --- car.cpp | 3 --- qml/pages/BudgetView.qml | 5 +++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/car.cpp b/car.cpp index b7d0e0e..6bc6ffe 100644 --- a/car.cpp +++ b/car.cpp @@ -664,7 +664,6 @@ double Car::budget_fuel_total() } double Car::budget_fuel() { -<<<<<<< HEAD /* Return sum(fuel price) / ODO * 100 */ unsigned long int maxDistance = 0; unsigned long int minDistance = 999999999; @@ -736,8 +735,6 @@ double Car::budget_invest() double Car::budget_tire() { //returns tire costs per 100km -======= ->>>>>>> upstream/master return budget_tire_total() / ((maxdistance() - mindistance())/ 100.0); } double Car::budget_tire_total() diff --git a/qml/pages/BudgetView.qml b/qml/pages/BudgetView.qml index 63ca188..5a81394 100644 --- a/qml/pages/BudgetView.qml +++ b/qml/pages/BudgetView.qml @@ -42,10 +42,9 @@ Page { id: pieChart width: { return parent.width < parent.height ? parent.width/2 : parent.height/2 } height: { return parent.width < parent.height ? parent.width/2 : parent.height/2 } - //width: budgetPage.width/2 - //height:budgetPage.height/2 anchors.top: header.bottom anchors.left: parent.left + onPaint: { var ctx = pieChart.getContext('2d') ctx.clearRect(0,0,width,height) @@ -182,6 +181,8 @@ Page { leftMargin: Theme.paddingMedium rightMargin: Theme.paddingMedium contentHeight: dataColumn.height + clip:true + Column { id: dataColumn width: parent.width- Theme.paddingMedium - Theme.paddingMedium