I think I understood you! But I have a new question: which index is
better to return fromRawIndex() if it is outside of cache area (I do
not know it row position)? Perhaps it should return an invalid index.
Or the same raw index?

Regards,
Aleksey

2010/10/5 Koen Deforche <[email protected]>:
> Hey Aleksey,
>
> 2010/10/4 Aleksey Chirkin <[email protected]>:
>> This only partially solves the problem. I can emit layoutChanged
>> signal when updating the cache, then the view class refresh the
>> current selection. I can determine its internal pointer, which will
>> store the primary key, but I can not change the mechanism of index
>> comparison, because now equal indexes do not necessarily have the same
>> row. Equal indexes should only contain the same pointer (and column),
>> because only internal pointer need to be equal (row may change after
>> redraw).
>
> But that is then solved using the fromRawIndex() and toRawIndex()
> implementations: in this way the view will effectively use the
> internal pointer (or whatever you chose) to convert from old indexes
> to new ones.
>
> Regards,
> koen
>
> ------------------------------------------------------------------------------
> Beautiful is writing same markup. Internet Explorer 9 supports
> standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
> Spend less time writing and  rewriting code and more time creating great
> experiences on the web. Be a part of the beta today.
> http://p.sf.net/sfu/beautyoftheweb
> _______________________________________________
> witty-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to