Review Request 109651: Refactor style manager
Pierre Stirnweiss
pstirnweiss at googlemail.com
Tue Mar 26 09:20:17 GMT 2013
Sorry not to get back to you, I had to reinstall my box and am still not
completely operational.
As Thorsten said, we decided (on the phone) that his patch was a welcomed
fix for a crash. What i am working on is way more intrusive.
All I have left to do on my box is to set back my development environment
and restore my repo from the backup. I'll try to do that during the week.
See you soon,
Pierre
On Mon, Mar 25, 2013 at 11:22 AM, C. Boemann <cbr at boemann.dk> wrote:
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/109651/
>
> Ship it!
>
> I have only a small issue. After that you are free to push
>
>
> libs/textlayout/KoStyleThumbnailer.cpp<http://git.reviewboard.kde.org/r/109651/diff/3/?file=121435#file121435line160> (Diff
> revision 3)
>
> QImage KoStyleThumbnailer::thumbnail(KoCharacterStyle *characterStyle, KoParagraphStyle *paragraphStyle, QSize size, bool recreateThumbnail, KoStyleThumbnailerFlags flags)
>
> 157
>
> int paragraphStyleId = (paragraphStyle)?paragraphStyle->styleId():0;
>
> 160
>
> unsigned long paragraphStyleId = (paragraphStyle) ? reinterpret_cast<unsigned long>(paragraphStyle) : 0L;
>
> paragraphStyleId seems a misnomer now
>
>
> - C.
>
> On March 25th, 2013, 5:28 a.m. UTC, Thorsten Zachmann wrote:
> Review request for Calligra and Pierre Stirnweiss.
> By Thorsten Zachmann.
>
> *Updated March 25, 2013, 5:28 a.m.*
> Description
>
> This patch tries to fix the problems/crashes which happen in the style manager.
>
> To get the simple crash open the default document and click on the edit button of the None (character style)
>
> The patch uses a different model for the style manager and temporary styles that get modified to only apply the changes once the user applies them.
> The model changes the internal pointer to the temporary files once they are selected and when applied resets to the original ones.
> However the styles preview in the styles manager list is updated immediately.
> The patch simplifies the handling quite a bit.
>
> I did not know that Pierre was also working on that so I publish it now so we have something we can discuss.
>
> If you like this I would like to backport it to 2.6 as it fixes quite some grave bugs compared to what we have now.
>
> Testing
>
> Tested modification without saving.
> Tested applying.
> Tested Ok.
> Tested Canceling
>
> Diffs
>
> - libs/kotext/styles/KoCharacterStyle.h (2fdde12)
> - libs/textlayout/KoStyleThumbnailer.cpp (436b243)
> - plugins/textshape/CMakeLists.txt (084628c)
> - plugins/textshape/dialogs/CharacterGeneral.h (e6d99db)
> - plugins/textshape/dialogs/CharacterGeneral.cpp (d3eead6)
> - plugins/textshape/dialogs/ParagraphGeneral.h (1a78376)
> - plugins/textshape/dialogs/ParagraphGeneral.cpp (ad30369)
> - plugins/textshape/dialogs/StyleManager.h (dec3b6b)
> - plugins/textshape/dialogs/StyleManager.cpp (9c82c11)
> - plugins/textshape/dialogs/StylesManagerModel.h (PRE-CREATION)
> - plugins/textshape/dialogs/StylesManagerModel.cpp (PRE-CREATION)
> - plugins/textshape/dialogs/StylesSortFilterProxyModel.h (PRE-CREATION)
> - plugins/textshape/dialogs/StylesSortFilterProxyModel.cpp
> (PRE-CREATION)
>
> View Diff <http://git.reviewboard.kde.org/r/109651/diff/>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/calligra-devel/attachments/20130326/e4bf1d9d/attachment.htm>
More information about the calligra-devel
mailing list