bug bug bug (pop up palette)
vla24 at sfu.ca
Wed Dec 2 05:13:39 CET 2009
I am glad to announce that the bugs are now gone. I set the wrong
option for the widget. I found another bug and I have fixed it,
although the solution is not so pretty. Thank you for your help
I have once again updated the widget. I removed KisFavoriteBrushData
because it is not necessary to save the icons anymore. The number of
total favorite brushes is limited to 8 or the pop up palette will be
too cramped and the math formula that I used to detect brush index on
the array will not be precise anymore (maybe I have to find a better
formula to detect the brush index). Right now, the widget's background
is dark gray. I am not sure why the colour is off, but it's all good
On Tue, Dec 1, 2009 at 1:30 AM, Vera Lukman <vla24 at sfu.ca> wrote:
>>> 1. How to set offset point in case the window is not positioned on
>>> top left? To produce the bug:
>> You can use mapToGlobal:
> I might did something wrong. I tried to use mapToGlobal but it didn't
> work. It seems to map to global with respect to the main window. So
> it's not helpful.
>>> 2. Pop up palette does not show up. To produce the bug:
>>> - start a canvas and another new canvas, close the older canvas.
>>> Seems like creating a new canvas/file doesn't create a new pop
>>> up palette. How can I detect/fix this?
>> where is the popup palette created at the moment ?
> It's created in KoFavoriteResourceManager
> (ui/ko_favorite_resource_manager.cpp). KoFavoriteResourceManager is
> created in KisView2 line 772, called by KisControlFrame line 119.
More information about the kimageshop