Re: Fit Grid elements in Item

2012-09-27 Thread Sebastian Kügler
On Wednesday, September 26, 2012 20:27:08 Luiz Romário Santana Rios wrote: 2012/9/25 Luiz Romário Santana Rios luizroma...@gmail.com: Em 25/09/2012 08:44, Marco Martin notm...@gmail.com escreveu: take a look at the bettio/qml-gsoc-calculator branch, you should continue from that work

Re: Fit Grid elements in Item

2012-09-26 Thread Luiz Romário Santana Rios
2012/9/25 Luiz Romário Santana Rios luizroma...@gmail.com: Em 25/09/2012 08:44, Marco Martin notm...@gmail.com escreveu: take a look at the bettio/qml-gsoc-calculator branch, you should continue from that work already done. Oh. Well, I only started to port it from scratch because it was

Re: Fit Grid elements in Item

2012-09-25 Thread Sebastian Kügler
On Monday, September 24, 2012 22:37:03 Luiz Romário Santana Rios wrote: And another thing: while this works for the width, the analogous code for the height (height: (grid.height / grid.rows) - grid.spacing) does this: http://oi48.tinypic.com/24l7jom.jpg . Why? That looks odd. Can you post the

Re: Fit Grid elements in Item

2012-09-25 Thread Marco Martin
On Mon, Sep 24, 2012 at 5:05 AM, Luiz Romário Santana Rios luizroma...@gmail.com wrote: Hello. I'm trying to port the Calculator plasmoid to QML, but I'm stuck trying to make the buttons fit their parent item. I'm doing this: take a look at the bettio/qml-gsoc-calculator branch, you should

Re: Fit Grid elements in Item

2012-09-25 Thread Luiz Romário Santana Rios
Em 25/09/2012 07:49, Sebastian Kügler se...@kde.org escreveu: On Monday, September 24, 2012 22:37:03 Luiz Romário Santana Rios wrote: And another thing: while this works for the width, the analogous code for the height (height: (grid.height / grid.rows) - grid.spacing) does this:

Re: Fit Grid elements in Item

2012-09-25 Thread Luiz Romário Santana Rios
Em 25/09/2012 08:44, Marco Martin notm...@gmail.com escreveu: On Mon, Sep 24, 2012 at 5:05 AM, Luiz Romário Santana Rios luizroma...@gmail.com wrote: Hello. I'm trying to port the Calculator plasmoid to QML, but I'm stuck trying to make the buttons fit their parent item. I'm doing this:

Re: Fit Grid elements in Item

2012-09-25 Thread Sebastian Kügler
On Tuesday, September 25, 2012 12:42:58 Luiz Romário Santana Rios wrote: And also, are there more plasmoids which are not in that listing? The list *should* be complete. If you find anything that's not in there, please add it. -- sebas http://www.kde.org | http://vizZzion.org | GPG Key ID:

Re: Fit Grid elements in Item

2012-09-24 Thread Nuno Pinheiro
A Segunda, 24 de Setembro de 2012 00:05:45 Luiz Romário Santana Rios escreveu: Hello. I'm trying to port the Calculator plasmoid to QML, but I'm stuck trying to make the buttons fit their parent item. I'm doing this: Item { anchors { top: resultArea.bottom bottom:

Re: Fit Grid elements in Item

2012-09-24 Thread David Edmundson
On Mon, Sep 24, 2012 at 4:05 AM, Luiz Romário Santana Rios luizroma...@gmail.com wrote: Hello. I'm trying to port the Calculator plasmoid to QML, but I'm stuck trying to make the buttons fit their parent item. I'm doing this: Item { anchors { top: resultArea.bottom

Re: Fit Grid elements in Item

2012-09-24 Thread Sebastian Kügler
On Monday, September 24, 2012 11:45:22 David Edmundson wrote: Although you've told the grid to anchor on the right hand side, you've also (implicitly) told it it needs to be 4 buttons wide, and each button is hardcoded to be at least 12 characters wide. (plasmacomponents/qml/Button.qml:95). At

Re: Fit Grid elements in Item

2012-09-24 Thread David Edmundson
On Mon, Sep 24, 2012 at 1:16 PM, Sebastian Kügler se...@kde.org wrote: On Monday, September 24, 2012 11:45:22 David Edmundson wrote: Although you've told the grid to anchor on the right hand side, you've also (implicitly) told it it needs to be 4 buttons wide, and each button is hardcoded to

Re: Fit Grid elements in Item

2012-09-24 Thread Aaron J. Seigo
On Monday, September 24, 2012 11:45:22 David Edmundson wrote: the plasmoid should fit the size of the content, not shrinking the content to fit. in this case, yes, as it is a popup applet which has an inherent minimum useful size. however, this is only acceptable when there is no other option

Re: Fit Grid elements in Item

2012-09-24 Thread Sebastian Kügler
On Monday, September 24, 2012 14:14:39 David Edmundson wrote: To clarify, by change I meant to consider adding a minimumWidth/minimumHeight property, not removing the current implicitWidth It's impossible for a user of the component to do this accurately because it needs both the label

Re: Fit Grid elements in Item

2012-09-24 Thread Luiz Romário Santana Rios
2012/9/24 Sebastian Kügler se...@kde.org: On Monday, September 24, 2012 11:45:22 David Edmundson wrote: Although you've told the grid to anchor on the right hand side, you've also (implicitly) told it it needs to be 4 buttons wide, and each button is hardcoded to be at least 12 characters

Re: Fit Grid elements in Item

2012-09-24 Thread Mark
On Tue, Sep 25, 2012 at 3:06 AM, Luiz Romário Santana Rios luizroma...@gmail.com wrote: 2012/9/24 Sebastian Kügler se...@kde.org: On Monday, September 24, 2012 11:45:22 David Edmundson wrote: Although you've told the grid to anchor on the right hand side, you've also (implicitly) told it it

Re: Fit Grid elements in Item

2012-09-24 Thread Luiz Romário Santana Rios
2012/9/24 Luiz Romário Santana Rios luizroma...@gmail.com: 2012/9/24 Sebastian Kügler se...@kde.org: On Monday, September 24, 2012 11:45:22 David Edmundson wrote: Although you've told the grid to anchor on the right hand side, you've also (implicitly) told it it needs to be 4 buttons wide, and

Fit Grid elements in Item

2012-09-23 Thread Luiz Romário Santana Rios
Hello. I'm trying to port the Calculator plasmoid to QML, but I'm stuck trying to make the buttons fit their parent item. I'm doing this: Item { anchors { top: resultArea.bottom bottom: parent.bottom left: parent.left right: parent.right } Grid {