[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: extragear/graphics/digikam/libs/imageproperties
From: Gilles Caulier <caulier.gilles () kdemail ! net>
Date: 2007-01-08 15:45:59
Message-ID: 1168271159.390488.31941.nullmailer () svn ! kde ! org
[Download RAW message or body]
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.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic