sukalong | yo | 13:59 |
---|---|---|
sukalong | whassap | 13:59 |
AkivaAvraham | sukalong, nm | 13:59 |
AkivaAvraham | you | 13:59 |
sukalong | yo | 14:00 |
sukalong | what's up bro.. | 14:00 |
sukalong | i think i'm lost | 14:00 |
AkivaAvraham | sukalong, explain | 14:00 |
sukalong | i just click something.. then i got here | 14:01 |
sukalong | wait brb | 14:01 |
AkivaAvraham | SDK newbie :) ? | 14:02 |
sukalong | yes i am hehe | 14:04 |
sukalong | newbie is a little high to me.. | 14:04 |
sukalong | cuz i dont know anything | 14:04 |
AkivaAvraham | sukalong, are you interested in developing an application for ubuntu touch or ubuntu in general? | 14:04 |
AkivaAvraham | or just a qt app? | 14:04 |
sukalong | i love programming.. just wanna try qt | 14:05 |
sukalong | you wanna teach me if i wanna develop app. for ubuntu touch? :D | 14:05 |
AkivaAvraham | yah sure | 14:05 |
sukalong | lolreally? | 14:05 |
AkivaAvraham | what kind of app are you looking to make? | 14:05 |
AkivaAvraham | yah why not? | 14:05 |
sukalong | not sure.. | 14:05 |
AkivaAvraham | in any case | 14:06 |
sukalong | i'm newbie's newbie lol | 14:06 |
AkivaAvraham | first step is always this | 14:06 |
AkivaAvraham | https://launchpad.net/ | 14:06 |
sukalong | ah! | 14:06 |
AkivaAvraham | set up an account, with an SSH key. | 14:06 |
AkivaAvraham | finish that, then come back and ping me. | 14:06 |
sukalong | k | 14:06 |
AkivaAvraham | instructions to setting up a ssh key are provided. | 14:07 |
sukalong | i cant find ping lol | 14:18 |
AkivaAvraham | sukalong, heh | 14:18 |
sukalong | i'm on QT Creator's IRC thing | 14:18 |
AkivaAvraham | sukalong, what you do, is begin to type my name, and press tab | 14:18 |
sukalong | SSH public key added. | 14:18 |
AkivaAvraham | that autocompletes my name | 14:18 |
sukalong | AkivaAvraham: a | 14:19 |
AkivaAvraham | if my name comes up, a message is sent to me notifying me | 14:19 |
sukalong | oh ic | 14:19 |
sukalong | :D | 14:19 |
AkivaAvraham | exactly http://imgur.com/sl8tZP2 | 14:19 |
sukalong | so.. what next? | 14:19 |
sukalong | imgur.com got blocked by my ISP | 14:20 |
AkivaAvraham | sukalong, so create a new project | 14:20 |
sukalong | wait.. | 14:20 |
AkivaAvraham | okay | 14:20 |
AkivaAvraham | not important | 14:20 |
AkivaAvraham | just showing the notification | 14:20 |
sukalong | oh ic | 14:20 |
AkivaAvraham | alright, create a new project. | 14:20 |
sukalong | create project from qt creator? | 14:20 |
AkivaAvraham | yes, the ubuntu sdk. | 14:21 |
AkivaAvraham | we will choose a qml based one | 14:21 |
sukalong | k | 14:21 |
sukalong | created | 14:22 |
AkivaAvraham | so which did you choose? The basic ui one? | 14:22 |
sukalong | no option for UI i guess | 14:23 |
AkivaAvraham | mmmm? | 14:23 |
AkivaAvraham | hold on, go and download teamviewer | 14:23 |
AkivaAvraham | this will make this much easier | 14:23 |
sukalong | :D | 14:23 |
sukalong | i have TV | 14:24 |
sukalong | wait | 14:24 |
AkivaAvraham | im downloading it | 14:24 |
AkivaAvraham | sukalong, while I download it | 14:25 |
AkivaAvraham | do you have any programming experience? | 14:25 |
sukalong | a little | 14:25 |
sukalong | and very long time ago | 14:25 |
sukalong | i got c++ | 14:25 |
rpadovani | AkivaAvraham, are you on vivid? | 14:26 |
AkivaAvraham | a long time ago... do you want a rehash? | 14:26 |
AkivaAvraham | rpadovani, 14.10 I think | 14:26 |
AkivaAvraham | why? | 14:26 |
rpadovani | AkivaAvraham, since 15.04 there is integration of hexchat with notify indicator in systray with a package to install :-) | 14:26 |
AkivaAvraham | rpadovani, ohhh nice? is that with unity next? | 14:26 |
AkivaAvraham | speaking of which is the sdk working on unity8 yet? | 14:27 |
rpadovani | AkivaAvraham, nope, with Unity7 :D just sudo apt-get install hexchat-indicator | 14:27 |
rpadovani | AkivaAvraham, unfortunately, only with vivid, you have to compile it from source for 14.10 | 14:27 |
AkivaAvraham | sukalong, anyways do you want to go through say python or c++? | 14:27 |
AkivaAvraham | rpadovani, will remember that. | 14:28 |
sukalong | i never do python | 14:28 |
AkivaAvraham | sukalong, Well just to get you back up to date with functions and what have you | 14:28 |
AkivaAvraham | i'm not sure how long ago that c++ experience was | 14:28 |
sukalong | that makes 2 of us lol | 14:29 |
sukalong | so.. should we really do this? | 14:29 |
sukalong | or should i rehash a lil and be back tomorrow maybe? | 14:29 |
AkivaAvraham | sukalong, of course, | 14:29 |
sukalong | or next year? >.< | 14:29 |
AkivaAvraham | nope you misunderstand | 14:29 |
AkivaAvraham | i'm asking if you want to do some collaborative editting together | 14:29 |
AkivaAvraham | to get your skills back to snuff | 14:29 |
AkivaAvraham | http://codebunk.com/b/31317591/ | 14:29 |
sukalong | i'm not sure i have skill to get back to.. | 14:30 |
AkivaAvraham | here we can write and execute code together, and have it execute. | 14:30 |
AkivaAvraham | okay then good | 14:30 |
sukalong | i' there | 14:31 |
AkivaAvraham | okay | 14:31 |
AkivaAvraham | i | 15:23 |
i | ya | 15:24 |
AkivaAvraham | hey so now you have what you need; sorry for taking a bit | 15:24 |
=== i is now known as Guest98035 | ||
AkivaAvraham | so but now in that project, I know we have the same base. | 15:24 |
AkivaAvraham | try clicking run, and see if it runs | 15:24 |
sukalong | where's it? :D | 15:25 |
AkivaAvraham | :? the run button? | 15:25 |
sukalong | yes | 15:25 |
AkivaAvraham | press left alt, | 15:26 |
AkivaAvraham | type "run" | 15:26 |
AkivaAvraham | or | 15:26 |
AkivaAvraham | bottom left corner green play button | 15:26 |
sukalong | its run | 15:27 |
sukalong | ing | 15:27 |
AkivaAvraham | sukalong, great | 15:27 |
AkivaAvraham | by the way, stupid thing you should know, and probably do know | 15:27 |
AkivaAvraham | but do not ever run the sdk as root | 15:28 |
AkivaAvraham | you won't be able to use it ever again :P | 15:28 |
sukalong | ok | 15:28 |
sukalong | :D | 15:28 |
AkivaAvraham | okay so QML has these things called components. | 15:28 |
AkivaAvraham | a component looks like this: | 15:28 |
AkivaAvraham | MyComponent {} | 15:29 |
AkivaAvraham | the fact that the first letter is capitalized, is forced. | 15:29 |
AkivaAvraham | there is no such thing as myComponent {} | 15:29 |
sukalong | this was called "UbuntuShape" | 15:29 |
AkivaAvraham | yes | 15:29 |
sukalong | is taht pixel based? | 15:30 |
AkivaAvraham | So components can be made out of many little components. | 15:30 |
AkivaAvraham | its a custom rectangle that one. | 15:30 |
AkivaAvraham | now, every component has things called properties | 15:30 |
AkivaAvraham | a property has this form: | 15:30 |
AkivaAvraham | MyComponent { myProperty: "blue"} | 15:31 |
sukalong | ok | 15:31 |
AkivaAvraham | ok | 15:31 |
AkivaAvraham | so, go to somewhere in the code, and type a letter, and press "CTRL + Spacebar" | 15:32 |
AkivaAvraham | that will open up an autocomplete dialogue | 15:32 |
sukalong | ah! | 15:32 |
AkivaAvraham | that will show you a list of properties and components available to you | 15:32 |
sukalong | got it | 15:32 |
AkivaAvraham | {: | 15:32 |
AkivaAvraham | so quick test: what is one way you know that it is a property, or a component? | 15:33 |
sukalong | nice :D | 15:33 |
sukalong | property is inside component | 15:33 |
AkivaAvraham | Good , but property has something else | 15:34 |
sukalong | attributes? | 15:34 |
AkivaAvraham | you can also put components inside components :) | 15:34 |
AkivaAvraham | nope; the first letter; is it capitalized? | 15:34 |
sukalong | no | 15:34 |
AkivaAvraham | exactly | 15:34 |
sukalong | so that's the differente? | 15:34 |
AkivaAvraham | yep! | 15:34 |
sukalong | ah! ic | 15:35 |
AkivaAvraham | Component { property } | 15:35 |
AkivaAvraham | You can make your own components, and you can make your own properties for components. | 15:35 |
AkivaAvraham | so lets make our own component... well first, lets just make something | 15:35 |
AkivaAvraham | sukalong, so do you see a component called "Column { ..." ? | 15:36 |
sukalong | yes | 15:37 |
AkivaAvraham | sukalong, okay you have columns, and you have rows. Like in a spread sheet | 15:37 |
AkivaAvraham | a column is a vertical ... list of sorts | 15:37 |
AkivaAvraham | a row is a horizontal list | 15:37 |
AkivaAvraham | so lets say you made some rectangles in a column, they all would be stacked upon eachother, | 15:38 |
AkivaAvraham | okay | 15:38 |
AkivaAvraham | so lets do that | 15:38 |
AkivaAvraham | In the Column Brackets, create a component "Rectangle { } " | 15:38 |
AkivaAvraham | then press play; you should not see anything, but the component should run | 15:39 |
AkivaAvraham | application should run* | 15:39 |
sukalong | the grey thing? | 15:40 |
AkivaAvraham | oh is it? | 15:40 |
AkivaAvraham | do you see it? | 15:40 |
sukalong | nothing's changed i guess | 15:40 |
AkivaAvraham | :) | 15:40 |
sukalong | yep, i'm possitive | 15:41 |
sukalong | nothing's changed | 15:41 |
sukalong | maybe because its blank? | 15:42 |
AkivaAvraham | so it has no size | 15:42 |
AkivaAvraham | so what you need to do is adjust its properties | 15:42 |
sukalong | i added a text, and its there :D | 15:43 |
AkivaAvraham | go into the rectangle brackets, and press "h", then autocomplete | 15:43 |
AkivaAvraham | you should see "height:" as a property | 15:43 |
AkivaAvraham | the default color should be white | 15:44 |
sukalong | ah! | 15:45 |
sukalong | yes i can see it now | 15:45 |
AkivaAvraham | sukalong, okay great | 15:45 |
AkivaAvraham | sukalong, so because canonical is smart, they recognized that 500 pixels on a high density device will be smaller than a conventional device | 15:45 |
AkivaAvraham | sukalong, so we use something called "Grid Units" | 15:46 |
AkivaAvraham | sukalong, so go back to height: and width: and replace your values with | 15:46 |
AkivaAvraham | units.gu(10) | 15:46 |
sukalong | ok | 15:46 |
sukalong | done | 15:47 |
AkivaAvraham | sukalong, so thats the proper way to set sizes manually | 15:47 |
AkivaAvraham | sukalong, okay now set the color | 15:47 |
AkivaAvraham | color: "green" | 15:48 |
AkivaAvraham | or | 15:48 |
AkivaAvraham | color: "#666" | 15:48 |
AkivaAvraham | it takes color hexes | 15:48 |
AkivaAvraham | or the proper way | 15:48 |
AkivaAvraham | color: UbuntuColors.green | 15:49 |
AkivaAvraham | well almost the proper way :) | 15:49 |
sukalong | its shown as white | 15:50 |
AkivaAvraham | Now when you are done that, replace "Rectangle" with "UbuntuShape" | 15:50 |
AkivaAvraham | maybe you don't have the import | 15:50 |
AkivaAvraham | import Ubuntu.Components 1.1 | 15:50 |
sukalong | ./usr/lib/x86_64-linux-gnu/qt5/bin/qmlscene exited with code 255 | 15:52 |
AkivaAvraham | mmmm? | 15:52 |
sukalong | the shape is fine, except for the color | 15:52 |
AkivaAvraham | imports go at the top btw ~ | 15:52 |
sukalong | i know | 15:53 |
AkivaAvraham | okay now lets create our own component | 15:53 |
sukalong | should i replace the 0.1 to 1.1? | 15:53 |
sukalong | or just add it below it?> | 15:53 |
sukalong | i was adding it | 15:54 |
AkivaAvraham | yes, you have an old version | 15:54 |
AkivaAvraham | 14.04? | 15:54 |
sukalong | 14.10 i guess | 15:54 |
AkivaAvraham | meh anyways | 15:54 |
sukalong | or 14.04 :D forgot | 15:55 |
AkivaAvraham | goto your project folder, rightclick, new > qt > qtquick2 file | 15:55 |
AkivaAvraham | qtquick = qml basically | 15:55 |
AkivaAvraham | it means, build guis quickly | 15:55 |
AkivaAvraham | give the name a capital letter | 15:56 |
AkivaAvraham | like MyStupidComponent | 15:56 |
sukalong | ha! | 15:56 |
sukalong | wait | 15:56 |
AkivaAvraham | ? | 15:57 |
Guest98035 | tes | 15:58 |
sukalong | ok sorry | 15:58 |
sukalong | lets restart | 15:58 |
AkivaAvraham | Guest98035, pong | 15:58 |
sukalong | where's this qtquick2 file? | 15:59 |
AkivaAvraham | Add new > Qt > Qml File (qtquick 2) | 15:59 |
AkivaAvraham | add new is on the left side bar, when you right click your project folder. | 15:59 |
sukalong | ok | 16:01 |
sukalong | i was searching qtquick2 >.< | 16:01 |
AkivaAvraham | sukalong, no excuses | 16:01 |
sukalong | done, go on | 16:01 |
AkivaAvraham | anyways | 16:01 |
AkivaAvraham | so the new file should have a Rectangle component in it, right? | 16:01 |
sukalong | yep | 16:01 |
AkivaAvraham | okay leave it, go back to main | 16:01 |
AkivaAvraham | go into the column where you added the other component, under it | 16:02 |
AkivaAvraham | write the name of your component | 16:02 |
AkivaAvraham | so if you named it MyFile.qml | 16:02 |
AkivaAvraham | you will be going | 16:02 |
sukalong | MyStupidComponent | 16:02 |
AkivaAvraham | MyStupidComponent { | 16:02 |
AkivaAvraham | yep | 16:02 |
AkivaAvraham | and you don't need any properties | 16:02 |
AkivaAvraham | run it and see if it shows up | 16:02 |
sukalong | its white square | 16:03 |
sukalong | rectangle* | 16:03 |
sukalong | square was from before | 16:03 |
AkivaAvraham | yep | 16:04 |
AkivaAvraham | okay | 16:04 |
AkivaAvraham | now the properties of rectangle can be adjusted | 16:04 |
AkivaAvraham | so go MyStupidComponent { height: units.gu(20)} | 16:04 |
sukalong | ok its higher now | 16:05 |
AkivaAvraham | so you can have default arguments defined in the qml file | 16:06 |
AkivaAvraham | but you can adjust them, right? | 16:06 |
AkivaAvraham | sukalong, okay now lets create our own custom properties. | 16:06 |
sukalong | yep | 16:06 |
AkivaAvraham | go to the qml file | 16:06 |
sukalong | ok | 16:06 |
AkivaAvraham | and type "property int stupid" | 16:07 |
AkivaAvraham | that will create an integer property | 16:07 |
AkivaAvraham | then | 16:07 |
AkivaAvraham | change width: 100 to width: stupid | 16:08 |
AkivaAvraham | and then go into main, and set the property stupid, to 300 | 16:08 |
AkivaAvraham | MyStupidComponent { stupid: 300 } | 16:09 |
sukalong | ok | 16:09 |
sukalong | changed | 16:09 |
sukalong | but its not integer, its int | 16:10 |
AkivaAvraham | does it work? | 16:10 |
AkivaAvraham | yep | 16:10 |
AkivaAvraham | int | 16:10 |
sukalong | integer is syntax wrong | 16:10 |
AkivaAvraham | :D | 16:10 |
sukalong | yes its work | 16:10 |
AkivaAvraham | okay | 16:10 |
AkivaAvraham | you can also use var or string | 16:10 |
AkivaAvraham | or list I think too, but that a bit more complicated | 16:10 |
AkivaAvraham | var is for any variable, so its low performance | 16:10 |
AkivaAvraham | make sense? | 16:10 |
sukalong | yes | 16:10 |
sukalong | but let me get used to this first | 16:11 |
AkivaAvraham | okay now lets put a component in a component | 16:11 |
AkivaAvraham | go back to stupid.qml | 16:11 |
sukalong | ok | 16:11 |
AkivaAvraham | and import ubuntucomponents 1.1 | 16:11 |
sukalong | 0.1? | 16:11 |
AkivaAvraham | and then go into rectangle component, and create a "Label {text: "i'm stupid" } | 16:11 |
AkivaAvraham | 1.1 | 16:12 |
AkivaAvraham | always 1.1 | 16:12 |
AkivaAvraham | 0.1 is 2013 | 16:12 |
AkivaAvraham | erm, if you can | 16:12 |
AkivaAvraham | 0.1 fine actually | 16:12 |
AkivaAvraham | itll work | 16:12 |
AkivaAvraham | just remember to update your sdk | 16:12 |
sukalong | ok | 16:12 |
AkivaAvraham | btw are you familiar with irc? | 16:13 |
sukalong | yes | 16:13 |
sukalong | was* | 16:13 |
sukalong | :D | 16:13 |
AkivaAvraham | okay :P download hexchat when you get a chance | 16:13 |
sukalong | ok | 16:13 |
AkivaAvraham | we are #ubuntu-app-devel on hexchat | 16:13 |
AkivaAvraham | on freenode* | 16:13 |
AkivaAvraham | anyways | 16:13 |
sukalong | anyways? | 16:14 |
AkivaAvraham | yah | 16:14 |
AkivaAvraham | so did you get the label in? | 16:14 |
sukalong | its work.. the "me" is showing | 16:14 |
sukalong | lol | 16:14 |
AkivaAvraham | is it working? | 16:14 |
sukalong | yes | 16:15 |
AkivaAvraham | okay | 16:15 |
AkivaAvraham | so now the question is, lets say you want to change that label's text color | 16:15 |
AkivaAvraham | sukalong, how do you do that from main? | 16:15 |
AkivaAvraham | or better yet | 16:15 |
AkivaAvraham | in main | 16:15 |
sukalong | i'd add it inside the stupid component | 16:16 |
AkivaAvraham | create two MyStupidComponents. One with a black label, one with a red label | 16:16 |
sukalong | text {} maybe? | 16:16 |
AkivaAvraham | nope | 16:16 |
AkivaAvraham | the issue is, that you can't change properties of sub components unless you specify them. | 16:17 |
sukalong | we need variable? | 16:17 |
AkivaAvraham | we need to create a property | 16:18 |
AkivaAvraham | so go into stupid.qml, goto Label | 16:18 |
AkivaAvraham | and type | 16:18 |
AkivaAvraham | color: parent.textColor | 16:18 |
AkivaAvraham | then go into Rectangle | 16:18 |
AkivaAvraham | and type | 16:18 |
AkivaAvraham | property string textColor | 16:19 |
sukalong | its black | 16:20 |
AkivaAvraham | right so you need to set it | 16:20 |
sukalong | it was grey, now its black | 16:20 |
AkivaAvraham | so go back to main | 16:20 |
AkivaAvraham | and set the property "textColor: "green"" | 16:20 |
AkivaAvraham | now you should have two components, one with green text, the other with black text | 16:21 |
sukalong | both are green if i give them textColor: "green" lol | 16:22 |
AkivaAvraham | sukalong, well don't define the color in stupid.qml | 16:23 |
AkivaAvraham | define the color in main.qml | 16:23 |
AkivaAvraham | make one red, make the other green | 16:23 |
AkivaAvraham | that should enable you to customize your components when you call them. | 16:23 |
sukalong | ok done | 16:26 |
AkivaAvraham | sukalong, okay great | 16:26 |
sukalong | btw i keep getting warning | 16:26 |
AkivaAvraham | two more things | 16:26 |
AkivaAvraham | yah? | 16:26 |
sukalong | file:///home/sukalong/Programming/deleteme/deleteme.qml:44:24: Unable to assign [undefined] to QColor | 16:26 |
sukalong | ** (qmlscene:28222): WARNING **: Unable to register app: GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs: Invalid application ID | 16:27 |
AkivaAvraham | i'd have to see it, but you'll figure it out | 16:27 |
AkivaAvraham | onto id's | 16:27 |
AkivaAvraham | okay | 16:27 |
AkivaAvraham | every component has an "id" property | 16:27 |
AkivaAvraham | it allows you to reference that object and its properties | 16:27 |
AkivaAvraham | so go to stupid.qml | 16:27 |
sukalong | what's the two more things? | 16:28 |
AkivaAvraham | and go to rectangle component and | 16:28 |
AkivaAvraham | id and anchors | 16:28 |
AkivaAvraham | were going through ids | 16:28 |
AkivaAvraham | anyways | 16:28 |
AkivaAvraham | rectangle component, and set the id: stupidface | 16:28 |
AkivaAvraham | then go to Label component, and replace parent | 16:29 |
sukalong | then? | 16:29 |
AkivaAvraham | with stupidface | 16:29 |
AkivaAvraham | parent just goes up 1 | 16:29 |
AkivaAvraham | stupidface goes to that component specifically | 16:29 |
AkivaAvraham | assuming its in scope | 16:29 |
AkivaAvraham | so explain what the id does | 16:30 |
sukalong | scoping variables? | 16:30 |
sukalong | nothings changed | 16:30 |
AkivaAvraham | what? | 16:31 |
AkivaAvraham | no | 16:31 |
AkivaAvraham | scope means ... like when you called your custom component in main.qml | 16:31 |
AkivaAvraham | the properties of Rectangle were accessable | 16:31 |
AkivaAvraham | the properties of Label were inaccessable | 16:31 |
AkivaAvraham | so Label was not within the scope. | 16:32 |
AkivaAvraham | make sense? | 16:32 |
sukalong | no | 16:32 |
AkivaAvraham | scope... okay lets say you go into your bathroom | 16:32 |
AkivaAvraham | can you see the kitchen? | 16:33 |
sukalong | nope | 16:33 |
AkivaAvraham | so your kitchen is not in scope. | 16:33 |
sukalong | just like function right? | 16:33 |
AkivaAvraham | mmmmm maybe | 16:33 |
AkivaAvraham | oh yah you can also do functions in qml | 16:33 |
AkivaAvraham | they are javascript syntax | 16:33 |
AkivaAvraham | anyways scope makes more sense now? | 16:34 |
sukalong | yes a little :D | 16:34 |
AkivaAvraham | can you access your toothbrush in the bathroom? | 16:34 |
sukalong | you think we should stop here first? | 16:34 |
sukalong | i think its alot to take in | 16:34 |
sukalong | >.< | 16:34 |
sukalong | yes i can access it | 16:35 |
AkivaAvraham | okay | 16:35 |
AkivaAvraham | great | 16:35 |
sukalong | because its inside the scope of a bathroom | 16:35 |
AkivaAvraham | yes something like that. | 16:35 |
AkivaAvraham | okay | 16:35 |
AkivaAvraham | last thing then | 16:35 |
AkivaAvraham | anchors | 16:35 |
AkivaAvraham | so go to main.qml | 16:35 |
sukalong | ok | 16:35 |
AkivaAvraham | create a Button component | 16:36 |
AkivaAvraham | in column | 16:36 |
AkivaAvraham | the goal is to make the button the width of the screen | 16:36 |
sukalong | its already there | 16:36 |
AkivaAvraham | make another | 16:36 |
sukalong | ok done | 16:36 |
AkivaAvraham | alright | 16:37 |
AkivaAvraham | now go width: parent.width | 16:37 |
AkivaAvraham | what happened? | 16:37 |
sukalong | width of the button | 16:38 |
sukalong | is maxed | 16:38 |
AkivaAvraham | good | 16:38 |
AkivaAvraham | now add * 2 at the end; it will go past it | 16:39 |
AkivaAvraham | after that; delete it; there is another way | 16:39 |
sukalong | ok | 16:39 |
sukalong | done | 16:39 |
AkivaAvraham | add this into your component anchors { } | 16:40 |
AkivaAvraham | no capital letter | 16:40 |
sukalong | :72 Empty property assignment | 16:41 |
AkivaAvraham | in anchors, type left: parent.left | 16:41 |
AkivaAvraham | right: parent.right | 16:41 |
sukalong | what's the different between parent.left and parent.Left (with capital L) | 16:42 |
sukalong | same as component and property? | 16:42 |
AkivaAvraham | good question, and I don't know | 16:42 |
AkivaAvraham | don't think so, never noticed it | 16:42 |
sukalong | ok.. go on then | 16:42 |
AkivaAvraham | Right won't work | 16:42 |
AkivaAvraham | alright lets adjust this | 16:43 |
AkivaAvraham | change left: parent.left | 16:43 |
AkivaAvraham | to | 16:43 |
AkivaAvraham | left: parent.horizontalCenter | 16:43 |
sukalong | its right alinged | 16:44 |
sukalong | aligned* | 16:44 |
AkivaAvraham | yep | 16:44 |
AkivaAvraham | the left side of the button is at the center of its parent | 16:44 |
AkivaAvraham | now | 16:44 |
AkivaAvraham | add this | 16:44 |
AkivaAvraham | rightMargin: units.gu(5) | 16:44 |
sukalong | ok i see it | 16:45 |
AkivaAvraham | alright | 16:45 |
AkivaAvraham | i'll show you the explanation | 16:45 |
AkivaAvraham | http://qt-project.org/doc/qt-4.8/qml-anchor-layout.html | 16:46 |
AkivaAvraham | see the top image | 16:46 |
AkivaAvraham | sukalong, anyways any questions, or do you want to rest? | 16:46 |
sukalong | i dont have question yet | 16:46 |
sukalong | but i do need rest :D | 16:46 |
AkivaAvraham | sukalong, after you save, go to bazaar explorer, and try opening the project | 16:46 |
sukalong | its almost midnight here | 16:46 |
sukalong | ok | 16:47 |
AkivaAvraham | and then your goal is to upload it to launchpad | 16:47 |
AkivaAvraham | you'jll have to create a launchpad project | 16:47 |
AkivaAvraham | australia? | 16:47 |
sukalong | close.. Indonesia :D | 16:47 |
AkivaAvraham | ah | 16:47 |
sukalong | australia has already past midnight | 16:47 |
AkivaAvraham | anyways, stick around, and when you do get going | 16:47 |
AkivaAvraham | contribute to the core apps; that will give you the best experience that you need | 16:48 |
AkivaAvraham | I would have wrote my first app way differently if I contributed to the core apps first; they give you proper coding style | 16:48 |
AkivaAvraham | night | 16:48 |
sukalong | i would want that hehe | 16:49 |
sukalong | do i need to give the same project name? | 16:49 |
sukalong | in launchpad | 16:49 |
AkivaAvraham | nope | 16:50 |
AkivaAvraham | call it what you want. | 16:50 |
ajalkane | Anyone know: in launchpad I have a branch, and someone else is proposing a merge request to that branch. I've approved it. Is it supposed to be automatically merged to the branch (like when proposing merge to trunk) or do I have to do it manually? | 16:52 |
AkivaAvraham | ajalkane, good question | 16:53 |
AkivaAvraham | it isn't automatically if I recall... | 16:54 |
ajalkane | semi-good answer, would have been great without the "if I recall" bit at the end :-D | 16:54 |
AkivaAvraham | If I remember; I took his branch, merged it myself and uploaded it. | 16:54 |
AkivaAvraham | then just marked it as merged. | 16:54 |
ajalkane | Thanks. I think I wait 5 minutes and if nothing happens I do like you said | 16:55 |
sukalong | lol @ if i recall | 16:55 |
sukalong | how can i know its uploaded? | 16:55 |
AkivaAvraham | it will have code in it. | 16:56 |
AkivaAvraham | something called a trunk | 16:56 |
sukalong | there's nothing in trunk | 17:01 |
sukalong | AkivaAvraham: there's nothing in trunk | 17:02 |
AkivaAvraham | sukalong, I thought you were going to bread | 17:02 |
sukalong | the goal isn't reached yet | 17:03 |
sukalong | lol | 17:03 |
AkivaAvraham | sukalong, first you have to commit, push to launchpad, and then set the trunk to the branch you put on launchpad | 17:03 |
AkivaAvraham | if I recall | 17:03 |
sukalong | ok, maybe we should continue tomorrow lol | 17:04 |
sukalong | sorry | 17:04 |
sukalong | and thanks.. this means alot :D | 17:05 |
sukalong | AkivaAvraham: night2.... | 17:05 |
ajalkane | AkivaAvraham: your recollection was right. Must merge manually locally. After merging, commit and push to your branch. Launchpad automatically marks the other branch as merged. | 17:22 |
AkivaAvraham | ajalkane, ah yes it does, doesn't it | 17:22 |
AkivaAvraham | ajalkane, thanks for getting back to me | 17:22 |
ajalkane | thanks for the help :). It's always easier to start doing stuff if someone else has recollections of doing what you think might be necessary | 17:23 |
ajalkane | (but of you're not sure) | 17:24 |
AkivaAvraham | heh | 17:25 |
AkivaAvraham | yep | 17:25 |
snizzo_ | hey, with a simple app on ubuntu sdk anyone experienced "no rule to make target 'all' "? | 19:18 |
snizzo_ | with a 14.10 kit armhf and n5 ubuntu touch developer correctly connected | 19:18 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!