[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: KCalc-Bug can be easily fixed in kdelib
From:       David Faure <dfaure () klaralvdalens-datakonsult ! se>
Date:       2003-12-12 12:46:34
[Download RAW message or body]

On Tuesday 09 December 2003 00:26, Klaus Niederkrueger wrote:
> Hallo,
> 
> In the last months, I have been working on kcalc and there is a last
> outstanding bug, which I would like to see fixed, before kde-3.2 is
> released.
> 
> There is a thing missing in kstatusbar that would fix the bug immediately:
> To my knowledge, there is no way to check, if an item already exists
> (after insertItem was used). There is also no way to get a pointer to such
> an item (or?).

Adding an itemById() or so would be a good idea indeed.

> I would like to ask you to add to "insertItem" something along the line of
> 
> insertItem (int id)
> {
> +if(id exists in statusbar)
> +    removeItem(id);

I'm afraid this might introduce some bugs, in case we have apps right now that insert
stuff without caring much about the IDs. Sounds too late in the schedule to change
the behavior of insertItem. I suggest to just add itemById() and call it from kcalc.

-- 
David Faure -- faure@kde.org, dfaure@klaralvdalens-datakonsult.se
Qt/KDE/KOffice developer
Klarälvdalens Datakonsult AB, Platform-independent software solutions

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic