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

Johannes Wienke languitar at semipol.de
Sun Feb 21 11:43:07 GMT 2010


Marcel,

I suspect that this commit causes the following strange behaviour:
Expand an album that already has children, create a new child of this
album via the context menu. Afterwards the parent is collapsed, so that
the new child cannot be seen in the tree view.

Can you have a look at this?

Johannes

Am 14.02.2010 23:20 schrieb Marcel Wiesweg:
> 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);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://mail.kde.org/pipermail/digikam-devel/attachments/20100221/55f0786e/attachment.sig>


More information about the Digikam-devel mailing list