Dockwidgets - Only one per Area? (= Left, Right, Top, Bottom)

Niko Sams niko.sams at gmail.com
Thu Oct 29 06:13:09 UTC 2009


On Wed, Oct 28, 2009 at 22:36, Milian Wolff <mail at milianw.de> wrote:
> Hey all!
>
> I finally found the cause for an issue that bugs me personally a lot:
>
> The menu "View -> Tool Views" cannot hide currently shown dock widgets, i.e.
> it does not toggle, but only activate. This makes it pretty useless IMO.
>
> The problem is that the actions have a QActionCollection associated, which has
> setExclusive() set. Under that condition, Qt refuses to toggle actions (see
> documentation).
>
> When I remove the action collection (which has a "TODO: just for now..."
> associated with it ;-)), dock widgets behave differently:
> You can enable more than one in each area at the same time. They get displayed
> next to each other (or on top of each other).
>
> Now this may sound like it would suck, but actually I could think of a few
> cases where that would actually be helpful:
>
> Assume a *very wide screen*™, currently you have no way to display more than
> two dock widgets (i.e. only one left, only one right). With this change, one
> could have as much visible at the same time as one wants.
This would be a very useful feature.
Actually almost every UI using docks supports this (usually through drag&drop).

Niko




More information about the KDevelop-devel mailing list