Is there a centralised place to oversee the widget creation/destroy
Posted: Thu Jun 09, 2016 12:12 am
Hi all ,
i am working on an open source project (https://github.com/moneymanagerex/moneymanagerex/) and now i am trying to integrate Google Analytics to the desktop application. currently, i would add the following single line to every widget to track the usage by passing a pointer to current widgets.
the current case is that i have to add this line for all widget class which is inconvenient.
Does any one know that is there a centralised function that each widget will call during the creation and destroy?
i am working on an open source project (https://github.com/moneymanagerex/moneymanagerex/) and now i am trying to integrate Google Analytics to the desktop application. currently, i would add the following single line to every widget to track the usage by passing a pointer to current widgets.
Code: Select all
Model_Usage::instance().pageview(this);
Does any one know that is there a centralised function that each widget will call during the creation and destroy?