Start fleshing out the localdocs ui.

This commit is contained in:
Adam Treat 2023-05-22 09:03:06 -04:00 committed by AT
parent af33be7b3e
commit 120fbbf67d
3 changed files with 38 additions and 4 deletions

View File

@ -76,6 +76,7 @@ qt_add_qml_module(chat
QML_FILES QML_FILES
main.qml main.qml
qml/ChatDrawer.qml qml/ChatDrawer.qml
qml/LocalDocs.qml
qml/ModelDownloaderDialog.qml qml/ModelDownloaderDialog.qml
qml/NetworkDialog.qml qml/NetworkDialog.qml
qml/NewVersionDialog.qml qml/NewVersionDialog.qml

View File

@ -0,0 +1,36 @@
import QtQuick
import QtQuick.Controls
import QtQuick.Controls.Basic
import QtQuick.Layouts
GridLayout {
columns: 2
rowSpacing: 10
columnSpacing: 10
Label {
text: qsTr("Collections:")
color: theme.textColor
Layout.row: 1
Layout.column: 0
}
RowLayout {
spacing: 10
Layout.row: 1
Layout.column: 1
MyComboBox {
id: comboBox
Layout.minimumWidth: 350
}
MyButton {
text: "Add"
}
MyButton {
text: "Remove"
}
MyButton {
text: "Rename"
}
}
}

View File

@ -803,11 +803,8 @@ Dialog {
contentWidth: availableWidth - 20 contentWidth: availableWidth - 20
ScrollBar.vertical.policy: ScrollBar.AlwaysOn ScrollBar.vertical.policy: ScrollBar.AlwaysOn
GridLayout { LocalDocs {
anchors.margins: 10 anchors.margins: 10
columns: 3
rowSpacing: 10
columnSpacing: 10
anchors.fill: parent anchors.fill: parent
} }
} }