mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2024-10-01 01:06:10 -04:00
Fixup
Signed-off-by: Adam Treat <treat.adam@gmail.com>
This commit is contained in:
parent
dfb2440d46
commit
2a1b9d3e2f
@ -188,18 +188,10 @@ Rectangle {
|
||||
MyComboBox {
|
||||
id: comboSort
|
||||
model: ListModel {
|
||||
ListElement {
|
||||
name: qsTr("Default")
|
||||
}
|
||||
ListElement {
|
||||
name: qsTr("Likes")
|
||||
}
|
||||
ListElement {
|
||||
name: qsTr("Downloads")
|
||||
}
|
||||
ListElement {
|
||||
name: qsTr("Recent")
|
||||
}
|
||||
ListElement { name: qsTr("Default") }
|
||||
ListElement { name: qsTr("Likes") }
|
||||
ListElement { name: qsTr("Downloads") }
|
||||
ListElement { name: qsTr("Recent") }
|
||||
}
|
||||
currentIndex: ModelList.discoverSort
|
||||
contentItem: Text {
|
||||
@ -221,12 +213,8 @@ Rectangle {
|
||||
MyComboBox {
|
||||
id: comboSortDirection
|
||||
model: ListModel {
|
||||
ListElement {
|
||||
name: qsTr("Asc")
|
||||
}
|
||||
ListElement {
|
||||
name: qsTr("Desc")
|
||||
}
|
||||
ListElement { name: qsTr("Asc") }
|
||||
ListElement { name: qsTr("Desc") }
|
||||
}
|
||||
currentIndex: {
|
||||
if (ModelList.discoverSortDirection === 1)
|
||||
@ -256,24 +244,12 @@ Rectangle {
|
||||
MyComboBox {
|
||||
id: comboLimit
|
||||
model: ListModel {
|
||||
ListElement {
|
||||
name: "5"
|
||||
}
|
||||
ListElement {
|
||||
name: "10"
|
||||
}
|
||||
ListElement {
|
||||
name: "20"
|
||||
}
|
||||
ListElement {
|
||||
name: "50"
|
||||
}
|
||||
ListElement {
|
||||
name: "100"
|
||||
}
|
||||
ListElement {
|
||||
name: qsTr("None")
|
||||
}
|
||||
ListElement { name: "5" }
|
||||
ListElement { name: "10" }
|
||||
ListElement { name: "20" }
|
||||
ListElement { name: "50" }
|
||||
ListElement { name: "100" }
|
||||
ListElement { name: qsTr("None") }
|
||||
}
|
||||
|
||||
currentIndex: {
|
||||
|
@ -109,15 +109,9 @@ MySettingsTab {
|
||||
Layout.alignment: Qt.AlignRight
|
||||
// NOTE: indices match values of ChatTheme enum, keep them in sync
|
||||
model: ListModel {
|
||||
ListElement {
|
||||
name: qsTr("Light")
|
||||
}
|
||||
ListElement {
|
||||
name: qsTr("Dark")
|
||||
}
|
||||
ListElement {
|
||||
name: qsTr("LegacyDark")
|
||||
}
|
||||
ListElement { name: qsTr("Light") }
|
||||
ListElement { name: qsTr("Dark") }
|
||||
ListElement { name: qsTr("LegacyDark") }
|
||||
}
|
||||
Accessible.name: themeLabel.text
|
||||
Accessible.description: themeLabel.helpText
|
||||
@ -154,20 +148,13 @@ MySettingsTab {
|
||||
Layout.alignment: Qt.AlignRight
|
||||
// NOTE: indices match values of FontSize enum, keep them in sync
|
||||
model: ListModel {
|
||||
ListElement {
|
||||
name: qsTr("Small")
|
||||
}
|
||||
ListElement {
|
||||
name: qsTr("Medium")
|
||||
}
|
||||
ListElement {
|
||||
name: qsTr("Large")
|
||||
}
|
||||
ListElement { name: qsTr("Small") }
|
||||
ListElement { name: qsTr("Medium") }
|
||||
ListElement { name: qsTr("Large") }
|
||||
}
|
||||
Accessible.name: fontLabel.text
|
||||
Accessible.description: fontLabel.helpText
|
||||
function updateModel() {
|
||||
console.log("updating" + MySettings.fontSize)
|
||||
fontBox.currentIndex = MySettings.fontSize;
|
||||
}
|
||||
Component.onCompleted: {
|
||||
@ -363,15 +350,9 @@ MySettingsTab {
|
||||
Layout.alignment: Qt.AlignRight
|
||||
// NOTE: indices match values of SuggestionMode enum, keep them in sync
|
||||
model: ListModel {
|
||||
ListElement {
|
||||
name: qsTr("When chatting with LocalDocs")
|
||||
}
|
||||
ListElement {
|
||||
name: qsTr("Whenever possible")
|
||||
}
|
||||
ListElement {
|
||||
name: qsTr("Never")
|
||||
}
|
||||
ListElement { name: qsTr("When chatting with LocalDocs") }
|
||||
ListElement { name: qsTr("Whenever possible") }
|
||||
ListElement { name: qsTr("Never") }
|
||||
}
|
||||
Accessible.name: suggestionModeLabel.text
|
||||
Accessible.description: suggestionModeLabel.helpText
|
||||
|
Loading…
Reference in New Issue
Block a user