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

From KDE TechBase
(Created page with "При создании девяти объектов класса '''<tt>LCDRange</tt>''' мы соединяем их при помощи механизма [http://doc.qt.noki...")
 
(No difference)

Latest revision as of 17:47, 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)
When we create the nine '''<tt>LCDRange</tt>''' objects, we connect them using the [http://doc.qt.nokia.com/latest/signalsandslots.html signals and slots] mechanism. Each has its '''<tt>valueChanged()</tt>''' signal connected to the previous one's '''<tt>setValue()</tt>''' slot. Because '''<tt>LCDRange</tt>''' emits the '''<tt>valueChanged()</tt>''' signal when its value changes, we are here creating a chain of signals and slots.

При создании девяти объектов класса LCDRange мы соединяем их при помощи механизма сигналов и слотов. Сигнал valueChanged() каждого объекта соединяется со слотом setValue() предыдущего объекта. Поскольку при изменении значения LCDRange вырабатывается сигнал valueChanged(), получается цепочка сигналов и слотов.