summaryrefslogtreecommitdiffstats
path: root/app/models/CallHistoryModel.qml
diff options
context:
space:
mode:
authorMatt Porter <mporter@konsulko.com>2018-05-21 11:54:33 -0400
committerMatt Porter <mporter@konsulko.com>2018-05-22 11:34:53 +0000
commit14b2f421da514a3d8584f7983884a9027ac06cbb (patch)
treed813469bfcbb353c4d3ba919804c9cbef41bbc8b /app/models/CallHistoryModel.qml
parent87c3378a8b716b896ca0cb72ccfb2e13f748058a (diff)
phone: add tabbed view
Adds support for a tabbed view of contacts, recent call, and the dialpad. This adjusts the UI to look more like a modern mobile phone app. The same models populate the contacts view and the recent call view as before with the latter being a more useful full screen list. The recent call history also includes type of call information (missed, incoming, outgoing) and the UI displays icons accordingly to indicate type of call that occured as well as a time stamp. For now, the icons are placeholders but will be replaced by icons design to match the AGL look and feel. Bug-AGL: SPEC-1435 Change-Id: I521155a11208e92ece83f20f7f3dd643deb92099 Signed-off-by: Matt Porter <mporter@konsulko.com>
Diffstat (limited to 'app/models/CallHistoryModel.qml')
-rw-r--r--app/models/CallHistoryModel.qml5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/models/CallHistoryModel.qml b/app/models/CallHistoryModel.qml
index ee11799..a1c00b0 100644
--- a/app/models/CallHistoryModel.qml
+++ b/app/models/CallHistoryModel.qml
@@ -6,29 +6,34 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
import QtQml.Models 2.2
+import CallType 1.0
ListModel {
ListElement {
name: "Droopy"
number: "8003451234"
time: "2015-01-05 07:15"
+ type: CallType.Missed
}
ListElement {
name: "Doc"
number: "8003451234"
time: "2015-01-05 07:15"
+ type: CallType.Incoming
}
ListElement {
name: "Grumpy"
number: "8003451234"
time: "2015-01-05 07:15"
+ type: CallType.Outgoing
}
ListElement {
name: "Bashful"
number: "8003451234"
time: "2015-01-05 07:15"
+ type: CallType.Incoming
}
}