<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Arial;color: #000000;font-size: 10pt;"><br>
<div><a href="https://github.com/tonercloud/fuelpad/blob/master/harbour-fuelpad/qml/pages/FuelpadPage.qml#L88" target="_blank">https://github.com/tonercloud/fuelpad/blob/master/harbour-fuelpad/qml/pages/FuelpadPage.qml#L88</a><br>
<br>
<span class="pl-v">pass carmodel.get(index)  </span>to the function? (or carListview.model.get(index) ) instead of "model"<br>
<br>
<br>
-kimmo<br>
<div style="font-family:Tahoma; font-size:13px"><font style="font-family:Arial" size="1"><br>
<br>
<br>
</font></div>
</div>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF897873"><font color="#000000" size="2" face="Tahoma"><b>Lähettäjä:</b> devel-bounces@lists.sailfishos.org [devel-bounces@lists.sailfishos.org] käyttäjän Amilcar Santos [amilcar.santos@gmail.com] puolesta<br>
<b>Lähetetty:</b> 5. kesäkuuta 2015 20:58<br>
<b>Vastaanottaja:</b> Sailfish OS Developers<br>
<b>Aihe:</b> Re: [SailfishDevel] What's the correct way to do this?<br>
</font><br>
</div>
<div></div>
<div>
<div dir="ltr">
<div>
<div>
<div>It may be a name collision between carDetails.model (from the database) and ListView.model (Qml delegate implemention)..<br>
</div>
Try renaming the 'model' colunm in the 'car' table<br>
<br>
</div>
Bg,<br>
</div>
Amilcar<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2015-06-05 18:35 GMT+01:00 Krisztian Olah <span dir="ltr">
<<a href="mailto:fasza2mobile@gmail.com" target="_blank">fasza2mobile@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
You are passing a carmodel as an argument to carpassDetails, chances are you did not define member named id or register in carmodel, but probably that's not want to do anyway. You seem to expect carDetails to be some different type, I did not find any definition
 to its type other than it being a QVariant in careRecordsPage.qml.<br>
<br>
The way you want to pass carDetails is correct, but you are passing the model.<br>
<div class="HOEnZb">
<div class="h5"><br>
On Fri Jun 5 17:57:52 2015 GMT+0100, Chris Walker wrote:<br>
> On Fri, 5 Jun 2015 16:53:22 +0000<br>
> Krisztian Olah <<a href="mailto:fasza2mobile@gmail.com" target="_blank">fasza2mobile@gmail.com</a>> wrote:<br>
><br>
> > It looks like the object carDetails does not exist in the scope<br>
> > you're trying to access it. What scope is your carDetails object in?<br>
> > If you could briefly describe in which file each relevant<br>
> > function/object  reside, would be helpful.<br>
><br>
> I've just pushed the code to github. So would that be better than me<br>
> trying to explain it?<br>
><br>
> It's here :-<br>
> <a href="https://github.com/tonercloud/fuelpad" target="_blank">https://github.com/tonercloud/fuelpad</a><br>
> _______________________________________________<br>
> SailfishOS.org Devel mailing list<br>
> To unsubscribe, please send a mail to <a href="mailto:devel-unsubscribe@lists.sailfishos.org" target="_blank">
devel-unsubscribe@lists.sailfishos.org</a><br>
><br>
_______________________________________________<br>
SailfishOS.org Devel mailing list<br>
To unsubscribe, please send a mail to <a href="mailto:devel-unsubscribe@lists.sailfishos.org" target="_blank">
devel-unsubscribe@lists.sailfishos.org</a><br>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
<div class="gmail_signature">Amilcar<br>
(djditz in the mix... ;)<br>
<br>
</div>
</div>
</div>
</div>
</div>
</body>
</html>