Class: RubyQt6::QtGui::QIntValidator
- Inherits:
-
QValidator
- Object
- RubyQt6::QtCore::QObject
- QValidator
- RubyQt6::QtGui::QIntValidator
- Defined in:
- lib/qt6/qtgui/qintvalidator.rb
Overview
Constant Summary collapse
- INITIALIZE_ARG_ERROR_MESSAGE =
"Could not resolve method call for #{name}#initialize\n" \ " 2 overload(s) were evaluated based on the types of Ruby parameters provided:\n" \ " initialize(QObject)\n" \ " initialize(Integer, Integer, QObject)\n"
Instance Method Summary collapse
- #initialize(*args) ⇒ QIntValidator constructor
Constructor Details
#initialize(parent = nil) ⇒ QIntValidator #initialize(minimum, maximum, parent = nil) ⇒ QIntValidator
31 32 33 34 35 36 37 38 39 |
# File 'lib/qt6/qtgui/qintvalidator.rb', line 31 def initialize(*args) parent = T.args_nth_delete_qobject(args, -1) case args.size when 0 then _initialize(parent) when 2 then _initialize_p(args[-2], args[-1], parent) else raise ArgumentError, INITIALIZE_ARG_ERROR_MESSAGE end _take_ownership_from_ruby(self) end |