mirror of
https://codeberg.org/vyn/mirai.git
synced 2025-07-03 18:23:19 +00:00
Add scrollbar for tasks
This commit is contained in:
parent
317b515e22
commit
6ef9740db9
2 changed files with 72 additions and 72 deletions
|
@ -63,7 +63,6 @@ Rectangle {
|
||||||
Component.onCompleted: set(new Date()) // today
|
Component.onCompleted: set(new Date()) // today
|
||||||
onClicked: {
|
onClicked: {
|
||||||
const formattedDate = Qt.formatDate(date, 'yyyy-MM-dd')
|
const formattedDate = Qt.formatDate(date, 'yyyy-MM-dd')
|
||||||
print('onClicked', formattedDate)
|
|
||||||
newTodoDate.text = formattedDate
|
newTodoDate.text = formattedDate
|
||||||
datePicker.close()
|
datePicker.close()
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,8 +10,15 @@ import QtQuick.Controls
|
||||||
import QtQuick.Layouts
|
import QtQuick.Layouts
|
||||||
import Mirai
|
import Mirai
|
||||||
|
|
||||||
ColumnLayout {
|
ScrollView {
|
||||||
|
id: scroll
|
||||||
|
clip: true
|
||||||
|
contentHeight: layout.height
|
||||||
|
|
||||||
|
ColumnLayout {
|
||||||
|
id: layout
|
||||||
|
anchors.right: parent.right
|
||||||
|
anchors.left: parent.left
|
||||||
QtObject {
|
QtObject {
|
||||||
id: internal
|
id: internal
|
||||||
property string todayDate: Qt.formatDate(new Date(), 'yyyy-MM-dd')
|
property string todayDate: Qt.formatDate(new Date(), 'yyyy-MM-dd')
|
||||||
|
@ -78,21 +85,15 @@ ColumnLayout {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
id: mouse
|
id: mouse
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
acceptedButtons: Qt.RightButton
|
acceptedButtons: Qt.RightButton
|
||||||
propagateComposedEvents: true
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
contextMenu.popup()
|
contextMenu.popup()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Item {
|
|
||||||
Layout.fillHeight: true
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue