Proposition : model number handling (#4308)

* Try something for discussions

* Better alternative

* Typo

* Improve

* Change delimiter

* Move delimiter to space

* * Refactoring of CategorizedStorageFormat::load() and CategorizedStorageFormat::save() to support unused model slots
* Fix all unsafe usages of QString::toStdString().c_str()

* Fixed radio data import [Horus] (broken in 0f90ff0b65)

(cherry picked from commit cc12601a01)

* Added Q_OBJECT to TreeModel and some cosmetics

(cherry picked from commit f40e64c2aa)

* Cleanup
This commit is contained in:
3djc
2017-01-28 13:46:45 +01:00
committed by Bertrand Songis
parent de68db0905
commit 2fbe5a78d1
7 changed files with 85 additions and 42 deletions
@@ -763,6 +763,8 @@ int OpenTxFirmware::getCapability(Capability capability)
return (IS_HORUS_OR_TARANIS(board) ? true : id.contains("battgraph"));
case DangerousFunctions:
return id.contains("danger") ? 1 : 0;
case HasModelCategories:
return IS_HORUS(board);
default:
return 0;
}