[Kde-bindings] [Bug 110194] New: connecting to protected and private slots always works
Caleb Tennis
caleb at gentoo.org
Thu Aug 4 21:49:13 UTC 2005
------- 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.
More information about the Kde-bindings
mailing list