ahoneybun | I mean effecting settings.qml and main.qml | 00:00 |
---|---|---|
ahoneybun | something like how the manifest file does | 00:00 |
ahayzen | ahoneybun, well as Settings.qml is a child of PageLayout, which is a child of MainView... it will | 00:03 |
ahayzen | ahoneybun, but if you are just wanting to store a string or something simple.... the Settings {} object maybe useful, as it can store settings into it's own file and then remember them when you restart the app | 00:04 |
ahayzen | https://developer.ubuntu.com/api/apps/qml/sdk-15.04.5/Qt.labs.settings.Settings/ | 00:04 |
ahayzen | we use it for various things, eg shuffle and repeat here .. http://bazaar.launchpad.net/~music-app-dev/music-app/trunk/view/head:/app/components/Player.qml#L74 | 00:05 |
ahoneybun | but>? | 00:05 |
ahoneybun | Settings.qml and Main.qml are different files | 00:05 |
ahayzen | yup but when you push settings to the layout, it is like included/added as a child to it | 00:06 |
ahayzen | so you can access stuff... but the best way is probably to use that Settings {} object ^^ | 00:06 |
ahayzen | as then IIRC if you use the same category name in the other file it updates both | 00:07 |
ahoneybun | mm confused as always XD | 00:07 |
ahoneybun | I put something in the pad ahayzen | 00:08 |
ahoneybun | that way did not work, at least the way I did it | 00:09 |
ahayzen | ahoneybun, added three possible ways | 00:13 |
ahoneybun | thanks | 00:15 |
ahoneybun | category does not work as it has red under it | 00:16 |
ahayzen | ah | 00:17 |
ahayzen | it might get confused with your Settings.qml in the same directory | 00:17 |
ahoneybun | mm something is broke | 00:17 |
ahoneybun | it does not like that locationSettings.location | 00:18 |
ahayzen | ahoneybun, see my import modification to avoid the clash | 00:18 |
ahoneybun | added that | 00:18 |
ahoneybun | to Main | 00:18 |
ahoneybun | oh | 00:18 |
ahoneybun | for category? | 00:19 |
ahoneybun | though I did not add that first Settings thing | 00:19 |
ahoneybun | only the one to Settings.qml | 00:19 |
ahayzen | i think you can put it in both places and they remain in-sync, can't remember | 00:20 |
ahayzen | but the simplest... is to add the id: mainView... then the property to the MainView and use mainView.location | 00:20 |
ahoneybun | mm I might be getting messed up with the 3 option | 00:20 |
ahayzen | yeah you'll need to comment stuff out | 00:21 |
ahoneybun | let's go with that first one | 00:21 |
ahoneybun | all these options are messing me up | 00:21 |
ahoneybun | as I don't know what to add | 00:21 |
ahayzen | i'll do the simplest one... | 00:21 |
ahoneybun | sorry | 00:21 |
ahoneybun | I added the mainview stuff | 00:22 |
ahoneybun | mm | 00:22 |
ahayzen | ahoneybun, updated the file, commented out the other bits | 00:23 |
ahoneybun | I wonder if I should just c and p it | 00:23 |
ahayzen | hehe | 00:25 |
ahoneybun | I did with no success, mm | 00:26 |
ahoneybun | lines 160 and 215 work like I would like | 00:27 |
ahoneybun | but that is on the current page with a search | 00:27 |
ahoneybun | I might call it a day and play some games | 00:28 |
ahoneybun | ahayzen: ^ | 00:28 |
ahayzen | oh i see | 00:29 |
ahayzen | ahoneybun, maybe try moving the locationModel into the main file | 00:29 |
ahayzen | then just referencing it in the repeater | 00:29 |
ahoneybun | well the locationModel is in the Main file | 00:30 |
ahoneybun | it works like that | 00:30 |
ahoneybun | but I want a variable to change from the settings to keep the Main page clean | 00:30 |
ahayzen | that mainView way should be the simplest, not sure why it wouldn't work | 00:33 |
ahoneybun | 99% sure it is user error XD | 00:34 |
ahayzen | heh | 00:35 |
ahayzen | anyway, i'm gonna go sleep. Have fun! :-) | 00:35 |
ahoneybun | night! | 00:35 |
ahoneybun | thanks again | 00:35 |
ahayzen | no problem o/ | 00:36 |
ahoneybun | \o | 00:37 |
=== elimiste1e is now known as elimisteve | ||
krampstudio | hi there | 09:08 |
krampstudio | I've a problem with running my scope on my device | 09:08 |
krampstudio | When I launch it (from ubuntu-sdk) the process "click-review" takes a while | 09:09 |
krampstudio | and then crashes | 09:09 |
krampstudio | (I'm running it again to get the exact error) | 09:10 |
krampstudio | ERROR: Could not find vendor 'ubuntu' ERROR: Could not find vendor 'ubuntu' | 09:16 |
krampstudio | Traceback (most recent call last): | 09:16 |
krampstudio | File "/usr/bin/click-review", line 138, in <module> | 09:16 |
krampstudio | main() | 09:16 |
krampstudio | File "/usr/bin/click-review", line 132, in main | 09:16 |
krampstudio | results.run_all_checks() | 09:16 |
krampstudio | File "/usr/bin/click-review", line 100, in run_all_checks | 09:16 |
krampstudio | section = self._run_module_checks(module) | 09:16 |
krampstudio | File "/usr/bin/click-review", line 92, in _run_module_checks | 09:16 |
krampstudio | review.do_checks() | 09:16 |
krampstudio | File "/usr/lib/python3/dist-packages/clickreviews/cr_common.py", line 566, in do_checks | 09:16 |
krampstudio | func() | 09:16 |
krampstudio | File "/usr/lib/python3/dist-packages/clickreviews/cr_security.py", line 476, in check_template | 09:16 |
krampstudio | templates = self._get_templates(vendor, version) | 09:16 |
krampstudio | File "/usr/lib/python3/dist-packages/clickreviews/cr_security.py", line 282, in _get_templates | 09:16 |
krampstudio | for k in self.aa_policy[vendor][version]['templates'].keys(): | 09:16 |
krampstudio | KeyError: 'ubuntu' | 09:16 |
krampstudio | 11:15:01: The process "/usr/bin/click" exited with code 1. | 09:16 |
=== robert_ancell is now known as robertancell | ||
=== robertancell is now known as robert_ancell | ||
=== robert_ancell is now known as robertancell | ||
=== robertancell is now known as robert_ancell | ||
=== faenil_ is now known as faenil | ||
=== faenil is now known as faenil_ | ||
=== faenil_ is now known as faenil | ||
ahoneybun | mm who's doing uTouch? | 14:36 |
ahoneybun | *uTorch | 14:36 |
JanC | you can find author's name + email in the store | 15:41 |
=== JanC is now known as Guest5182 | ||
=== JanC_ is now known as JanC |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!