*** zama_ is now known as zama | 00:21 | |
Martiini | can I ask for sailfish features anywhere? I'd like to use sailfish it has access to root and different home-screen | 08:23 |
---|---|---|
kimmoli | dont ask to ask, just ask | 08:50 |
*** Tomin_ is now known as Tomin | 09:56 | |
attah | And here comes today's dose of stupid qml questions... | 12:19 |
attah | I'm trying to get a horizontal SilicaListView inside a Column to contain pictures that are 25% of the coulmn/page width | 12:20 |
*** Krikke_ is now known as Krikke | 12:57 | |
attah | Not actually sure what did it, but dimensions on the delegate item and some food certainly helped | 13:29 |
kimmoli | 61453 | 14:02 |
kirvesAxe | Your pin code is incorrect. | 14:05 |
attah | So i'm trying to deduplicate my code a bit.. so i have a generic SilicaListView i use across a handful of pages, with just differences in model and delegated item | 18:45 |
attah | I made a .qml for that listview page, and then have my pages be that resouce/object thingy | 18:46 |
attah | inserting the model works fine , but passing in an item to be delegated to complains of references to the 'model' item or its attributes | 18:47 |
attah | Seriously; it can't be done without going full .js Qt.createQmlObject ? | 19:01 |
mal | without seeing any code it's difficult to help | 19:08 |
coderus | +1 | 19:25 |
attah | mal,coderus: https://pastebin.com/ifWEqmhF | 19:39 |
attah | first half is some random page, second half is SPlayListViewPage.qml | 19:41 |
mal | what exact errors do ou get | 20:19 |
attah | ReferenceError: publishdateutc is not defined | 20:21 |
attah | various ReferenceError: model is not defined | 20:21 |
attah | Unable to assign BackgroundItem_QMLTYPE_16 to QQmlComponent | 20:22 |
attah | i interpret that as the model does not become available in the BackgroundItem, since it can't be assigned | 20:23 |
mal | attah: should the "model." in the first file be "jmodel."? | 20:35 |
mal | or where does the model variable come from | 20:35 |
attah | if that's the case the model concept is even weirder than i thought O.o | 20:36 |
attah | i thought i had learned that it magically appears inside the delegated item and has nothing to do with the model property of the listview | 20:37 |
attah | a few days ago i tried using the value of that, and that was a no-go | 20:38 |
attah | no.. those properties are undefined on jmodel | 20:40 |
mal | well it clearly saying model is not defined | 20:40 |
attah | yeah, but that's apparently done for you in the delegated item, no? | 20:41 |
mal | not exactly what you are even trying to do | 20:41 |
mal | +sure | 20:41 |
attah | i have the code of the fist page duplicated across like 5 pages (with different model config and delegate), so i wanted to express only the differences and reduce duplication | 20:42 |
attah | this is the "same" page in explicit mode https://pastebin.com/WhjuNaX4 | 20:44 |
mal | is the JSONmodel correctly used, in that you have episodes.model i.e. the model property of jsonmodel but in the other code you directly assign jsonmodel to the model | 20:47 |
mal | and not the model property of jsonmodel | 20:47 |
attah | hmmm | 20:49 |
attah | still mostly the same errors, model does not exist, jmodel doesn't have theproperties, and background item cannot be assigned to QQmlComponent | 20:54 |
attah | but yes, the model should surely be jmodel.model | 20:54 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!