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

[email protected] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #25 from [email protected] ---
I've done some print debugging and discovered that something happens to the
model as it gets passed to the HorizontalHeaderView which makes it completely
malformed. Seemingly most rows besides the first row end up with undefined
properties, `row` and `column` properties set to -1, and the index is usually
-8, sometimes -4. Printing out the properties and their values for these rows
looks like this:

> qml: objectName
> qml: index -8
> qml: row -1
> qml: column -1
> qml: model QQmlDMAbstractItemModelData(0x555653978c80)
> qml: hasModelChildren false
> qml: modelData QQmlDMAbstractItemModelData(0x555653978c80)
> qml:  QQmlDMAbstractItemModelData(0x555653978c80)
> qml: decoration undefined
> qml: Name undefined
> qml: statusTip undefined
> qml: cachedComponent undefined
> qml: UpdateInterval undefined
> qml: sort undefined
> qml: PIDs undefined
> qml: ShortName undefined
> qml: displayStyle undefined
> qml: whatsThis undefined
> qml: Maximum undefined
> qml: Value undefined
> qml: display undefined
> qml: edit undefined
> qml: toolTip undefined
> qml: FormattedValue undefined
> qml: Minimum undefined
> qml: Attribute undefined
> qml: Unit undefined

Initially I thought this could be a result of KColumnHeadersModel or some other
intermediary model messing up, but that wouldn't explain how
KColumnHeadersModel works just fine in other applications that use it. After
replacing the model with a hardcoded ListModel, the result is still the same -
the model becomes malformed by the time it gets to HorizontalHeaderView.

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

Reply via email to