xmlgui doesn't honor toolbar position

David Faure faure at kde.org
Sun Jul 5 01:56:25 BST 2009


On Tuesday 30 June 2009, Andreas Pakulat wrote:
> On 29.06.09 23:48:12, Albert Astals Cid wrote:
> > A Dilluns, 29 de juny de 2009, David Faure va escriure:
> > > On Sunday 10 June 2007, Christoph Pfister wrote:
> > > > Hi,
> > > >
> > > > Toolbars in the .ui file may have the "position" attribute specifying the
> > > > area where they are placed by default. However it's currently ignored
> > > > (attached is a small testcase showing the problem) ...
> > > >
> > > > Can anybody shed light on this? Thanks in advance!
> > >
> > > Since I'm looking at ktoolbar settings currently I finally had a look at
> > > this, but it seems to be fixed by now. Works for me.
> > 
> > There is a problem though. Changing the position only works if you don't have 
> > a .kde/share/config/appnameuirc file, if you have it modifying the position of 
> > the toolbar in your rc file won't do anything.
> 
> Hmm, as far as I can see the position attribute doesn't work at all. At
> least with kate, I always get the main toolbar on top, not on bottom
> when putting the position="bottom" attribute into the xmlgui file.

No, it works, but as Albert says, it's overridden by the local config file, so
you have to remove the State key in your katerc.

Maybe the GUI solution is a "Use default toolbar settings" action e.g. when
doing RMB on a toolbar...

-- 
David Faure, faure at kde.org, sponsored by Qt Software @ Nokia to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).




More information about the kde-core-devel mailing list