static functions currently not callable from QML

see also https://musescore.org/en/node/93976#comment-415076
This commit is contained in:
Johan Temmerman 2016-01-13 00:47:01 +01:00
parent 2dfb01919c
commit ad028546ef

View file

@ -528,8 +528,7 @@ class Element : public QObject, public ScoreElement {
void setStartDragPosition(const QPointF& v) { _startDragPosition = v; }
static const char* name(Element::Type type);
//@ Creates an element of Type type, belonging to the Score
Q_INVOKABLE static Ms::Element* create(Ms::Element::Type type, Score*);
static Ms::Element* create(Ms::Element::Type type, Score*);
static Element::Type name2type(const QStringRef&);
static Element* name2Element(const QStringRef&, Score*);