Review Request 123445: Collapse the chat applet when there are no chats open

Aleix Pol Gonzalez aleixpol at kde.org
Tue Apr 21 11:01:29 UTC 2015



> On April 21, 2015, 12:33 p.m., Aleix Pol Gonzalez wrote:
> > chat/org.kde.ktp-chat/contents/ui/FullChatList.qml, line 31
> > <https://git.reviewboard.kde.org/r/123445/diff/1/?file=362235#file362235line31>
> >
> >     I don't really understand why you changed all the types either.
> >     
> >     QtQuick.Layouts operates on qreal.
> 
> Martin Klapetek wrote:
>     We use ints everywhere in plasma as reals cause sub-pixel alignment, which is unwanted. I see no reason to have that?

Mh, whatever. Do it in a separate patch.


> On April 21, 2015, 12:33 p.m., Aleix Pol Gonzalez wrote:
> > chat/org.kde.ktp-chat/contents/ui/FullChatList.qml, line 33
> > <https://git.reviewboard.kde.org/r/123445/diff/1/?file=362235#file362235line33>
> >
> >     Please don't change that. It's not correct.
> >     
> >     The plasmoid supports being on a vertical and horizontal layout, therefore thickness and length nomenclature.
> >     
> >     When the width exceedes thickness, the dimensions are swapped.
> 
> Martin Klapetek wrote:
>     This nomenclature however is not used anywhere else and it's confusing when working with it; it still is width/height even when rotated, isn't it?

No. On a vertical set up, length is the height and thickness is the width. On a horizontal set up, height is the thickness and vice-versa.

In fact, it's the same nomenclature as in the PanelView: plasma-workspace/shell/panelview.h


- Aleix


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


On April 21, 2015, 12:10 p.m., Martin Klapetek wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/123445/
> -----------------------------------------------------------
> 
> (Updated April 21, 2015, 12:10 p.m.)
> 
> 
> Review request for Telepathy.
> 
> 
> Bugs: 298306
>     http://bugs.kde.org/show_bug.cgi?id=298306
> 
> 
> Repository: ktp-desktop-applets
> 
> 
> Description
> -------
> 
> Just like the Pager applet, collapse when there's nothing to show. Consistency++
> 
> Also fix the property type & name - Length -> Width, Thickness -> Height, real -> int
> 
> 
> Diffs
> -----
> 
>   chat/org.kde.ktp-chat/contents/ui/FullChatList.qml db6d420 
> 
> Diff: https://git.reviewboard.kde.org/r/123445/diff/
> 
> 
> Testing
> -------
> 
> Added to panel, takes no space, opened a chat, opened another chat, closed chat, opened another chat, closed chat, closed chat, takes no space in panel. And it resized always correctly when opening/closing.
> 
> 
> Thanks,
> 
> Martin Klapetek
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-telepathy/attachments/20150421/6e78d7c7/attachment-0001.html>


More information about the KDE-Telepathy mailing list