Class: Qt::IntValidator

Inherits:
Base
  • Object
show all
Defined in:
lib/Qt/qtruby4.rb

Instance Method Summary collapse

Instance Method Details

#range=(arg) ⇒ Object



1298
1299
1300
1301
1302
1303
1304
# File 'lib/Qt/qtruby4.rb', line 1298

def range=(arg)
  if arg.kind_of? Range
    return super(arg.begin, arg.exclude_end?  ? arg.end - 1 : arg.end)
  else
    return super(arg)
  end
end