Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/UIElements/Views/Qt4/Qt3D/GLMoleculeObject_atom.cpp

    rce4126 rc60665  
    6969  }
    7070  World::getInstance().signOn(this, World::SelectionChanged);
     71  WorldTime::getInstance().signOn(this, WorldTime::TimeChanged);
    7172
    7273  // set the object's id
     
    8889  }
    8990  World::getInstance().signOff(this, World::SelectionChanged);
     91  WorldTime::getInstance().signOff(this, WorldTime::TimeChanged);
    9092}
    9193
     
    228230        break;
    229231    }
     232  } else {
     233    // notification from world
     234#ifdef LOG_OBSERVER
     235    observerLog().addMessage() << "++ Update of Observer "<< observerLog().getName(static_cast<Observer *>(this))
     236          << " received notification from Worldtime for channel "
     237          << notification->getChannelNo() << ".";
     238#endif
     239    switch (notification->getChannelNo()) {
     240      case WorldTime::TimeChanged:
     241        resetPosition();
     242        emit changed();
     243        break;
     244      default:
     245        break;
     246    }
    230247  }
    231248}
Note: See TracChangeset for help on using the changeset viewer.