Changeset 2ccfce7 in subsurface


Ignore:
Timestamp:
Jul 17, 2017, 7:32:29 AM (5 months ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
ec1b22b
Parents:
40223c8
git-author:
Dirk Hohndel <dirk@…> (07/17/17 05:32:29)
git-committer:
Dirk Hohndel <dirk@…> (07/17/17 07:32:29)
Message:

QML UI: add serial interfaces to connection list

Signed-off-by: Dirk Hohndel <dirk@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • subsurface-mobile-helper.cpp

    r40223c8 r2ccfce7  
    7676        ctxt->setContextProperty("gpsModel", gpsSortModel);
    7777        ctxt->setContextProperty("vendorList", vendorList);
     78#if defined(Q_OS_ANDROID)
     79        connectionListModel.addAddress("FTDI");
     80#elif defined(Q_OS_LINUX) // since this is in the else, it does NOT include Android
     81        connectionListModel.addAddress("/dev/ttyS0");
     82        connectionListModel.addAddress("/dev/ttyS1");
     83        connectionListModel.addAddress("/dev/ttyS2");
     84        connectionListModel.addAddress("/dev/ttyS3");
     85#endif
    7886        ctxt->setContextProperty("connectionListModel", &connectionListModel);
    7987        ctxt->setContextProperty("logModel", MessageHandlerModel::self());
Note: See TracChangeset for help on using the changeset viewer.