Review Request 119222: Make labels inline-editable

Jarosław Staniek staniek at kde.org
Tue Nov 4 21:57:53 GMT 2014


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/119222/#review69859
-----------------------------------------------------------


Partial review, not yet clicked through it...


libs/koreport/items/label/BoundedTextItem.h
<https://git.reviewboard.kde.org/r/119222/#comment48891>

    Licenses still shall be fixed, you can just use other file's license headers. Here you use the GPL (by mistake?)... :)



libs/koreport/items/label/BoundedTextItem.h
<https://git.reviewboard.kde.org/r/119222/#comment48892>

    use KOREPORT prefix to avoid issues when KoReport goes general-purpose



libs/koreport/items/label/BoundedTextItem.h
<https://git.reviewboard.kde.org/r/119222/#comment48893>

    would <QGraphicsTextItem> be sufficient?



libs/koreport/items/label/BoundedTextItem.cpp
<https://git.reviewboard.kde.org/r/119222/#comment48894>

    hardcoded... not needed to initialize at all because in paint() we have QStyleOptionGraphicsItem::palette. QPalette::Base brush can be used or so when !m_backgroundColor.isValid().



libs/koreport/items/label/LabelEditButton.cpp
<https://git.reviewboard.kde.org/r/119222/#comment48890>

    Instead of gray:
    According to the docs, painter's pen is initialized to the QPalette::Text brush from the paint device's palette.
    So you can use it, set alpha to 128 or so.



libs/koreport/items/label/LabelEditButton.cpp
<https://git.reviewboard.kde.org/r/119222/#comment48889>

    Let's use QPixmap::size() instead of hardcoding


- Jarosław Staniek


On Nov. 3, 2014, 8:49 p.m., Adam Pigg wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/119222/
> -----------------------------------------------------------
> 
> (Updated Nov. 3, 2014, 8:49 p.m.)
> 
> 
> Review request for Calligra and Jarosław Staniek.
> 
> 
> Bugs: 336825
>     http://bugs.kde.org/show_bug.cgi?id=336825
> 
> 
> Repository: calligra
> 
> 
> Description
> -------
> 
> Usage:
> Insert label
> Double click to enter inline-edit mode
> -Label text is selected and can be overwritten
> Click away from item to exit edit mode
> -Item text is updated with editor text
> 
> 
> Diffs
> -----
> 
>   libs/koreport/items/label/BoundedTextItem.h PRE-CREATION 
>   libs/koreport/CMakeLists.txt d8aea281ad0536e1423210014f09f616ee09f9af 
>   libs/koreport/items/check/KoReportDesignerItemCheck.cpp ac628616b52b4769232a55af07a51bea9fd80c0a 
>   libs/koreport/items/field/KoReportDesignerItemField.cpp f386f9b99c9584f1122fbee542fb708bf5121f16 
>   libs/koreport/items/image/KoReportDesignerItemImage.cpp b129299e160c65d1d9f6ed691800e1d6095a5364 
>   libs/koreport/wrtembed/reportscene.cpp 2e9c54d29c135c041db75d2a843ea5bd8318e1c1 
>   libs/koreport/items/label/BoundedTextItem.cpp PRE-CREATION 
>   libs/koreport/items/label/KoReportDesignerItemLabel.h 5aa3b48563216db6dc8bd1f8f4c43a7c7bf7dce8 
>   libs/koreport/items/label/KoReportDesignerItemLabel.cpp 8bebbd218fb7f432731af646703cd5e31c3b5245 
>   libs/koreport/items/label/LabelEditButton.h PRE-CREATION 
>   libs/koreport/items/label/LabelEditButton.cpp PRE-CREATION 
>   libs/koreport/items/text/KoReportDesignerItemText.cpp 7af69c4840bd910a7a8ee158d2c89d5f9096ed2a 
>   libs/koreport/renderer/KoReportPrintRenderer.cpp 08428520a1e8f8d319069ade7dd4df96dfa2edb3 
>   libs/koreport/renderer/KoReportScreenRenderer.cpp d19835b05a2f22c7db02f06af1fd0e149864dc2d 
>   libs/koreport/renderer/odtframe/KoOdtFrameReportCheckBox.cpp 95aa265f874a77841c7b76820ef7bbcdbe89b3e9 
>   libs/koreport/wrtembed/KoReportDesigner.cpp 2e1bd502c508ee429205bb7528518de16cc5444b 
> 
> Diff: https://git.reviewboard.kde.org/r/119222/diff/
> 
> 
> Testing
> -------
> 
> Inserted label on new report and checked usage
> 
> Loaded existing report and ensured labels are editiable
> 
> 
> Thanks,
> 
> Adam Pigg
> 
>

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


More information about the calligra-devel mailing list