Logo Search packages:      
Sourcecode: tellico version File versions

const Tellico::Data::Image & ImageFactory::imageById ( const QString &  id  )  [static]

Returns an image reference given its id. If none is found, a null image is returned.

id The image id
The image referencenter

Definition at line 78 of file imagefactory.cpp.

Referenced by addImage(), and writeImage().

  if(s_imageDict.isEmpty() || id_.isEmpty()) {
    return s_null;
  Data::Image* img = s_imageDict.find(id_);
  if(img) {
    return *img;
  return s_null;

Generated by  Doxygen 1.6.0   Back to index