[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    Re: [amarok] src/browsers/playlistbrowser: Force editability of playlist folders.
From:       Matěj Laitl <matej () laitl ! cz>
Date:       2012-12-29 17:49:40
Message-ID: 2672500.BzO5zp6FrU () edgy
[Download RAW message or body]

On 24. 12. 2012 Bart Cerneels wrote:
> Git commit cc88eb136229be323e4c6c76ecc13ac6cfbf3ceb by Bart Cerneels.
> Committed on 24/12/2012 at 12:22.
> Pushed by shanachie into branch 'master'.
> 
> Force editability of playlist folders.
> 
> diff --git a/src/browsers/playlistbrowser/PlaylistsInFoldersProxy.cpp
> b/src/browsers/playlistbrowser/PlaylistsInFoldersProxy.cpp index
> 54ddee9..921cf77 100644
> --- a/src/browsers/playlistbrowser/PlaylistsInFoldersProxy.cpp
> +++ b/src/browsers/playlistbrowser/PlaylistsInFoldersProxy.cpp
> +Qt::ItemFlags PlaylistsInFoldersProxy::flags(const QModelIndex &idx) const
> +{
> +    if( isGroup(idx) && idx.column() == 0)
> +        return Qt::ItemIsEnabled | Qt::ItemIsSelectable |
> Qt::ItemIsEditable | +               Qt::ItemIsDropEnabled;
> +
> +    return QtGroupingProxy::flags(idx);
> +}
> diff --git a/src/browsers/playlistbrowser/PlaylistsInFoldersProxy.h
> b/src/browsers/playlistbrowser/PlaylistsInFoldersProxy.h index
> 9a01dbe..a0a0720 100644
> --- a/src/browsers/playlistbrowser/PlaylistsInFoldersProxy.h
> +++ b/src/browsers/playlistbrowser/PlaylistsInFoldersProxy.h
> +        //re-implemented to make folder name (== label) editable.
> +        virtual Qt::ItemFlags flags(const QModelIndex &idx) const;

Hmm, this doesn't look like Amarok coding style...

	Matěj
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic