isis/src/qisis/objs/ProjectItem/ProjectItem.cpp
void ProjectItem::setTemplateList(TemplateList *templateList) {
    setTextColor(Qt::black);
    if (templateList->name() != "") {
      setText( templateList->name() );
    }
    else {
      setText( templateList->path() );
    }
    setIcon( QIcon(FileName("$ISISROOT/appdata/images/icons/folder-orange.png")
                           .expanded()));
    setData( QVariant::fromValue<TemplateList *>(templateList) );
  }
/**
   * Sets the text, icon, and data corresponding to an TemplateList.
   *
   * @param[in] templateList (TemplateList *) The TemplateList.
   */
Sets the text, icon, and data corresponding to an TemplateList.
Sets the text icon and data corresponding to an TemplateList .
void ProjectItem::setTemplateList(TemplateList *templateList) {
    setTextColor(Qt::black);
    if (templateList->name() != "") {
      setText( templateList->name() );
    }
    else {
      setText( templateList->path() );
    }
    setIcon( QIcon(FileName("$ISISROOT/appdata/images/icons/folder-orange.png")
                           .expanded()));
    setData( QVariant::fromValue<TemplateList *>(templateList) );
  }
void ProjectItem :: setTemplateList ( TemplateList * templateList ) { setTextColor ( Qt :: black ) ; if ( templateList -> name ( ) != " " ) { setText ( templateList -> name ( ) ) ; } else { setText ( templateList -> path ( ) ) ; } setIcon ( QIcon ( FileName ( " " ) . expanded ( ) ) ) ; setData ( QVariant :: fromValue < TemplateList * > ( templateList ) ) ; }
Sets the text, icon, and data corresponding to an TemplateList.
Sets the text icon and data corresponding to an TemplateList .