[Digikam-devel] [Bug 139547] tag hierarchy automatic fill
Gilles Caulier
caulier.gilles at kdemail.net
Mon Jan 8 15:46:03 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 16:46 -------
SVN commit 621305 by cgilles:
digiKam from trunk : Comments & Tags pop-up menu : disable Toogle Auto Tags option if user perform Select/Deselect of parents/childs.
CCBUGS: 139547
M +13 -1 imagedescedittab.cpp
--- trunk/extragear/graphics/digikam/libs/imageproperties/imagedescedittab.cpp #621304:621305
@ -120,7 +120,7 @
RatingWidget *ratingWidget;
- TagFilterView::ToggleAutoTags toggleAutoTags;
+ TagFilterView::ToggleAutoTags toggleAutoTags;
};
ImageDescEditTab::ImageDescEditTab(QWidget *parent, bool navBar)
@ -678,6 +678,8 @
toggleAutoMenu.setItemChecked(21 + d->toggleAutoTags, true);
popmenu.insertItem(i18n("Toogle Auto"), &toggleAutoMenu);
+ TagFilterView::ToggleAutoTags oldAutoTags = d->toggleAutoTags;
+
int choice = popmenu.exec((QCursor::pos()));
switch( choice )
{
@ -730,6 +732,7 @
}
case 16: // Invert All Tags Selection.
{
+ d->toggleAutoTags = TagFilterView::NoToggleAuto;
QListViewItemIterator it(d->tagsView);
while (it.current())
{
@ -743,34 +746,43 @
}
++it;
}
+ d->toggleAutoTags = oldAutoTags;
break;
}
case 17: // Select Child Tags.
{
+ d->toggleAutoTags = TagFilterView::NoToggleAuto;
toggleChildTags(album, true);
TAlbumCheckListItem *item = (TAlbumCheckListItem*)album->extraData(this);
item->setOn(true);
+ d->toggleAutoTags = oldAutoTags;
break;
}
case 18: // Deselect Child Tags.
{
+ d->toggleAutoTags = TagFilterView::NoToggleAuto;
toggleChildTags(album, false);
TAlbumCheckListItem *item = (TAlbumCheckListItem*)album->extraData(this);
item->setOn(false);
+ d->toggleAutoTags = oldAutoTags;
break;
}
case 19: // Select Parent Tags.
{
+ d->toggleAutoTags = TagFilterView::NoToggleAuto;
toggleParentTags(album, true);
TAlbumCheckListItem *item = (TAlbumCheckListItem*)album->extraData(this);
item->setOn(true);
+ d->toggleAutoTags = oldAutoTags;
break;
}
case 20: // Deselect Parent Tags.
{
+ d->toggleAutoTags = TagFilterView::NoToggleAuto;
toggleParentTags(album, false);
TAlbumCheckListItem *item = (TAlbumCheckListItem*)album->extraData(this);
item->setOn(false);
+ d->toggleAutoTags = oldAutoTags;
break;
}
case 21: // No toggle auto tags.
More information about the Digikam-devel
mailing list