Skip to content

Commit

Permalink
Fix TopicEcho plugin message display (#322)
Browse files Browse the repository at this point in the history
- Change binding of width property in delegate (see: https://stackoverflow.com/questions/63767669/parent-is-null-in-listview-delegate-after-upgrade-to-qt-5-15)
- Use scoped reference to model.display (see: https://forum.qt.io/topic/92085/using-qstringlistmodel-as-model-in-listview)

Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
  • Loading branch information
srmainwaring authored Dec 1, 2021
1 parent 8b3f2b0 commit aa8632d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/topic_echo/TopicEcho.qml
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ Rectangle {
currentIndex: -1

delegate: ItemDelegate {
width: parent.width
text: display
width: listView.width
text: model.display
}

model: TopicEchoMsgList
Expand Down

0 comments on commit aa8632d

Please sign in to comment.