Method: Qt::Time._load

Defined in:
lib/ruber/qt_sugar.rb

._load(str) ⇒ Object



424
425
426
427
428
429
430
# File 'lib/ruber/qt_sugar.rb', line 424

def self._load str
  if str.empty? then self.new
  else
    h, m, s, ms = str.split ';'
    self.new h.to_i, m.to_i, s.to_i, ms.to_i
  end
end