=== javiercrowsoft1 is now known as javiercrowsoft | ||
ahoneybun | rpadovani: yes sorry just have gotten to it | 01:43 |
---|---|---|
Inglebard | Hi, someone already make cordova app for ubuntu phone without Ubuntu SDK ? | 10:34 |
ahoneybun | I'm getting this: file:///usr/lib/x86_64-linux-gnu/qt5/qml/Ubuntu/Components/Popups/1.2/popupUtils.js:70: TypeError: Property 'hide' of object QQmlComponent(0x19a7af0) is not a function | 14:38 |
ahoneybun | when I use a 'cancel' button in a Dialog | 14:38 |
ahoneybun | http://pastebin.ubuntu.com/12282676/ | 14:39 |
sverzegnassi | ahoneybun: o/ the problem is in the line 77 | 15:15 |
sverzegnassi | it should be "PopupUtils.close(dialogue)" | 15:15 |
ahoneybun | thanks! | 15:16 |
ahoneybun | that worked | 15:16 |
ahoneybun | now to hook the button up to something | 15:17 |
ahoneybun | anyway g2g | 15:17 |
=== BirthdayHandler is now known as nhandler | ||
efes | Evening! | 19:07 |
efes | Guys, I love the Ubuntu Phone so I'd like to contribute. Howeever, I have no crazy idea where can I find the description of all core libraries provided by the system ( e.g. for sending SMSes or finding out if any audio is being played now ). So, where is the ultimate reference for UPhone developer? | 19:09 |
ahoneybun | ahayzen: how does one add more listitems with a button? | 20:41 |
ahoneybun | http://pastebin.ubuntu.com/12288379/ | 20:41 |
ahayzen | ahoneybun, append to the listmodel | 20:41 |
ahayzen | oh you don't have a ListView ? | 20:42 |
ahoneybun | nope | 20:42 |
ahayzen | yeah use a Repeater or ListView where you want to repeat the same delegate (in your case ListItem) | 20:42 |
ahayzen | then the model sets the length/data for each | 20:42 |
ahayzen | http://doc.qt.io/qt-5/qml-qtquick-listview.html | 20:42 |
ahoneybun | I still want to use actions | 20:43 |
ahayzen | yup | 20:44 |
ahayzen | thats fine | 20:44 |
ahayzen | ahoneybun, like this is a more complex example but is how the MusicApp's Songs tab is done http://bazaar.launchpad.net/~ahayzen/music-app/refactor-use-sdk-listitems/view/head:/app/ui/Songs.qml | 20:45 |
ahoneybun | mm | 20:45 |
ahayzen | (with the new listitems) | 20:45 |
ahayzen | MultiSelectListView you can swap to ListView and MusicListItem to ListItem ;-) | 20:45 |
ahoneybun | yes a lot more complex | 20:46 |
ahayzen | they just add some helpers | 20:46 |
* ahoneybun 's head blows up | 20:46 | |
ahayzen | ahoneybun, these may be useful as well http://doc.qt.io/qt-5/qml-qtquick-repeater.html | 20:47 |
ahoneybun | tooo much info! | 20:47 |
ahoneybun | lol | 20:47 |
ahoneybun | ahayzen: I'm thinking of like this: https://www.pinterest.com/pin/555139091539547622/ | 20:50 |
ahayzen | ahoneybun, yup you should be able todo that with a ListView | 20:55 |
ahoneybun | mmm | 20:55 |
ahayzen | have a read of the listview docs and play with the examples | 20:55 |
ahoneybun | but it needs premade data | 20:55 |
ahoneybun | aka model | 20:55 |
ahayzen | locate the SDK examples as well | 20:55 |
ahayzen | ListModel {id: myModel} then you can put the premade ones in...but you can also do myModel.append() | 20:56 |
ahayzen | http://doc.qt.io/qt-5/qml-qtqml-models-listmodel.html | 20:56 |
ahoneybun | my idea is to have 2 players by default with the option to change the names later | 20:57 |
ahoneybun | aka Player 1 and Player 2 | 20:57 |
=== javiercrowsoft1 is now known as javiercrowsoft |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!