diff options
Diffstat (limited to 'qtruby/rubylib/qtruby/lib')
-rw-r--r-- | qtruby/rubylib/qtruby/lib/Qt/qtruby.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/qtruby/rubylib/qtruby/lib/Qt/qtruby.rb b/qtruby/rubylib/qtruby/lib/Qt/qtruby.rb index 4197e9f6..bbbb92e3 100644 --- a/qtruby/rubylib/qtruby/lib/Qt/qtruby.rb +++ b/qtruby/rubylib/qtruby/lib/Qt/qtruby.rb @@ -277,13 +277,13 @@ module TQt def inspect str = super str.sub(/>$/, " memberName=%s, memberType=%s, object=%s>" % - [memberName.inspect, memberType == 1 ? "SLOT" : "SIGNAL", object.inspect] ) + [memberName.inspect, memberType == 1 ? "TQ_SLOT" : "TQ_SIGNAL", object.inspect] ) end def pretty_print(pp) str = to_s pp.text str.sub(/>$/, "\n memberName=%s,\n memberType=%s,\n object=%s>" % - [memberName.inspect, memberType == 1 ? "SLOT" : "SIGNAL", object.inspect] ) + [memberName.inspect, memberType == 1 ? "TQ_SLOT" : "TQ_SIGNAL", object.inspect] ) end end @@ -1758,7 +1758,7 @@ module TQt return TQt::Object.connect( src, signal, TQt::BlockInvocation.new(target, block, signature), - SLOT("invoke(#{signature})") ) + TQ_SLOT("invoke(#{signature})") ) end def Internal.signal_connect(src, signal, block) @@ -1766,7 +1766,7 @@ module TQt return TQt::Object.connect( src, signal, TQt::SignalBlockInvocation.new(src, block, signature), - SLOT("invoke(#{signature})") ) + TQ_SLOT("invoke(#{signature})") ) end end # TQt::Internal @@ -1878,7 +1878,7 @@ module TQt end # Qt class Object - def SIGNAL(signal) + def TQ_SIGNAL(signal) if signal.kind_of? Symbol return "2" + signal.to_s + "()" else @@ -1886,7 +1886,7 @@ class Object end end - def SLOT(slot) + def TQ_SLOT(slot) if slot.kind_of? Symbol return "1" + slot.to_s + "()" else |