-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMain.qml
More file actions
43 lines (40 loc) · 1.12 KB
/
Main.qml
File metadata and controls
43 lines (40 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import QtQuick
import QtQuick.Controls
import utils
import popups
import mainui
import commonstores
ApplicationWindow {
id: root
visible: true
color: Style.bgColor
title: qsTr("QML Dashboard")
width: Style.screenWidth
height: Style.screenHeight
Item {
anchors.fill: parent
HomePage {
id: dashboardAppContent
anchors.fill: parent
onOpenNewReminderPopup: function() {
popups.openNewReminderPopup();
}
onOpenNewTaskPopup: function(selectedDate) {
popups.openNewTaskPopup(selectedDate);
}
onOpenReplyPopup: function(isReply, sender, subject) {
popups.openReplyPopup(isReply, sender, subject);
}
}
//Popups
Popups {
id: popups
onNewTaskAdded: function(even, time, title) {
Store.addNewTask(even, time, title);
}
onNewReminderAdded: function(day, month, description, color) {
Store.addNewReminder(day, month, description, color);
}
}
}
}