plugin.cpp 297 B

1234567891011
  1. #include <qqml.h>
  2. #include "plugin.h"
  3. #include "sqldatabase.h"
  4. void SqlDatabasePlugin::registerTypes(const char *uri)
  5. {
  6. // @uri gfa.plugins.qml
  7. qmlRegisterType<SqlDatabase>(uri, 1, 0, "SqlDatabase");
  8. qmlRegisterUncreatableType<SqlQuery>(uri, 1, 0, "SqlQuery", "return type only");
  9. }