WIP-dont-use

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2024-08-30 21:19:27 -07:00
parent 29d9405a72
commit 52f156ee47
9 changed files with 24 additions and 19 deletions

View file

@ -38,7 +38,7 @@ Kirigami.ScrollablePage {
Component {
id: diveOrTripDelegate
Kirigami.AbstractListItem {
Controls.ItemDelegate {
// this allows us to access properties of the currentItem from outside
property variant myData: model
property var view: ListView.view
@ -46,7 +46,7 @@ Kirigami.ScrollablePage {
property bool invalid: isInvalid === true
id: diveOrTripDelegateItem
padding: 0
supportsMouseEvents: true
//supportsMouseEvents: true
anchors {
left: parent ? parent.left : undefined
right: parent ? parent.right : undefined
@ -458,7 +458,7 @@ Kirigami.ScrollablePage {
icon {
name: ":/icons/list-add"
}
color: subsurfaceTheme.textColor
//color: subsurfaceTheme.textColor
text: qsTr("Add dive")
onTriggered: {
startAddDive()
@ -469,7 +469,7 @@ Kirigami.ScrollablePage {
icon {
name: ":icons/ic_filter_list"
}
color: subsurfaceTheme.textColor
//color: subsurfaceTheme.textColor
text: qsTr("Filter dives")
onTriggered: {
rootItem.filterToggle = !rootItem.filterToggle

View file

@ -12,10 +12,10 @@ TemplatePage {
property int selectedExport: ExportType.EX_DIVES_XML
FileDialog {
FolderDialog {
id: saveAsDialog
folder: shortcuts.documents
selectFolder: true
currentFolder: shortcuts.documents
//selectFolder: true
onAccepted: {
manager.exportToFile(selectedExport, fileUrls, anonymize.checked)
pageStack.pop()

View file

@ -645,7 +645,7 @@ TemplatePage {
to: 150
stepSize: 1
value: PrefTechnicalDetails.gflow
validator: RegExpValidator { regExp: /1?\d{0,2}%?/ }
validator: RegularExpressionValidator { regularExpression: /1?\d{0,2}%?/ }
textFromValue: function (value, locale) {
return value + "%"
}
@ -679,7 +679,7 @@ TemplatePage {
to: 150
stepSize: 1
value: PrefTechnicalDetails.gfhigh
validator: RegExpValidator { regExp: /1?\d{0,2}%?/ }
validator: RegularExpressionValidator { regularExpression: /1?\d{0,2}%?/ }
textFromValue: function (value, locale) {
return value + "%"
}

View file

@ -47,7 +47,7 @@ Kirigami.Page {
Component {
id: chartListDelegate
Kirigami.AbstractListItem {
Controls.ItemDelegate {
id: chartListDelegateItem
height: isHeader ? 1 + 8 * Kirigami.Units.smallSpacing : 11 * Kirigami.Units.smallSpacing // delegateInnerItem.height
onClicked: {

View file

@ -735,9 +735,9 @@ if you have network connectivity and want to sync your data to cloud storage."),
}
}
QMLManager {
id: manager
}
// QMLManager {
// id: manager
// }
property bool initialized: manager.initialized