Review Request 109651: Refactor style manager

Elvis Stansvik elvstone at gmail.com
Sat Mar 23 14:46:00 GMT 2013


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/109651/#review29753
-----------------------------------------------------------


Just a couple of small stuff.


plugins/textshape/dialogs/StylesManagerModel.h
<http://git.reviewboard.kde.org/r/109651/#comment22143>

    explicit?



plugins/textshape/dialogs/StylesManagerModel.cpp
<http://git.reviewboard.kde.org/r/109651/#comment22144>

    perhaps better to break explicitly here instead of falling through to the default.



plugins/textshape/dialogs/StylesManagerModel.cpp
<http://git.reviewboard.kde.org/r/109651/#comment22145>

    maybe just if (!m_styles.contains(style)), since the value of row isn't used here.


- Elvis Stansvik


On March 22, 2013, 4:38 a.m., Thorsten Zachmann wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/109651/
> -----------------------------------------------------------
> 
> (Updated March 22, 2013, 4:38 a.m.)
> 
> 
> Review request for Calligra and Pierre Stirnweiss.
> 
> 
> 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.
> 
> 
> 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 
> 
> Diff: http://git.reviewboard.kde.org/r/109651/diff/
> 
> 
> Testing
> -------
> 
> Tested modification without saving.
> Tested applying.
> Tested Ok.
> Tested Canceling
> 
> 
> Thanks,
> 
> Thorsten Zachmann
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/calligra-devel/attachments/20130323/4409421e/attachment.htm>


More information about the calligra-devel mailing list