From b79d2e9c18ffcaaa73df03ff908a62fc7603bba5 Mon Sep 17 00:00:00 2001 From: Matt Porter Date: Sat, 11 Nov 2017 23:36:34 -0500 Subject: Move call timer functionality from QML into the C++ Phone class Removes the QML call timer implementation in favor of a C++ implementation in the Phone class. This allows the call timer to be started even if the QML application is in the background (QSG RenderThread not scheduled). Bug-AGL: SPEC-1083 Change-Id: I0cb9087d73862992d25b105f97b830eef5c83ef0 Signed-off-by: Matt Porter --- app/main.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'app/main.cpp') diff --git a/app/main.cpp b/app/main.cpp index e2eaf7c..09e501f 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -70,6 +70,7 @@ int main(int argc, char *argv[]) Telephony *telephony = new Telephony(bindingAddress); context->setContextProperty("telephony", telephony); Phone *phone = new Phone(telephony); + context->setContextProperty("phone", phone); QObject::connect(telephony, &Telephony::callStateChanged, phone, &Phone::onCallStateChanged); } -- cgit 1.2.3-korg