Various problems/bugs with actions/toolbars in a KParts::MainWindow
faure at kde.org
Mon Dec 1 19:50:56 GMT 2008
On Wednesday 29 August 2007, Andreas Zehender wrote:
> Any news on these problems?
> Couldy you identify any bugs?
> Andreas Zehender schrieb:
> > Hi,
> > there are various problems with actions and toolbars in kpovmodeler,
> > which uses a KParts::MainWindow where I can't find solutions for, some
> > may be bugs in action handling:
> > 1) Saving toolbar position
> > I just switched to KMainWindow::setAutoSaveSettings( "MainWindow",
> > true ), now positions of toolbars are saved. However when I drag some
> > toolbars to the left side and restart the application, allways one
> > toolbar is floating instead of docked. mikmak reported in irc that he
> > sees same behaviour in konqueror.
This works nowadays, after all the fixes by ereslibre and myself, right?
> > 2) Toolbar configuration dialog:
> > In the configure toolbars dialog (from context menu of tool bars) the
> > toolbars of the shell are displayed correctly. The toolbars of the
> > part have no available actions and the current actions only show
> > separators.
This sounds like a misuse of kactioncollections? Not putting the actions
into the collections, or into the wrong one, or something like that. The dialog
works in other apps afaik.
> > 3) KToolbarLabelAction
> > I have two toolbar labels, both do not show. The code is:
> > m_pGlobalDetailLabelAction = new KToolBarLabelAction( i18n( "Global
> > detail:" ) + QString( " " ), this );
> > actionCollection()->addAction( "global_detail_label",
> > m_pGlobalDetailLabelAction );
> > I found same code in other applications.
Still the case?
> > 4) Extra empty toolbar
> > I have actions for the main toolbar in shell and part. Both ui files
> > contain
> > <ToolBar name="mainToolBar">
> > The actions merge correctly in one toolbar, but there is an extra
> > empty toolbar with no actions
Still the case?
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