Handling of editing in treeview

Aleix aleixpol at gmail.com
Sun Jun 22 23:41:40 UTC 2008


On Mon, Jun 23, 2008 at 1:34 AM, Andreas Pakulat <apaku at gmx.de> wrote:

> Hi,
>
> I just committed a change to the project treeview which will cause
> a problem when using a plain-qt-styles (i.e. not inheriting from KStyle)
> due to QTreeView defaulting to the DoubleClickEditTrigger. That means by
> default QTreeView will start editing on double-click and not do anything
> else (like emitting the activated signal). As we can't control Qt styles
> and can't guarantee that people use KDE styles, I think we need to find
> another way to fix this. The options as far as I can see are (my
> opinions will be in a separate mail):
>
> - disable in-place-editing of items in the project treeview.
> - find an edit-trigger that suits us, possible options are
>  "pressing edit key", "pressing any key". I don't think any of the
>  other options is usable for a project treeview

I'd go for right-click + edit when the underlying project manager is
editable.


>
> - install an eventfilter/override the event hooks to have full control
>  over how to do that
>
> Andreas
>
> --
> You will always get the greatest recognition for the job you least like.
>
> _______________________________________________
> KDevelop-devel mailing list
> KDevelop-devel at kdevelop.org
> https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20080623/aad2b5ca/attachment.html>


More information about the KDevelop-devel mailing list