Logo Search packages:      
Sourcecode: palapeli version File versions  Download package

Palapeli::PatternConfiguration * Palapeli::PatternTrader::configurationFromName ( const QString &  patternName  )  const

Searches for a Palapeli::PatternConfiguration instance with the given patternName.

a pointer to the Palapeli::PatternConfiguration instance, or 0 if no such instance exists
The trader will delete this instance automatically when rebuilding its configuration list or on exit.
See also:

Definition at line 64 of file pattern-trader.cpp.

References Palapeli::PatternConfiguration::property().

      foreach (Palapeli::PatternConfiguration* config, p->m_configs)
            if (config->property("PatternName").toString() == patternName)
                  return config;
      return 0;

Generated by  Doxygen 1.6.0   Back to index