[Digikam-devel] extragear/graphics/digikam/digikam

Marcel Wiesweg marcel.wiesweg at gmx.de
Sun Feb 14 22:20:40 GMT 2010


SVN commit 1090214 by mwiesweg:

Expand the children of a newly selected current item in left sidebar album and tag tree view.

Waiting for protests...
(we can revert if we dont like it)

CCMAIL: digikam-devel at kde.org

 M  +5 -0      albumtreeview.cpp  
 M  +3 -0      leftsidebarwidgets.cpp  


--- trunk/extragear/graphics/digikam/digikam/albumtreeview.cpp #1090213:1090214
@@ -260,6 +260,11 @@
     d->expandOnSingleClick = doThat;
 }
 
+void AbstractAlbumTreeView::setExpandNewCurrentItem(bool doThat)
+{
+    d->expandNewCurrent = doThat;
+}
+
 void AbstractAlbumTreeView::setSelectAlbumOnClick(bool selectOnClick)
 {
     d->selectAlbumOnClick = selectOnClick;
--- trunk/extragear/graphics/digikam/digikam/leftsidebarwidgets.cpp #1090213:1090214
@@ -84,7 +84,9 @@
     QVBoxLayout *layout = new QVBoxLayout(this);
 
     d->albumFolderView = new AlbumSelectionTreeView(this, model, d->albumModificationHelper);
+    d->albumFolderView->setObjectName("AlbumFolderView");
     d->albumFolderView->setConfigGroup(getConfigGroup());
+    d->albumFolderView->setExpandNewCurrentItem(true);
     d->searchTextBar   = new SearchTextBar(this, "DigikamViewFolderSearchBar");
     d->searchTextBar->setHighlightOnResult(true);
     d->searchTextBar->setModel(model, AbstractAlbumModel::AlbumIdRole, AbstractAlbumModel::AlbumTitleRole);
@@ -182,6 +184,7 @@
 
     d->tagFolderView = new TagFolderView(this, model);
     d->tagFolderView->setConfigGroup(getConfigGroup());
+    d->tagFolderView->setExpandNewCurrentItem(true);
     d->tagSearchBar  = new SearchTextBar(this, "DigikamViewTagSearchBar");
     d->tagSearchBar->setHighlightOnResult(true);
     d->tagSearchBar->setModel(model, AbstractAlbumModel::AlbumIdRole, AbstractAlbumModel::AlbumTitleRole);



More information about the Digikam-devel mailing list