Issues using KToolBarLabelAction

Albert Astals Cid aacid at kde.org
Mon Apr 21 20:11:23 BST 2008


A Diumenge 20 Abril 2008, Albert Astals Cid va escriure:
> Moving to kde-core-devel as it's a bug in kde core libraries, please only
> answer to k-c-d
>
> A Diumenge 20 Abril 2008, David Boosalis va escriure:
> > I wanted to put a label in a KToolBar. I reached for the
> > KToolBarLabelAction class to do this.  Maybe I just don't get it or maybe
> > the code below shows a bug.  Any advise appreciated.
>
> Yeah it seems like a bug to me too, the attached patch #1 fixes the problem
> for me.
>
> Patch #2 fixes the fact that if you change the action text after showing
> the toolbar the label is not updated.
>
> Ok to commit both patches?

Aaron did a review, found a last minute change bug where the if condition was 
reversed and also removed NULL usage if favor of 0.

So that should be fixed for KDE 4.1

Albert

>
> Albert






More information about the kde-core-devel mailing list