Re: Small QML related questions...

2011-12-19 Thread Aaron J. Seigo
On Monday, December 19, 2011 06:32:17 Martin =?ISO-8859-1?Q?Gr=E4=DFlin?= 
wrote:
 On Sunday 18 December 2011 22:07:46 Aaron J. Seigo wrote:
  On Sunday, December 18, 2011 18:43:06 Martin =?ISO-8859-1?Q?Gr=E4=DFlin?=
  
  wrote:
   Hi all,
   
   three small QML/Plasma related questions that came up while working on
   Kickoff and no notmart on IRC to ping ;-). All are related to changing
   layout based on location.
   
   1. How to get the enum values LeftEdge, TopEdge and so on. I get
   plasmoid.location but that's just a number. No matter what I tried QML
   gave
   me an undefined value for the edge values.
  
  should be just: LeftEdge.
 
 no, that did not work.

hmm... that's in the JS bindings and i confirmed it existed before i replied; 
where in your QML are you trying to use it?

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Qt Development Frameworks


signature.asc
Description: This is a digitally signed message part.
___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


Re: Small QML related questions...

2011-12-19 Thread Martin Gräßlin

Am 19.12.2011 11:02, schrieb Aaron J. Seigo:
On Monday, December 19, 2011 06:32:17 Martin 
=?ISO-8859-1?Q?Gr=E4=DFlin?=

wrote:

On Sunday 18 December 2011 22:07:46 Aaron J. Seigo wrote:
 On Sunday, December 18, 2011 18:43:06 Martin 
=?ISO-8859-1?Q?Gr=E4=DFlin?=


 wrote:
  Hi all,
 
  three small QML/Plasma related questions that came up while 
working on
  Kickoff and no notmart on IRC to ping ;-). All are related to 
changing

  layout based on location.
 
  1. How to get the enum values LeftEdge, TopEdge and so on. I 
get
  plasmoid.location but that's just a number. No matter what I 
tried QML

  gave
  me an undefined value for the edge values.

 should be just: LeftEdge.

no, that did not work.


hmm... that's in the JS bindings and i confirmed it existed before i
replied;
where in your QML are you trying to use it?
I'll ping you this evening when I'm back home and give you my current 
patch on top of kickoff branch


Cheers
Martin
___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


Re: Re: Small QML related questions...

2011-12-19 Thread Martin Gräßlin
On Monday 19 December 2011 11:46:41 Martin =?ISO-8859-1?Q?Gr=E4=DFlin?= wrote:
  hmm... that's in the JS bindings and i confirmed it existed before i
  replied;
  where in your QML are you trying to use it?
 
 I'll ping you this evening when I'm back home and give you my current
 patch on top of kickoff branch
I just tried together with Marco and it works. Seems like I had a typo 
yesterday...

Sorry for the noise

Cheers
Martin

P.S.: A kingdom, a kingdom for type checking while editing


signature.asc
Description: This is a digitally signed message part.
___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


Small QML related questions...

2011-12-18 Thread Martin Gräßlin
Hi all,

three small QML/Plasma related questions that came up while working on Kickoff 
and no notmart on IRC to ping ;-). All are related to changing layout based on 
location.

1. How to get the enum values LeftEdge, TopEdge and so on. I get 
plasmoid.location but that's just a number. No matter what I tried QML gave me 
an undefined value for the edge values. Documentation on techbase could be 
better there. I will add a note when I figured that out.

2. Is it possible to get a vertical TabBar with the PlasmaComponents? I would 
like to use that if Kickoff is placed on a left/right panel as with the 
current version.

3. Is it possible to somehow visually connect the selected TabButton with the 
tab content? That's one of the things the classic Kickoff is doing quite 
nicely and I think this could help in general to make it more clear that these 
are Tabs.

Cheers
Martin 

signature.asc
Description: This is a digitally signed message part.
___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


Re: Small QML related questions...

2011-12-18 Thread Aaron J. Seigo
On Sunday, December 18, 2011 18:43:06 Martin =?ISO-8859-1?Q?Gr=E4=DFlin?= 
wrote:
 Hi all,
 
 three small QML/Plasma related questions that came up while working on
 Kickoff and no notmart on IRC to ping ;-). All are related to changing
 layout based on location.
 
 1. How to get the enum values LeftEdge, TopEdge and so on. I get
 plasmoid.location but that's just a number. No matter what I tried QML gave
 me an undefined value for the edge values.

should be just: LeftEdge.

in libplasma2's script engines these will be namespaced instead of drifiting in 
the global namespace.

 Documentation on techbase could
 be better there. I will add a note when I figured that out.

thanks :)

 2. Is it possible to get a vertical TabBar with the PlasmaComponents? I
 would like to use that if Kickoff is placed on a left/right panel as with
 the current version.

not sure; i don't think so, but this should be addable for 4.9.

 3. Is it possible to somehow visually connect the selected TabButton with
 the tab content? That's one of the things the classic Kickoff is doing
 quite nicely and I think this could help in general to make it more clear
 that these are Tabs.

not really; this is where we need to decide to either:

* think about how we want TabBar to look and make it so that it looks more 
integrated everywhere (ala kickoff)

* or we decide not to, make something specific for kickoff in QML

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Qt Development Frameworks


signature.asc
Description: This is a digitally signed message part.
___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


Re: Small QML related questions...

2011-12-18 Thread Marco Martin
On Sunday 18 December 2011, Martin Gräßlin wrote:

 2. Is it possible to get a vertical TabBar with the PlasmaComponents? I
 would like to use that if Kickoff is placed on a left/right panel as with
 the current version.

uhm, nope, didn't add that (we can add it as extended api in the future)

 3. Is it possible to somehow visually connect the selected TabButton with
 the tab content? That's one of the things the classic Kickoff is doing
 quite nicely and I think this could help in general to make it more clear
 that these are Tabs.

would add quite a lot of code complexity (and different look for not so clear 
reason)

-- 
Marco Martin
___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


Re: Re: Small QML related questions...

2011-12-18 Thread Martin Gräßlin
On Sunday 18 December 2011 22:07:46 Aaron J. Seigo wrote:
 On Sunday, December 18, 2011 18:43:06 Martin =?ISO-8859-1?Q?Gr=E4=DFlin?=
 
 wrote:
  Hi all,
  
  three small QML/Plasma related questions that came up while working on
  Kickoff and no notmart on IRC to ping ;-). All are related to changing
  layout based on location.
  
  1. How to get the enum values LeftEdge, TopEdge and so on. I get
  plasmoid.location but that's just a number. No matter what I tried QML
  gave
  me an undefined value for the edge values.
 
 should be just: LeftEdge.
no, that did not work.


Cheers
Martin

signature.asc
Description: This is a digitally signed message part.
___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel