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

List:       koffice-devel
Subject:    Re: Some questions about repainting tools
From:       Martin Pfeiffer <hubipete () gmx ! net>
Date:       2008-01-28 18:00:49
Message-ID: 200801281900.49483.hubipete () gmx ! net
[Download RAW message or body]

Hi Florian,
as the method repaintDecorations is virtual I would guess that it is meant to 
be reimplemented by each of the tools.
For examples look at the koffice/plugins/ dir for a shape ( the text shape for 
example ) that REimplements repaintDecorations()...
Martin

On Monday 28 January 2008 18:14:45 Florian Merz wrote:
> Hi everyone,
>
> I was playing around with the Flake library, and I thought maybe someone
> can answer me some questions:
>
> The documentation says the repaintDecorations() function can be used to
> trigger a canvas update, but the implementation in KoTool is empty. It also
> seems like it is never called, except when I switch to another tool, and In
> that case it is called two times in a row. If the function is empty, and no
> one calls it while the tool is being used, what is it there for?
>
> What is the best way to trigger a repaint of the tool's decoration from
> inside the tool?
>
> Why does the KoInteractionTool call the KoTool::repaintDecorations()
> function if that function doesn't do anything at all?
>
> Thanks for your help,
>  Florian
> _______________________________________________
> koffice-devel mailing list
> koffice-devel@kde.org
> https://mail.kde.org/mailman/listinfo/koffice-devel


_______________________________________________
koffice-devel mailing list
koffice-devel@kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

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