https://bugs.kde.org/show_bug.cgi?id=395192

--- Comment #2 from Jos van den Oever <j...@vandenoever.info> ---
I recommend writing the binding like this:


    "objects": {
        "Novels": {
            "type": "Tree",
            "itemProperties": {
                "sourcesName": {
                    "type": "QString"
                },
                "sourceTitle": {
                    "type": "QString"
                },
                "novelIndex": {
                    "type": "quint32"
                },
                "novelTitle": {
                    "type": "QString"
                },
                "novelContent": {
                    "type": "QString"
                }
            }
        }
    }

Then you model it such that a novel has QAbstractItemModel::parent() which is
the source and the source has a parent() which is the list of all sources.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to