mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
QML UI: show dive details in TextBoxes
Show the dive details in editable text boxes. This will make it easier for the user to edit the displayed information. Signed-off-by: Grace Karanja <gracie.karanja89@gmail.com>
This commit is contained in:
parent
bdf87ff60e
commit
c4fda447fd
1 changed files with 29 additions and 9 deletions
|
@ -3,6 +3,7 @@ import QtQuick.Controls 1.2
|
||||||
import QtQuick.Window 2.2
|
import QtQuick.Window 2.2
|
||||||
import QtQuick.Dialogs 1.2
|
import QtQuick.Dialogs 1.2
|
||||||
import org.subsurfacedivelog.mobile 1.0
|
import org.subsurfacedivelog.mobile 1.0
|
||||||
|
import QtQuick.Layouts 1.0
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: page
|
id: page
|
||||||
|
@ -69,16 +70,35 @@ Rectangle {
|
||||||
id: flick
|
id: flick
|
||||||
width: parent.width
|
width: parent.width
|
||||||
anchors { top: detailsTitle.bottom; bottom: parent.bottom }
|
anchors { top: detailsTitle.bottom; bottom: parent.bottom }
|
||||||
contentHeight: detailsView.height
|
contentHeight: editorDetails.height
|
||||||
clip: true
|
clip: true
|
||||||
Row {
|
|
||||||
Text { text:
|
GridLayout {
|
||||||
'<b>Location: </b>' + location +
|
id: editorDetails
|
||||||
'<br><b>Air temp: </b>' + airtemp + ' <b> Water temp: </b>' + watertemp +
|
width: detailsPage.width
|
||||||
'<br><b>Suit: </b>' + suit +
|
columns: 2
|
||||||
'<br><b>Buddy: </b>' + buddy +
|
Text { text: "Location:"; font.bold: true }
|
||||||
'<br><b>Dive Master: </b>' + divemaster +
|
TextField { id: txtLocation; text: location; Layout.fillWidth: true }
|
||||||
'<br/><b>Notes:</b><br/>' + notes; wrapMode: Text.WordWrap; width: details.width }
|
Text { text: "Air Temp:"; font.bold: true }
|
||||||
|
TextField { id: txtAirTemp; text: airtemp; Layout.fillWidth: true }
|
||||||
|
Text { text: "Water Temp:"; font.bold: true }
|
||||||
|
TextField { id: txtWaterTemp; text: watertemp; Layout.fillWidth: true }
|
||||||
|
Text { text: "Suit:"; font.bold: true }
|
||||||
|
TextField { id: txtSuit; text: suit; Layout.fillWidth: true }
|
||||||
|
Text { text: "Buddy:"; font.bold: true }
|
||||||
|
TextField { id: txtBuddy; text: buddy; Layout.fillWidth: true }
|
||||||
|
Text { text: "Dive Master:"; font.bold: true }
|
||||||
|
TextField { id: txtDiveMaster; text: divemaster; Layout.fillWidth: true}
|
||||||
|
Text { text: "Notes:"; font.bold: true }
|
||||||
|
TextEdit{
|
||||||
|
id: txtNotes
|
||||||
|
text: notes
|
||||||
|
focus: true
|
||||||
|
Layout.fillWidth: true
|
||||||
|
Layout.fillHeight: true
|
||||||
|
selectByMouse: true
|
||||||
|
wrapMode: TextEdit.WrapAtWordBoundaryOrAnywhere
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue