From bb3e1b096d692d2d1994699f16adbdc02d7ab7f8 Mon Sep 17 00:00:00 2001 From: Scott Murray Date: Fri, 3 Jan 2020 17:41:32 -0500 Subject: Rework to raise navigation app and improve behavior Add callback to raise navigation app via homescreen and hook it up to the "Go" button handling. Additionally, testing of this addition revealed that the result list and information panel state is fragile and easily gotten into a bad state with respect to repaints when raising the navigation app. To fix this, the code has been reworked to change InfoPanel into an actual widget and keep it and the result list widget around; manipulating their visibilty rather than recreating them and forcing whole-window repaints. As well, a slight delay is used before raising the navigation app to let all repaints finish. Ideally this would not be required, but the app likely needs a more significant rewrite to fix it. Bug-AGL: SPEC-3079 Signed-off-by: Scott Murray Change-Id: I599edd3030ff0852b80e418181990dd415a0bda2 --- InfoPanel.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'InfoPanel.h') diff --git a/InfoPanel.h b/InfoPanel.h index 0602c9f..e6e3048 100644 --- a/InfoPanel.h +++ b/InfoPanel.h @@ -9,13 +9,14 @@ #include "Business.h" #include "InfoPanelLabel.h" -class InfoPanel +class InfoPanel : public QWidget { public: - InfoPanel(QWidget *parent, Business & business, QRect rect); + InfoPanel(QWidget *parent, QRect rect); virtual ~InfoPanel(){} QPushButton * getCancelButton() { return &cancelButton; } QPushButton * getGoButton() { return &goButton; } + void populateInfo(Business & business); private: InfoPanelLabel nameLabel; -- cgit 1.2.3-korg