forked from lubuwest/Friendiqa
create and delete events
This commit is contained in:
parent
27cd83db3c
commit
400241ec6a
34 changed files with 1346 additions and 614 deletions
|
@ -35,9 +35,9 @@ import QtQuick.Controls.Material 2.12
|
|||
|
||||
Item {
|
||||
id: calendarDay
|
||||
width: root.fontFactor*osSettings.bigFontSize*2//5*mm
|
||||
height: root.fontFactor*osSettings.bigFontSize*2//5*mm
|
||||
property int dateInt: Math.floor(Date.parse(model.date)/86400000) //Math.floor((Date.parse(model.date)-(new Date().getTimezoneOffset() * 60 * 1000))/86400000)
|
||||
width: root.fontFactor*osSettings.bigFontSize*2
|
||||
height: root.fontFactor*osSettings.bigFontSize*2
|
||||
property int dateInt: Math.floor(model.date.valueOf()/86400000)
|
||||
Rectangle {
|
||||
id: placeHolder
|
||||
color: model.today?'lightblue':'transparent';
|
||||
|
@ -68,10 +68,8 @@ Item {
|
|||
}
|
||||
MouseArea {
|
||||
anchors.fill: calendarDay
|
||||
onClicked: {rootstackView.push("qrc:/qml/calendarqml/EventList.qml",{"dayint": dateInt,"events":events});
|
||||
// var component = Qt.createComponent("qrc:/qml/calendarqml/EventList.qml");
|
||||
// if (component.status== Component.Ready){
|
||||
// var eventlist = component.createObject(calendartab,{"dayint": dateInt})}
|
||||
onClicked: {
|
||||
rootstackView.push("qrc:/qml/calendarqml/EventList.qml",{"dayint": dateInt,"events":events});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue