Orb/Doxygen/addon/doxywizard/expert.cpp
changeset 4 468f4c8d3d5b
parent 0 42188c7ea2d9
equal deleted inserted replaced
3:d8fccb2cd802 4:468f4c8d3d5b
   319   QHashIterator<QString,Input*> i(m_options);
   319   QHashIterator<QString,Input*> i(m_options);
   320   while (i.hasNext()) 
   320   while (i.hasNext()) 
   321   {
   321   {
   322     i.next();
   322     i.next();
   323     QVariant var = s->value(SA("config/")+i.key());
   323     QVariant var = s->value(SA("config/")+i.key());
   324     //printf("Loading key %s: type=%d\n",qPrintable(i.key()),var.type());
       
   325     if (i.value())
   324     if (i.value())
   326     {
   325     {
       
   326       //printf("Loading key %s: type=%d value='%s'\n",qPrintable(i.key()),var.type(),qPrintable(var.toString()));
   327       i.value()->value() = var;
   327       i.value()->value() = var;
   328       i.value()->update();
   328       i.value()->update();
   329     }
   329     }
   330   }
   330   }
   331 }
   331 }
   334 {
   334 {
   335   QHashIterator<QString,Input*> i(m_options);
   335   QHashIterator<QString,Input*> i(m_options);
   336   while (i.hasNext()) 
   336   while (i.hasNext()) 
   337   {
   337   {
   338     i.next();
   338     i.next();
       
   339     //printf("Saving key %s: type=%d value='%s'\n",qPrintable(i.key()),i.value()->value().type(),qPrintable(i.value()->value().toString()));
   339     if (i.value())
   340     if (i.value())
   340     {
   341     {
   341       s->value(SA("config/")+i.key(),i.value()->value());
   342       s->setValue(SA("config/")+i.key(),i.value()->value());
   342     }
   343     }
   343   }
   344   }
   344 }
   345 }
   345 
   346 
   346 void Expert::loadConfig(const QString &fileName)
   347 void Expert::loadConfig(const QString &fileName)