Bug 120056

Summary: digikam: allow to assign via drag and drop tag thumbnails in 'Tags Filter'
Product: [Applications] digikam Reporter: Achim Bohnet <ach>
Component: Usability-Drag&DropAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: wishlist    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In: 0.9.0
Sentry Crash Report:

Description Achim Bohnet 2006-01-13 18:53:44 UTC
Version:           0.8.1 (using KDE 3.5.0, Kubuntu Package 4:3.5.0-0ubuntu9 dapper)
Compiler:          Target: i486-linux-gnu
OS:                Linux (i686) release 2.6.15-11-686

When one create a tag, then it's usually the case that
on has a image that should get the new tag assigned.
When one now what's to use this image as thumbnail for the
new tag too, then one currently has to:

o assign the new tag to the image
o goto the 'Tags' view and select the new tag
o drag and drop the image in on the Tags on the
  left hand side
o goto the last album and scroll down where one left

Before this can be implemented '[Bug 120055] New: digikam: Allow to use any image managed by digikam to be used as Ablbum -, Tag thumbnail'
need to be implemented.

Achim
Comment 1 caulier.gilles 2006-09-04 13:33:47 UTC
SVN commit 580735 by cgilles:

digikam from trunk: Tag Filters View: new option in popup menu to assign an image as tags thumbnail using drag & drop like with Tags View.
BUG: 120056


 M  +7 -0      tagfilterview.cpp  


--- trunk/extragear/graphics/digikam/digikam/tagfilterview.cpp #580734:580735
@@ -317,6 +317,7 @@
             QPopupMenu popMenu(this);
             popMenu.insertItem(SmallIcon("tag"), i18n("Assign Tag '%1' to Dropped Items")
                                 .arg(destAlbum->prettyURL()), 10) ;
+            popMenu.insertItem(i18n("Set as Tag Thumbnail"),  11);
             popMenu.insertSeparator(-1);
             popMenu.insertItem(SmallIcon("cancel"), i18n("C&ancel"));
 
@@ -338,6 +339,12 @@
 
             ImageAttributesWatch::instance()->imagesChanged(destAlbum->id());
         }
+        else if(id == 11)
+        {
+            QString errMsg;
+            AlbumManager::instance()->updateTAlbumIcon(destAlbum, QString(),
+                                                       imageIDs.first(), errMsg);
+        }
     }
 }