[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bindings
Subject:    [Kde-bindings] [Bug 110194] New: connecting to protected and
From:       Caleb Tennis <caleb () gentoo ! org>
Date:       2005-08-04 21:49:13
Message-ID: 20050804234913.110194.caleb () gentoo ! org
[Download RAW message or body]

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=110194         
           Summary: connecting to protected and private slots always works
           Product: bindings
           Version: unspecified
          Platform: unspecified
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: kde-bindings kde org
        ReportedBy: caleb gentoo org


Version:            (using KDE KDE 3.4.2)
Compiler:          gcc 4.0.1 
OS:                Linux

It seems like protected and private slots don't work the same way in QtRuby as they \
do in pure Qt.  For example:

class VC < Qt::Widget

  slots 'myPublicSlot()','myProtectedSlot()','myPrivateSlot()'

  def myPublicSlot
  end

protected
  def myProtectedSlot
  end

private
  def myPrivateSlot
  end

end

$vc = VC.new
$b = Qt::PushButton.new(nil)

Qt::Object::connect($b, SIGNAL('clicked()'), $vc, SLOT('myPublicSlot()'))
Qt::Object::connect($b, SIGNAL('clicked()'), $vc, SLOT('myProtectedSlot()'))
Qt::Object::connect($b, SIGNAL('clicked()'), $vc, SLOT('myPrivateSlot()'))

All three connections work, even though in the C++ sense I'd only expect the first \
one to work. _______________________________________________
Kde-bindings mailing list
Kde-bindings@kde.org
https://mail.kde.org/mailman/listinfo/kde-bindings


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic