[Digikam-devel] [Bug 139547] tag hierarchy automatic fill
Gilles Caulier
caulier.gilles at kdemail.net
Mon Jan 8 20:37:27 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 21:37 -------
SVN commit 621450 by cgilles:
digikam from trunk : Comments & Tags popup menu behaviours. Do not toogle the current Tags checkbox from treeview when user click with right mouse button to get popup menu.
CCBUGS: 139547
M +12 -2 talbumlistview.cpp
--- trunk/extragear/graphics/digikam/libs/imageproperties/talbumlistview.cpp #621449:621450
@ -166,15 +166,25 @
void TAlbumListView::contentsMousePressEvent(QMouseEvent *e)
{
- QListView::contentsMousePressEvent(e);
QPoint vp = contentsToViewport(e->pos());
TAlbumCheckListItem *item = dynamic_cast<TAlbumCheckListItem*>(itemAt(vp));
+
+ if(item && e->button() == RightButton)
+ {
+ bool isOn = item->isOn();
+ QListView::contentsMousePressEvent(e);
+ // Restore the status of checkbox.
+ item->setOn(isOn);
+ return;
+ }
+
if(item && e->button() == LeftButton)
{
m_dragStartPos = e->pos();
m_dragItem = item;
- return;
}
+
+ QListView::contentsMousePressEvent(e);
}
void TAlbumListView::contentsMouseReleaseEvent(QMouseEvent *e)
More information about the Digikam-devel
mailing list