Behavior change in KPageDialog/KPageWidgetItem

Adam Treat treat at kde.org
Mon Oct 1 01:53:28 BST 2007


On Sunday 30 September 2007, Tobias Koenig wrote:
> That's correct. I've added a method 'setDefaultWidget' now to KPageView.
> With this method you can set a widget which is shown whenever a item
> without an own widget is selected.
>
> > I'm just suggesting to 'fix' it so that it behaves like it did in KDE
> > 3.5.
>
> Objection. Your assumption is that you have a tree. However you can have
> a list of items as well in KPageView. So what shall happen in this case
> when you click on such an item? Not to forget that in KPageView the code
> for selecting an item is separated from the code which shows the
> according page. So you can't just opening/collaps a subtree in the
> navigation view because you have only a pointer to QAbstractItemView
> there. And please don't start discussing about casting the pointer if in
> TreeMode or something similar...

Heh.  I've got your point.  A default widget to present will be fine.  In 
fact, as sebas pointed out, treeview's are no longer recommended by our HIG.  
I'm going to see in the future about eliminating the treeview from Kate 
altogether.

Cheers,

Adam




More information about the kde-core-devel mailing list