[Digikam-devel] [Bug 119234] Window views not updated when tag name changed in "Tag Filters"
Marcel Wiesweg
marcel.wiesweg at gmx.de
Wed Apr 5 13:30:00 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=119234
marcel.wiesweg gmx de changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From marcel.wiesweg gmx de 2006-04-05 14:29 -------
SVN commit 526683 by mwiesweg:
Connect to signalAlbumRenamed in TagFolderView,
tag renaming can be done by right sidebar as well.
For me it is nicely refreshed in the thumbnail view,
so I assume this is already fixed.
BUG: 119234
M +19 -1 tagfolderview.cpp
M +1 -0 tagfolderview.h
--- trunk/extragear/graphics/digikam/digikam/tagfolderview.cpp #526682:526683
@ -158,11 +158,13 @
SLOT(slotAlbumAdded(Album*)));
connect(d->albumMan, SIGNAL(signalAlbumDeleted(Album*)),
SLOT(slotAlbumDeleted(Album*)));
+ connect(d->albumMan, SIGNAL(signalAlbumRenamed(Album*)),
+ SLOT(slotAlbumRenamed(Album*)));
connect(d->albumMan, SIGNAL(signalAlbumsCleared()),
SLOT(slotAlbumsCleared()));
connect(d->albumMan, SIGNAL(signalAlbumIconChanged(Album*)),
this, SLOT(slotAlbumIconChanged(Album*)));
- connect(AlbumManager::instance(), SIGNAL(signalTAlbumMoved(TAlbum*, TAlbum*)),
+ connect(d->albumMan, SIGNAL(signalTAlbumMoved(TAlbum*, TAlbum*)),
SLOT(slotAlbumMoved(TAlbum*, TAlbum*)));
connect(this, SIGNAL(selectionChanged()),
@ -262,6 +264,22 @
insertItem(item);
}
+void TagFolderView::slotAlbumRenamed(Album* album)
+{
+ if (!album)
+ return;
+
+ TAlbum* tag = dynamic_cast<TAlbum*>(album);
+ if (!tag)
+ return;
+
+ TagFolderViewItem* item = (TagFolderViewItem*)(tag->extraData(this));
+ if (item)
+ {
+ item->setText(0, tag->title());
+ }
+}
+
void TagFolderView::slotSelectionChanged()
{
if (!active())
--- trunk/extragear/graphics/digikam/digikam/tagfolderview.h #526682:526683
@ -66,6 +66,7 @
void slotAlbumAdded(Album *);
void slotSelectionChanged();
void slotAlbumDeleted(Album*);
+ void slotAlbumRenamed(Album*);
void slotAlbumsCleared();
void slotAlbumIconChanged(Album* album);
void slotAlbumMoved(TAlbum* tag, TAlbum* newParent);
More information about the Digikam-devel
mailing list