mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-07-06 03:56:45 +00:00
Add a button to the collections dialog. Fix close button.
This commit is contained in:
parent
e4ff972522
commit
a328f9ed3f
@ -431,6 +431,10 @@ Window {
|
|||||||
CollectionsDialog {
|
CollectionsDialog {
|
||||||
id: collectionsDialog
|
id: collectionsDialog
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
|
onAddRemoveClicked: {
|
||||||
|
settingsDialog.pageToDisplay = 2;
|
||||||
|
settingsDialog.open();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
MyToolButton {
|
MyToolButton {
|
||||||
|
@ -15,6 +15,7 @@ MyDialog {
|
|||||||
width: 480
|
width: 480
|
||||||
height: 640
|
height: 640
|
||||||
|
|
||||||
|
signal addRemoveClicked
|
||||||
property var currentChat: ChatListModel.currentChat
|
property var currentChat: ChatListModel.currentChat
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
@ -30,7 +31,8 @@ MyDialog {
|
|||||||
id: scrollView
|
id: scrollView
|
||||||
anchors.top: listLabel.bottom
|
anchors.top: listLabel.bottom
|
||||||
anchors.topMargin: 20
|
anchors.topMargin: 20
|
||||||
anchors.bottom: parent.bottom
|
anchors.bottom: collectionSettings.top
|
||||||
|
anchors.bottomMargin: 20
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
clip: true
|
clip: true
|
||||||
@ -120,4 +122,15 @@ MyDialog {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MyButton {
|
||||||
|
id: collectionSettings
|
||||||
|
anchors.bottom: parent.bottom
|
||||||
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
|
text: qsTr("Add & Remove")
|
||||||
|
font.pixelSize: theme.fontSizeLarger
|
||||||
|
onClicked: {
|
||||||
|
addRemoveClicked()
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -17,6 +17,15 @@ Dialog {
|
|||||||
radius: 10
|
radius: 10
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Rectangle {
|
||||||
|
id: closeBackground
|
||||||
|
z: 299
|
||||||
|
anchors.centerIn: myCloseButton
|
||||||
|
width: myCloseButton.width + 10
|
||||||
|
height: myCloseButton.height + 10
|
||||||
|
color: theme.backgroundDarkest
|
||||||
|
}
|
||||||
|
|
||||||
MyToolButton {
|
MyToolButton {
|
||||||
id: myCloseButton
|
id: myCloseButton
|
||||||
x: 0 + myDialog.width - myDialog.padding - width - 15
|
x: 0 + myDialog.width - myDialog.padding - width - 15
|
||||||
|
@ -20,6 +20,7 @@ MyDialog {
|
|||||||
}
|
}
|
||||||
|
|
||||||
signal downloadClicked
|
signal downloadClicked
|
||||||
|
property alias pageToDisplay: listView.currentIndex
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
Accessible.role: Accessible.Dialog
|
Accessible.role: Accessible.Dialog
|
||||||
|
Loading…
Reference in New Issue
Block a user