From 8170c9280b57c8da5d1d6045e16d5ac14bc5220d Mon Sep 17 00:00:00 2001 From: Scott Murray Date: Mon, 30 Dec 2019 18:44:05 -0500 Subject: Enhance voice configuration Various tweaks to the new voice configuration support: - Moved "Version" choice on the main menu back down to the last choice, since it's less likely to be used. - Pull in qt-qrcode library's quickitem support and use it to display a QR code when Alexa authorization is required. - Reworked layout of voice configuration dialog to tighten up spacing and make more room for the QR code. - Tweaked voice configuration dialog logic to only show the login prompting when in not-authorized state. Ideally, a deauth button would be shown in the authorized state, but the voiceagent API currently does not enable that AFAICT. - Replace voiceagent ID with vendor in voiceagent configuration dialog, as the ID is more of an internal thing that's not useful to users. - Tweaked some text colors in voiceagent configuration dialog for better consistency with the other settings pages. - Switched voiceagent configuration dialog positioning to center it on-screen, as that seems more consistent with the look of the other settings pages. - Made the previous two changes to the wired settings configuration dialog as well for consistency. - Updated the voice settings icon with a microphone icon to match the default icon shown for the homescreen PTT button. - Updated the wired settings icon with a more typical network icon to avoid confusion. Bug-AGL: SPEC-2981 Signed-off-by: Scott Murray Change-Id: I75560e3cab393e6efdfb1310f266e5b6bb0534d6 --- app/main.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/main.cpp') diff --git a/app/main.cpp b/app/main.cpp index b46029c..20aff96 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -24,6 +24,7 @@ #include #include #include +#include #include #include #include @@ -115,6 +116,7 @@ int main(int argc, char *argv[]) qWarning() << aglversion.errorString(); } + QtQrCodeQuickItem::registerQmlTypes(); engine.rootContext()->setContextProperty("bluetooth", new Bluetooth(bindingAddressWS, context)); engine.rootContext()->setContextProperty("voice", new Voice(bindingAddressWS, context)); engine.rootContext()->setContextProperty(QStringLiteral("screenInfo"), &screenInfo); -- cgit 1.2.3-korg