[kdevplatform] plugins/projectmanagerview: Open files on single-click in the Projects toolview.

Niko Sams niko.sams at gmail.com
Wed Dec 18 09:27:00 UTC 2013


Hi,

I have a regression with this commit: the projects view doesn't get
focus anymore (except when using right click + esc)

My use cases:
I'd like to rename a file:
- select the file in project view and press F2

I'd like to delete a file:
- select the file in project view and press Del

same for Ctrl+C and Ctrl+V shortcuts

cheers,
Niko


On Fri, Nov 29, 2013 at 1:50 PM, Sven Brauch <svenbrauch at googlemail.com> wrote:
> Git commit 36f8f1ab9e3480361cca61f56c9a1db210013e32 by Sven Brauch.
> Committed on 29/11/2013 at 12:49.
> Pushed by brauch into branch 'master'.
>
> Open files on single-click in the Projects toolview.
>
> I have been using this for weeks and had no problems. The double-clicking
> is not required at all.
> CCMAIL:kdevelop-devel at kde.org
>
> M  +1    -1    plugins/projectmanagerview/projecttreeview.cpp
>
> http://commits.kde.org/kdevplatform/36f8f1ab9e3480361cca61f56c9a1db210013e32
>
> diff --git a/plugins/projectmanagerview/projecttreeview.cpp b/plugins/projectmanagerview/projecttreeview.cpp
> index ed8a05d..5e4724c 100644
> --- a/plugins/projectmanagerview/projecttreeview.cpp
> +++ b/plugins/projectmanagerview/projecttreeview.cpp
> @@ -81,7 +81,7 @@ ProjectTreeView::ProjectTreeView( QWidget *parent )
>      setItemDelegate(new ProjectModelItemDelegate(this));
>
>      connect( this, SIGNAL(customContextMenuRequested(QPoint)), this, SLOT(popupContextMenu(QPoint)) );
> -    connect( this, SIGNAL(doubleClicked(QModelIndex)), this, SLOT(slotActivated(QModelIndex)) );
> +    connect( this, SIGNAL(clicked(QModelIndex)), this, SLOT(slotActivated(QModelIndex)) );
>
>      connect( ICore::self(), SIGNAL(aboutToShutdown()),
>               this, SLOT(aboutToShutdown()));
> _______________________________________________
> KDevelop-devel mailing list
> KDevelop-devel at kde.org
> https://mail.kde.org/mailman/listinfo/kdevelop-devel


More information about the KDevelop-devel mailing list