Review Request 109089: Improve behavior on smaller sizes

Aleix Pol Gonzalez aleixpol at gmail.com
Fri Feb 22 18:12:10 UTC 2013



> On Feb. 22, 2013, 5:11 p.m., David Edmundson wrote:
> > chat/org.kde.ktp-chat/contents/ui/main.qml, line 30
> > <http://git.reviewboard.kde.org/r/109089/diff/2/?file=114945#file114945line30>
> >
> >     How could Math.min(width, height) return a negative number?
> >     
> >     or to phrase it another way, what's the point of the Math.max(0, x)

Well, it is sometimes negative and I get a bunch of warnings. It happens from time to time, mostly when booting up. I wouldn't worry, it's a real number after all (which can be negative).


> On Feb. 22, 2013, 5:11 p.m., David Edmundson wrote:
> > chat/org.kde.ktp-chat/contents/ui/main.qml, line 31
> > <http://git.reviewboard.kde.org/r/109089/diff/2/?file=114945#file114945line31>
> >
> >     would chilrenRect.height be easier be easier for the preferredSizes ? 
> >     Not forcing it, just offering a suggestion.
> >     
> >

It didn't work very well because a change in flow means a change in childrenRect, so we had nasty loops. I didn't like it.


> On Feb. 22, 2013, 5:11 p.m., David Edmundson wrote:
> > chat/org.kde.ktp-chat/contents/ui/main.qml, line 36
> > <http://git.reviewboard.kde.org/r/109089/diff/2/?file=114945#file114945line36>
> >
> >     Why +3 ?
> >     
> >     And why both models? You can't have something in the conversations model that isn't in the pinnedModel can you?

The +3 is my fault. I used it for some debugging output.

We need 2 models because the plasmoid shows 2 concatenated repeaters.


- Aleix


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


On Feb. 22, 2013, 3:53 p.m., Aleix Pol Gonzalez wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/109089/
> -----------------------------------------------------------
> 
> (Updated Feb. 22, 2013, 3:53 p.m.)
> 
> 
> Review request for Telepathy.
> 
> 
> Description
> -------
> 
> We had a bug regarding the sizes of the main view. I found out it all was caused by the minimum sizes calculation.
> 
> This fixes this bug by giving a better minimum size instead of just implying that we have 1 size and it's the current one. Furthermore, this makes it possible to have items that are thinner than a square, which makes the whole plasmoid a bit more flexible.
> 
> 
> This addresses bug 315550.
>     http://bugs.kde.org/show_bug.cgi?id=315550
> 
> 
> Diffs
> -----
> 
>   chat/org.kde.ktp-chat/contents/ui/main.qml 3a9b74d 
> 
> Diff: http://git.reviewboard.kde.org/r/109089/diff/
> 
> 
> Testing
> -------
> 
> I played with it for a while with 2 contacts, it felt much better and no warnings in the console.
> 
> 
> Thanks,
> 
> Aleix Pol Gonzalez
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-telepathy/attachments/20130222/926fe064/attachment.html>


More information about the KDE-Telepathy mailing list