mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
QML UI: add serial interfaces to connection list
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
40223c8a5f
commit
2ccfce7cf0
1 changed files with 8 additions and 0 deletions
|
@ -75,6 +75,14 @@ void run_ui()
|
|||
ctxt->setContextProperty("diveModel", sortModel);
|
||||
ctxt->setContextProperty("gpsModel", gpsSortModel);
|
||||
ctxt->setContextProperty("vendorList", vendorList);
|
||||
#if defined(Q_OS_ANDROID)
|
||||
connectionListModel.addAddress("FTDI");
|
||||
#elif defined(Q_OS_LINUX) // since this is in the else, it does NOT include Android
|
||||
connectionListModel.addAddress("/dev/ttyS0");
|
||||
connectionListModel.addAddress("/dev/ttyS1");
|
||||
connectionListModel.addAddress("/dev/ttyS2");
|
||||
connectionListModel.addAddress("/dev/ttyS3");
|
||||
#endif
|
||||
ctxt->setContextProperty("connectionListModel", &connectionListModel);
|
||||
ctxt->setContextProperty("logModel", MessageHandlerModel::self());
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue