mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Mobile: return dateTime directly from DiveListModel
We don't want to generate a DiveObjectHelper numerous times for every item in the dive list. Therefore, return this data directly from the model. In this case, don't remove from DiveObjectHelper, as these data might be used by grantlee templates. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
54720e6cff
commit
c6b3309d13
3 changed files with 11 additions and 2 deletions
|
|
@ -171,7 +171,7 @@ Kirigami.ScrollablePage {
|
|||
|
||||
Controls.Label {
|
||||
id: dateLabel
|
||||
text: dive.date + " " + dive.time
|
||||
text: dateTime
|
||||
width: Math.max(locationText.width * 0.45, paintedWidth) // helps vertical alignment throughout listview
|
||||
font.pointSize: subsurfaceTheme.smallPointSize
|
||||
color: innerListItem.checked ? subsurfaceTheme.darkerPrimaryTextColor : secondaryTextColor
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue