Jump to content

Translations:Development/Tutorials/Qt4 Ruby Tutorial/Chapter 07/15/ru: Difference between revisions

From KDE TechBase
Aspotashev (talk | contribs)
Created page with "Слоты должны иметь реализацию (implementation), как и обычные методы в Ruby. Сигналы автоматически получаю..."
 
(No difference)

Latest revision as of 17:46, 2 July 2011

Information about message (contribute)
This message has no documentation. If you know where or how this message is used, you can help other translators by adding documentation to this message.
Message definition (Development/Tutorials/Qt4 Ruby Tutorial/Chapter 07)
Slots must be implemented in the normal way (a slot is also a Ruby member function). Signals are automatically implemented. Signals follow the access rules of protected Ruby functions (i.e., they can be emitted only by the class they are defined in or by classes inheriting from it).

Слоты должны иметь реализацию (implementation), как и обычные методы в Ruby. Сигналы автоматически получают реализацию. Сигналы имеют режим доступа «protected», т.е. сигнал может быть выработан либо из класса, где определен сигнал, либо из производного класса.