[Digikam-devel] extragear/graphics/digikam/digikam

Marcel Wiesweg marcel.wiesweg at gmx.de
Thu Jun 11 18:36:44 BST 2009


SVN commit 980402 by mwiesweg:

Adding the lines that switch on using a thumbnail database - not enabled per default:

NOTE:
You need to remove the comment signs around albummanager.cpp, lines 685-687, to test the thumbnail database.

For simplicity, it is always created in the directory of the main database and named "thumbnails-digikam.db".
It is using the PGF format to store thumbnails. I am aware there are suggestions to use JPEG or Djvu.

Only real world testing can show if this database is a good thing or not.

CCMAIL: digikam-devel at kde.org

 M  +6 -0      albummanager.cpp  


--- trunk/extragear/graphics/digikam/digikam/albummanager.cpp #980401:980402
@@ -79,6 +79,7 @@
 #include "databaseaccess.h"
 #include "databaseurl.h"
 #include "databaseparameters.h"
+#include "databasethumbnailinfoprovider.h"
 #include "databasewatch.h"
 #include "dio.h"
 #include "imagelister.h"
@@ -680,6 +681,11 @@
         }
     }
 
+    // Initialize thumbnail database
+/*    QFileInfo thumbFile(d->dbPath, "thumbnails-digikam.db");
+    ThumbnailLoadThread::initializeThumbnailDatabase(thumbFile.filePath(), new DatabaseThumbnailInfoProvider());
+    d->dirWatchBlackList << "thumbnails-digikam.db" << "thumbnails-digikam.db-journal";
+*/
     return true;
 }
 



More information about the Digikam-devel mailing list