KDE/kdevplatform/plugins/quickopen

David Nolden david.nolden.kdevelop at art-master.de
Thu Mar 19 14:24:07 UTC 2009


Am Donnerstag 19 März 2009 14:39:38 schrieb Andreas Pakulat:
> > It is nothing more than a QTreeView. And QTreeViews are not good at
> > providing size-hints if they have thousands of items in them(At least
> > unfeasably inefficient). Also we don't want the quickopen widget to be as
> > wide as the widest entry, since that will be _very_ wide. So we should
> > just pick a reasonable default.
>
> Then maybe it should override sizeHint and provide a meaningful value? As
> it is this widget doesn't comply with Qt standards (meaning every widget
> should provide a reasonable sizeHint).
Why should the QTreeView derived class assume anything about the size of its 
contents by providing a fixed sizeHint? That depends on the user of the class.





More information about the KDevelop-devel mailing list