fix polish loop
fix crash
This commit is contained in:
parent
92f1eaa88f
commit
72d2096ae7
2 changed files with 7 additions and 3 deletions
|
|
@ -93,6 +93,7 @@ QString ToolModel::getDisplayName(QString address) {
|
||||||
if (displayName.isEmpty()) return address;
|
if (displayName.isEmpty()) return address;
|
||||||
QStringList nameSplitted = displayName.split(" ");
|
QStringList nameSplitted = displayName.split(" ");
|
||||||
for (auto &part : nameSplitted) {
|
for (auto &part : nameSplitted) {
|
||||||
|
if (part.isEmpty()) continue;
|
||||||
part[0] = part[0].toUpper();
|
part[0] = part[0].toUpper();
|
||||||
}
|
}
|
||||||
return nameSplitted.join(" ");
|
return nameSplitted.join(" ");
|
||||||
|
|
|
||||||
|
|
@ -48,21 +48,24 @@ AbstractSettingsLayout {
|
||||||
RowLayout {
|
RowLayout {
|
||||||
spacing: 47 * DefaultStyle.dp
|
spacing: 47 * DefaultStyle.dp
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
ColumnLayout {
|
Item {
|
||||||
Layout.preferredWidth: 341 * DefaultStyle.dp
|
Layout.preferredWidth: 341 * DefaultStyle.dp
|
||||||
Text {
|
Text {
|
||||||
|
id: periphTitle
|
||||||
text: qsTr("Périphériques")
|
text: qsTr("Périphériques")
|
||||||
font: Typography.p2
|
font: Typography.p2
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
color: DefaultStyle.main2_600
|
color: DefaultStyle.main2_600
|
||||||
Layout.fillWidth: true
|
|
||||||
}
|
}
|
||||||
Text {
|
Text {
|
||||||
|
anchors.top: periphTitle.bottom
|
||||||
|
anchors.topMargin: 3 * DefaultStyle.dp
|
||||||
|
anchors.left: parent.left
|
||||||
|
anchors.right: parent.right
|
||||||
text: qsTr("Vous pouvez modifier les périphériques de sortie audio, le microphone et la caméra de capture.")
|
text: qsTr("Vous pouvez modifier les périphériques de sortie audio, le microphone et la caméra de capture.")
|
||||||
font: Typography.p1
|
font: Typography.p1
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
color: DefaultStyle.main2_600
|
color: DefaultStyle.main2_600
|
||||||
Layout.fillWidth: true
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Item {
|
Item {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue