[Interest] Why are QAbstractProxyModel::mapToSource and mapFromSource public?

2013-12-11 Thread Philipp Kursawe
When you have complex chain of ProxyModels you cannot use the result index from a call to mapToSource because you cannot know how many proxy models are down the chain. Imagine this chain: p2 - p1 - m0 pX are Proxy models, m0 is the base model. I know only about p2 in my part of the code and

Re: [Interest] Why are QAbstractProxyModel::mapToSource and mapFromSource public?

2013-12-11 Thread Jan Kundrát
On Wednesday, 11 December 2013 17:36:36 CEST, Philipp Kursawe wrote: In code that would be a loop over pX-sourceModel while the sourceModel is a QAbstractProxyModel. That's very similar to what I do in my code, too -- just loop as long as the