[Digikam-devel] [Bug 160840] Wrong filtering on Album-Subtree-View
Gilles Caulier
caulier.gilles at gmail.com
Thu Apr 17 11:26:51 BST 2008
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=160840
------- Additional Comments From caulier.gilles gmail com 2008-04-17 12:26 -------
Arnd,
To be clear, digikamalbums kio slave use ImageLister class :
http://websvn.kde.org/trunk/extragear/graphics/digikam/libs/database/imagelister.cpp?revision=792261&view=markup
and especially the method ImageLister::listAlbum() with m_recursive flag :
...
QString query = "SELECT DISTINCT Images.id, Images.name, Images.album, "
" ImageInformation.rating, ImageInformation.creationDate, "
" Images.modificationDate, Images.fileSize, "
" ImageInformation.width, ImageInformation.height "
" FROM Images "
" LEFT OUTER JOIN ImageInformation ON Images.id=ImageInformation.imageid "
" WHERE ";
if (m_recursive)
{
DatabaseAccess access;
query += "Images.album IN (";
access.db()->addBoundValuePlaceholders(query, albumIds.size());
query += ");";
access.backend()->execSql(query, albumIds, &values);
}
...
Gilles
More information about the Digikam-devel
mailing list