Comment 7 for bug 974685

Revision history for this message
RJ Skerry-Ryan (rryan) wrote : Re: [Bug 974685] Re: Cannot browse my USB-mounted library

Thanks a lot for debugging this Jan-Erik.

Qt will indeed call hasChildren on item-models potentially very frequently.
I think nobody realized this when this feature was added. We should memoize
the result of hasChildren to save on this expensive lookup.

It's unfortunate that the type information isn't present for some
filesystems. Maybe we can detect if it isn't working (all children are
always of type UNKNOWN) and then fall back on using QFileInfoList to check
for directories.

On Mon, Jul 16, 2012 at 1:21 PM, Jan-Erik Meyer-Luetgens <
<email address hidden>> wrote:

> BTW, the hasChildren method is triggered when you move
> the mouse pointer in the directory tree view, many times.
> Is this intended?
>
> --
> You received this bug notification because you are a member of Mixxx
> Development Team, which is subscribed to Mixxx.
> https://bugs.launchpad.net/bugs/974685
>
> Title:
> Cannot browse my USB-mounted library
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/mixxx/+bug/974685/+subscriptions
>