code: def setTimeEnd( self, timeEnd ):
          
          timeEnd = QTime(timeEnd)
          
          if ( timeEnd < self._timeStart ):
              self._timeStart = timeEnd.addSecs(-60 * 60)
          self._timeEnd = timeEnd
          self.markForRebuild()
docs: Sets the end time for this item.  This method will only affect the 
          start time if the end time is set to occur before its start, in which
          case it will set the start time as 60 minutes before.
          Otherwise, this method will scale the duration of the event.
          
          :param      timeEnd | <QTime>