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

bool ItemLibrary::setDescription ( QString  type,
const QString &  description,
const QString &  language 

Gives the type item the description.

type the type of item this description is for.
language the language code, e.g. "es".
whether the descriptions file could be saved.

Definition at line 602 of file itemlibrary.cpp.

References saveDescriptions().

Referenced by ContextHelp::saveDescription().

      if ( type.startsWith("/") )
            // Possibly change e.g. "/ec/capacitor" to "ec/capacitor"
            type.remove( 0, 1 );
      m_itemDescriptions[ language ][ type ] = description;
      return saveDescriptions( language );

Generated by  Doxygen 1.6.0   Back to index