[Digikam-devel] [Bug 139547] tag hierarchy automatic fill
Gilles Caulier
caulier.gilles at kdemail.net
Mon Jan 8 14:53:02 GMT 2007
------- 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=139547
------- Additional Comments From caulier.gilles kdemail net 2007-01-08 15:53 -------
SVN commit 621274 by cgilles:
digiKam from trunk : Comments & Tags pop-up menu : add missing option to disable 'Toggle Auto' of Tags option.
CCBUGS: 139547
M +14 -8 imagedescedittab.cpp
--- trunk/extragear/graphics/digikam/libs/imageproperties/imagedescedittab.cpp #621273:621274
@ -670,11 +670,12 @
QPopupMenu toggleAutoMenu;
toggleAutoMenu.setCheckable(true);
- toggleAutoMenu.insertItem(i18n("Childs"), 21);
- toggleAutoMenu.insertItem(i18n("Parents"), 22);
- toggleAutoMenu.insertItem(i18n("Both"), 23);
- if (d->toggleAutoTags != TagFilterView::NoToggleAuto)
- toggleAutoMenu.setItemChecked(20 + d->toggleAutoTags, true);
+ toggleAutoMenu.insertItem(i18n("None"), 21);
+ toggleAutoMenu.insertSeparator(-1);
+ toggleAutoMenu.insertItem(i18n("Childs"), 22);
+ toggleAutoMenu.insertItem(i18n("Parents"), 23);
+ toggleAutoMenu.insertItem(i18n("Both"), 24);
+ toggleAutoMenu.setItemChecked(21 + d->toggleAutoTags, true);
popmenu.insertItem(i18n("Toogle Auto"), &toggleAutoMenu);
int choice = popmenu.exec((QCursor::pos()));
@ -772,17 +773,22 @
item->setOn(false);
break;
}
- case 21: // Toggle auto Childs tags.
+ case 21: // No toggle auto tags.
{
+ d->toggleAutoTags = TagFilterView::NoToggleAuto;
+ break;
+ }
+ case 22: // Toggle auto Childs tags.
+ {
d->toggleAutoTags = TagFilterView::Childs;
break;
}
- case 22: // Toggle auto Parents tags.
+ case 23: // Toggle auto Parents tags.
{
d->toggleAutoTags = TagFilterView::Parents;
break;
}
- case 23: // Toggle auto Childs and Parents tags.
+ case 24: // Toggle auto Childs and Parents tags.
{
d->toggleAutoTags = TagFilterView::ChildsAndParents;
break;
More information about the Digikam-devel
mailing list