Fwd: GammaRay - Introspection/Debugging Tool for Qt Applications
Sebastian Sauer
mail at dipe.org
Sun Oct 30 15:19:46 GMT 2011
On 10/30/2011 01:58 PM, Boudewijn Rempt wrote:
> Interesting new, tool, I think, especially the QTextDocument inspector.
Indeed. Cool it's finally released :-)
I think something like that would be awesome for Words/Stage. It
could be similar bur more powerful to what we had in 1.x with
those KWord document-tree viewer.
The code is rather good (well, not unexpected :-) ) what means
small and could be easy reused. *But* there is one thing that
makes it not that useful for the particular document-tree viewer
scenario.
I think it would be very easy to implement that. Well, there is
one thing.... from
GammaRay/tools/textdocumentinspector/textdocumentmodel.cpp
void TextDocumentModel::documentChanged()
{
// TODO
fillModel();
}
That means during editing the document-tree is be rebuild every
time. Not sure if that#s actually really a problem but it means
that the current selected document-tree item is not selected
any longer and an expanded treeview loses the currentitem. We
could work around by remembering the previous position. Not
sure if rebuilding the whole tree everytime could be a performance-
problem.
Also we very likely would need to extend it at least a bit to
have our custom styles proper displayed, etc... but that should
be straith-forward too.
Maybe realizing such a document-tree docker would be a really
great gsoc or beginners job?
Independent of the document-tree tool for users it's still a
great tool for developers :-)
>
> _______________________________________________
> calligra-devel mailing list
> calligra-devel at kde.org
> https://mail.kde.org/mailman/listinfo/calligra-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/calligra-devel/attachments/20111030/315b4d83/attachment.htm>
More information about the calligra-devel
mailing list