isis/src/qisis/objs/ProjectItem/ProjectItem.cpp
void ProjectItem::setTargetBody(TargetBodyQsp targetBody) {
    setTextColor(Qt::black);
    setText( targetBody->displayProperties()->displayName() );
    if (targetBody->displayProperties()->displayName() == "MOON")
      setIcon( QIcon(FileName("$ISISROOT/appdata/images/icons/weather-clear-night.png")
                             .expanded()));
    else if (targetBody->displayProperties()->displayName() == "Enceladus")
      setIcon( QIcon(FileName("$ISISROOT/appdata/images/icons/nasa_enceladus.png")
                             .expanded()));
    else if (targetBody->displayProperties()->displayName() == "Mars")
      setIcon( QIcon(FileName("$ISISROOT/appdata/images/icons/nasa_mars.png")
                             .expanded()));
    else if (targetBody->displayProperties()->displayName() == "Titan")
      setIcon( QIcon(FileName("$ISISROOT/appdata/images/icons/nasa_titan.png")
                             .expanded()));
    else
      setIcon( QIcon(FileName("$ISISROOT/appdata/images/icons/view-web-browser-dom-tree.png")
                             .expanded()));

    setData( QVariant::fromValue<TargetBodyQsp>(targetBody) );
  }
/**
   * Sets the text, icon, and data corresponding to a TargetBodyQsp.
   *
   * @param targetBody Target body to set data from
   */
Sets the text, icon, and data corresponding to a TargetBodyQsp.
@param targetBody Target body to set data from
Sets the text icon and data corresponding to a TargetBodyQsp . @param targetBody Target body to set data from
void ProjectItem::setTargetBody(TargetBodyQsp targetBody) {
    setTextColor(Qt::black);
    setText( targetBody->displayProperties()->displayName() );
    if (targetBody->displayProperties()->displayName() == "MOON")
      setIcon( QIcon(FileName("$ISISROOT/appdata/images/icons/weather-clear-night.png")
                             .expanded()));
    else if (targetBody->displayProperties()->displayName() == "Enceladus")
      setIcon( QIcon(FileName("$ISISROOT/appdata/images/icons/nasa_enceladus.png")
                             .expanded()));
    else if (targetBody->displayProperties()->displayName() == "Mars")
      setIcon( QIcon(FileName("$ISISROOT/appdata/images/icons/nasa_mars.png")
                             .expanded()));
    else if (targetBody->displayProperties()->displayName() == "Titan")
      setIcon( QIcon(FileName("$ISISROOT/appdata/images/icons/nasa_titan.png")
                             .expanded()));
    else
      setIcon( QIcon(FileName("$ISISROOT/appdata/images/icons/view-web-browser-dom-tree.png")
                             .expanded()));
    setData( QVariant::fromValue<TargetBodyQsp>(targetBody) );
  }
void ProjectItem :: setTargetBody ( TargetBodyQsp targetBody ) { setTextColor ( Qt :: black ) ; setText ( targetBody -> displayProperties ( ) -> displayName ( ) ) ; if ( targetBody -> displayProperties ( ) -> displayName ( ) == " " ) setIcon ( QIcon ( FileName ( " " ) . expanded ( ) ) ) ; else if ( targetBody -> displayProperties ( ) -> displayName ( ) == " " ) setIcon ( QIcon ( FileName ( " " ) . expanded ( ) ) ) ; else if ( targetBody -> displayProperties ( ) -> displayName ( ) == " " ) setIcon ( QIcon ( FileName ( " " ) . expanded ( ) ) ) ; else if ( targetBody -> displayProperties ( ) -> displayName ( ) == " " ) setIcon ( QIcon ( FileName ( " " ) . expanded ( ) ) ) ; else setIcon ( QIcon ( FileName ( " " ) . expanded ( ) ) ) ; setData ( QVariant :: fromValue < TargetBodyQsp > ( targetBody ) ) ; }
Sets the text, icon, and data corresponding to a TargetBodyQsp.
Sets the text icon and data corresponding to a TargetBodyQsp .