~mzanetti/+junk/ubtd

« back to all changes in this revision

Viewing changes to app/main.cpp

  • Committer: Michael Zanetti
  • Date: 2016-04-14 23:34:10 UTC
  • Revision ID: michael.zanetti@canonical.com-20160414233410-17jg7ez3w1qc5e16
make it work, polish a bit, 0.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
    QGuiApplication app(argc, argv);
12
12
 
13
13
    Adapter adapter;
 
14
//    BluezClient client;
14
15
    Obexd obexd;
15
16
 
16
17
    QQuickView view;
17
18
 
18
19
    view.rootContext()->setContextProperty("obexd", &obexd);
 
20
    qmlRegisterUncreatableType<Transfer>("ubtd", 1, 0, "Transfer", "get them from obexd");
19
21
 
20
22
    view.setSource(QUrl(QStringLiteral("qrc:///Main.qml")));
21
23
    view.setResizeMode(QQuickView::SizeRootObjectToView);