File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -159,7 +159,16 @@ class EngravingItem : public apiv1::ScoreElement
159
159
*/
160
160
Q_PROPERTY (QRectF bbox READ bbox)
161
161
162
- API_PROPERTY (subtype, SUBTYPE)
162
+ /* *
163
+ * Subtype of this element.
164
+ * \since MuseScore 4.6
165
+ */
166
+ Q_PROPERTY (int subtype READ subtype)
167
+ /* *
168
+ * Unlike the name might suggest, this property no longer returns the subtype and is scarcely used.
169
+ * Named 'subtype' prior to MuseScore 4.6
170
+ */
171
+ API_PROPERTY (subType, SUBTYPE)
163
172
API_PROPERTY_READ_ONLY_T (bool , selected, SELECTED)
164
173
API_PROPERTY_READ_ONLY_T (bool , generated, GENERATED)
165
174
/* *
@@ -410,6 +419,8 @@ class EngravingItem : public apiv1::ScoreElement
410
419
411
420
QRectF bbox () const ;
412
421
422
+ int subtype () const { return element ()->subtype (); }
423
+
413
424
public:
414
425
// / \cond MS_INTERNAL
415
426
EngravingItem (mu::engraving::EngravingItem* e = nullptr , Ownership own = Ownership::PLUGIN)
You can’t perform that action at this time.
0 commit comments