~mzanetti/+junk/ubtd

« back to all changes in this revision

Viewing changes to shareplugin/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:
10
10
{
11
11
    QGuiApplication app(argc, argv);
12
12
 
13
 
//    Adapter adapter;
14
 
//    Obexd obexd;
 
13
    qmlRegisterType<BtTransfer>("Shareplugin", 0, 1, "BtTransfer");
15
14
 
16
15
    QQuickView view;
17
 
 
18
 
    qmlRegisterType<BtTransfer>("Shareplugin", 0, 1, "BtTransfer");
19
 
 
20
 
//    view.rootContext()->setContextProperty("obexd", &obexd);
 
16
    QObject::connect(view.engine(), &QQmlEngine::quit, &app, &QCoreApplication::quit);
21
17
 
22
18
    view.setSource(QUrl(QStringLiteral("qrc:///Main.qml")));
23
19
    view.setResizeMode(QQuickView::SizeRootObjectToView);