
With labs.trolltech.com going live this week I was able to release a little tool that provides a way to check for common errors in implementations of QAbstractItemModel.
Never really finding anywhere in Qt where this would belong, labs is a perfect way to get this to developers. Although quite small it has been very usefull in finding issues, a lot faster then me sitting down and reading through code. It is especially usefull when writing tree based models because it will check all of the edge cases. On many occasions when KDE developers have asked me questions about problems they are having with their models, after running their code with the model test I was able to resolve the problem within minutes.
You can find the source on its labs page here:
http://labs.trolltech.com/page/Projects/Itemview/Modeltest

0 comments:
Post a Comment