Hi,
for kross defining of what can and can not be called by a
script is by making
it a QObject and exporting the methods to use as slots.
I think a clearer method is to use
Q_SCRIPTABLE
or
Q_INVOKABLE
for marking methods callable by QMetaObject::invokeMethod.
This is more clean in the API docs IMO.
Q_INVOKABLE is used to turn any member function (aside from
slots and signals)
into functions invokable by QMetaObject::invokeMethod
Q_SCRIPTABLE = Q_INVOKABLE + set the scriptable qProperty.
What do you think?
--
Thomas Zander
_______________________________________________
koffice-devel mailing list
koffice-devel kde.org
h
ttps://mail.kde.org/mailman/listinfo/koffice-devel
|