settings: use default audio devices
Refactors audio settings to avoid list model code duplication. This code could be greatly simplified by using string lists, however the combo-box component design is highly dependent on QAbstractItemModel based models. Also translates the handlebarred strings upon presentation, which is currently used to translate the "Default" prefix for the first device item. Gitlab: #346 Change-Id: I5ed282d29cc4ec6a090a9cdf47b0459f0db2a99b
Showing
- CMakeLists.txt 2 additions, 4 deletionsCMakeLists.txt
- jami-qt.pro 2 additions, 4 deletionsjami-qt.pro
- src/audiodevicemodel.cpp 123 additions, 0 deletionssrc/audiodevicemodel.cpp
- src/audiodevicemodel.h 26 additions, 23 deletionssrc/audiodevicemodel.h
- src/audiooutputdevicemodel.cpp 0 additions, 142 deletionssrc/audiooutputdevicemodel.cpp
- src/audiooutputdevicemodel.h 0 additions, 66 deletionssrc/audiooutputdevicemodel.h
- src/commoncomponents/SettingParaCombobox.qml 2 additions, 3 deletionssrc/commoncomponents/SettingParaCombobox.qml
- src/qmlregister.cpp 2 additions, 4 deletionssrc/qmlregister.cpp
- src/settingsview/components/AudioSettings.qml 20 additions, 36 deletionssrc/settingsview/components/AudioSettings.qml
Loading
Please register or sign in to comment