Exemple #1
0
/*
  This is called when a configuration is loaded, and updates the plugin's settings.
  Careful: the plugin is already drawn before the loadConfiguration method is called the
  first time, so you have to be careful not to assume all the plugin values are initialized
  the first time you use them
 */
void PfdQmlGadget::loadConfiguration(IUAVGadgetConfiguration* config)
{
    PfdQmlGadgetConfiguration *m = qobject_cast<PfdQmlGadgetConfiguration*>(config);
    m_widget->setQmlFile(m->qmlFile());
    m_widget->setSettingsMap(m->settings());
}