mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
QML UI: add supported dive computers to log file
In a more compact format than before. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
36749b28d9
commit
ea7a7c6b24
3 changed files with 16 additions and 5 deletions
|
|
@ -148,7 +148,6 @@ void fill_computer_list()
|
|||
productList[vendor].append(product);
|
||||
|
||||
descriptorLookup[QString(vendor) + QString(product)] = descriptor;
|
||||
qDebug() << "added supported DC: " << vendor << " " << product;
|
||||
}
|
||||
dc_iterator_free(iterator);
|
||||
Q_FOREACH (QString vendor, vendorList)
|
||||
|
|
@ -181,6 +180,18 @@ void fill_computer_list()
|
|||
qSort(vendorList);
|
||||
}
|
||||
|
||||
void show_computer_list()
|
||||
{
|
||||
qDebug() << "Supported dive computers:";
|
||||
Q_FOREACH (QString vendor, vendorList) {
|
||||
QString msg = vendor + ": ";
|
||||
Q_FOREACH (QString product, productList[vendor]) {
|
||||
msg += product + ", ";
|
||||
}
|
||||
msg.chop(2);
|
||||
qDebug() << msg;
|
||||
}
|
||||
}
|
||||
DCDeviceData *DCDeviceData::m_instance = NULL;
|
||||
|
||||
DCDeviceData::DCDeviceData(QObject *parent) : QObject(parent)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue