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 : > > Em 25/09/2012 08:44, "Marco Martin" escreveu: > >> take a look at the > >> bettio/qml-gsoc-calculator branch, you should continue from that work > >> already done. > > > > Oh. >

Re: Fit Grid elements in Item

2012-09-26 Thread Luiz Romário Santana Rios
2012/9/25 Luiz Romário Santana Rios : > Em 25/09/2012 08:44, "Marco Martin" 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 still TODO and > assigned to

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: 91

Re: Fit Grid elements in Item

2012-09-25 Thread Luiz Romário Santana Rios
Em 25/09/2012 08:44, "Marco Martin" escreveu: > > On Mon, Sep 24, 2012 at 5:05 AM, Luiz Romário Santana Rios > 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 >

Re: Fit Grid elements in Item

2012-09-25 Thread Luiz Romário Santana Rios
Em 25/09/2012 07:49, "Sebastian Kügler" 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: http://oi48.t

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 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 continue from that w

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 t

Re: Fit Grid elements in Item

2012-09-25 Thread Sebastian Kügler
On Monday, September 24, 2012 22:06:00 Luiz Romário Santana Rios wrote: > This works nicely. Thank you all very much for the help. > > But here's another question: How do I set a different size for the "0" > and "=" buttons? Repeater doesn't let me set a property differently > based on the index a

Re: Fit Grid elements in Item

2012-09-24 Thread Luiz Romário Santana Rios
2012/9/24 Luiz Romário Santana Rios : > 2012/9/24 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 hardco

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 wrote: > 2012/9/24 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,

Re: Fit Grid elements in Item

2012-09-24 Thread Luiz Romário Santana Rios
2012/9/24 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. >> (p

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 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 David Edmundson
On Mon, Sep 24, 2012 at 1:16 PM, Sebastian Kügler 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 be at le

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).

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 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 > bottom: parent.b

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 > bo

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 {