Class: RubyQt6::QtGui::QRegularExpressionValidator

Inherits:
QValidator
  • Object
show all
Defined in:
lib/qt6/qtgui/qregularexpressionvalidator.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(QRegularExpression, QObject)\n"

Instance Method Summary collapse

Constructor Details

#initialize(parent = nil) ⇒ QRegularExpressionValidator #initialize(re, parent = nil) ⇒ QRegularExpressionValidator

Overloads:



30
31
32
33
34
35
36
37
38
# File 'lib/qt6/qtgui/qregularexpressionvalidator.rb', line 30

def initialize(*args)
  parent = T.args_nth_delete_qobject(args, -1)
  case args.size
  when 0 then _initialize(parent)
  when 1 then _initialize_p(args[-1], parent)
  else raise ArgumentError, INITIALIZE_ARG_ERROR_MESSAGE
  end
  _take_ownership_from_ruby(self)
end