[Digikam-devel] [Bug 118526] make it possible to remove an album's thumbnail
Gilles Caulier
caulier.gilles at free.fr
Fri Sep 1 13:47:20 BST 2006
------- 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=118526
------- Additional Comments From caulier.gilles free fr 2006-09-01 14:47 -------
SVN commit 579693 by cgilles:
digikam from trunk: new popup menu options to reset album/tag thumbs in comments & tags side bar tab
CCBUGS: 118526
M +28 -21 imagedescedittab.cpp
--- trunk/extragear/graphics/digikam/libs/imageproperties/imagedescedittab.cpp #579692:579693
@ -571,32 +571,39 @
popmenu.insertItem(SmallIcon("tag"), i18n("New Tag..."), 10);
if (!album->isRoot())
{
- popmenu.insertItem(SmallIcon("pencil"), i18n("Edit Tag Properties..."), 11);
- popmenu.insertItem(SmallIcon("edittrash"), i18n("Delete Tag"), 12);
+ popmenu.insertItem(SmallIcon("pencil"), i18n("Edit Tag Properties..."), 11);
+ popmenu.insertItem(SmallIcon("reload_page"), i18n("Reset Tag Icon"), 13);
+ popmenu.insertItem(SmallIcon("edittrash"), i18n("Delete Tag"), 12);
}
switch (popmenu.exec(QCursor::pos()))
{
- case 10:
- {
- tagNew(album);
- break;
+ case 10:
+ {
+ tagNew(album);
+ break;
+ }
+ case 11:
+ {
+ if (!album->isRoot())
+ tagEdit(album);
+ break;
+ }
+ case 12:
+ {
+ if (!album->isRoot())
+ tagDelete(album);
+ break;
+ }
+ case 13:
+ {
+ QString errMsg;
+ AlbumManager::instance()->updateTAlbumIcon(album, QString("tag"), 0, errMsg);
+ break;
+ }
+ default:
+ break;
}
- case 11:
- {
- if (!album->isRoot())
- tagEdit(album);
- break;
- }
- case 12:
- {
- if (!album->isRoot())
- tagDelete(album);
- break;
- }
- default:
- break;
- }
}
void ImageDescEditTab::tagNew(TAlbum* parAlbum)
More information about the Digikam-devel
mailing list