@@ -142,35 +142,35 @@ QtObject {
142142 id: propertyMappers
143143 readonly property QtObject nonePropertyMapper: null
144144 readonly property QtObject anchorNodePropertyMapper: AnchorNodePropertyMapper {
145- selectionModel: d .addOn ? .windowHandle . projectDocumentContext . document . selectionModel ?? null
145+ selectionModel: d .addOn ? .propertySelectionModel ?? null
146146 readonly property bool inactive: selectionModel? .selectionType !== 1 || ! selectionModel? .selectedCount
147147 }
148148 readonly property QtObject clipPropertyMapper: ClipPropertyMapper {
149- selectionModel: d .addOn ? .windowHandle . projectDocumentContext . document . selectionModel ?? null
149+ selectionModel: d .addOn ? .propertySelectionModel ?? null
150150 readonly property bool inactive: ! [1 , 2 , 4 , 8 ].includes (selectionModel? .selectionType ) || (selectionModel? .selectionType === 2 && ! selectionModel? .selectedCount )
151151 }
152152 readonly property QtObject labelPropertyMapper: LabelPropertyMapper {
153- selectionModel: d .addOn ? .windowHandle . projectDocumentContext . document . selectionModel ?? null
153+ selectionModel: d .addOn ? .propertySelectionModel ?? null
154154 readonly property bool inactive: selectionModel? .selectionType !== 3 || ! selectionModel? .selectedCount
155155 }
156156 readonly property QtObject notePropertyMapper: NotePropertyMapper {
157- selectionModel: d .addOn ? .windowHandle . projectDocumentContext . document . selectionModel ?? null
157+ selectionModel: d .addOn ? .propertySelectionModel ?? null
158158 readonly property bool inactive: selectionModel? .selectionType !== 4 || ! selectionModel? .selectedCount
159159 }
160160 readonly property QtObject tempoPropertyMapper: TempoPropertyMapper {
161- selectionModel: d .addOn ? .windowHandle . projectDocumentContext . document . selectionModel ?? null
161+ selectionModel: d .addOn ? .propertySelectionModel ?? null
162162 readonly property bool inactive: selectionModel? .selectionType !== 5 || ! selectionModel? .selectedCount
163163 }
164164 readonly property QtObject trackPropertyMapper: TrackPropertyMapper {
165- selectionModel: d .addOn ? .windowHandle . projectDocumentContext . document . selectionModel ?? null
165+ selectionModel: d .addOn ? .propertySelectionModel ?? null
166166 readonly property bool inactive: ! [1 , 2 , 4 , 6 , 8 ].includes (selectionModel? .selectionType ) || (selectionModel? .selectionType === 6 && ! selectionModel? .selectedCount )
167167 }
168168 readonly property QtObject keySignaturePropertyMapper: KeySignaturePropertyMapper {
169- selectionModel: d .addOn ? .windowHandle . projectDocumentContext . document . selectionModel ?? null
169+ selectionModel: d .addOn ? .propertySelectionModel ?? null
170170 readonly property bool inactive: selectionModel? .selectionType !== 7 || ! selectionModel? .selectedCount
171171 }
172172 readonly property QtObject dynamicMixingAnchorPropertyMapper: DynamicMixingAnchorPropertyMapper {
173- selectionModel: d .addOn ? .windowHandle . projectDocumentContext . document . selectionModel ?? null
173+ selectionModel: d .addOn ? .propertySelectionModel ?? null
174174 readonly property bool inactive: selectionModel? .selectionType !== 8 || ! selectionModel? .selectedCount
175175 }
176176 }
@@ -181,7 +181,7 @@ QtObject {
181181 anchors .right : parent .right
182182 anchors .margins : 12
183183 currentIndex: {
184- let selectionModel = d .addOn ? .windowHandle . projectDocumentContext . document . selectionModel
184+ let selectionModel = d .addOn ? .propertySelectionModel
185185 if (! selectionModel)
186186 return 0
187187 let t = selectionModel .selectionType
0 commit comments