<!DOCTYPE html><html><head><style type="text/css">body { font-family:'DejaVu Sans'; font-size:13px}</style></head><body><div>On Thu, 09 Oct 2014 19:32:00 +0100, Angela <angela.schmid@wolke7.net> wrote:<br><br>> I would like to select a picture/thumb to be used as a directory thumb <br>> (in<br>> the parent view).<br>><br>> At the moment to create a directory thumb it recursives in the directory <br>> to<br>> find the first possible picture and uses it to create a thumb.<br>><br>> In iconview.cpp I found the following code:<br>><br>> if (item->IsDir())<br>> { // try to find a highlight<br>> QDir subdir(item->GetPath(), "*.highlight.*",<br>> QDir::Name, QDir::Files);<br>><br>> I renamed XXXX.JPG to XXXX.highlight.JPG but it was not picked up as the<br>> favorite picture to generate a directory thumb (the .thumbcache has been<br>> deleted).<br>> What does this code do/how should it be used?<br>><br>> Is there a way to set a favorite picture as the directory thumb or is<br>> something broken?<br>><br>> Angela<br>><br><br>That code isn't being used - it's old code for interfacing with <a href="http://galleryproject.org/">http://galleryproject.org/</a>. See <a href="http://marc.info/?l=mythtv-dev&m=107994033415454">http://marc.info/?l=mythtv-dev&m=107994033415454</a><br></div><div><br></div><div>I don't believe there is a way to specify a folder thumb currently. </div><div><br></div><div>However it shouldn't be difficult to add. I knocked up the attached (0.28) patch that uses a thumb called "folder.*", if it exists. I haven't tested it properly but it's a start. (I'm not convinced 'folder' will always be the first file returned)</div></body></html>