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

bool ItemLibrary::haveDescription ( QString  type,
const QString &  language 
) const

Returns:
if we have a description for the item in language.

Definition at line 557 of file itemlibrary.cpp.

References libraryItem().

Referenced by ContextHelp::extractLinkType().

{
      if ( type.startsWith("/") )
      {
            // Possibly change e.g. "/ec/capacitor" to "ec/capacitor"
            type.remove( 0, 1 );
      }
      
      if ( !m_itemDescriptions[ language ].contains( type ) )
      {
            return libraryItem( type );
      }
      
      return ! m_itemDescriptions[ language ][ type ].isEmpty();
}


Generated by  Doxygen 1.6.0   Back to index