Translations:Development/Tutorials/Qt4 Ruby Tutorial/Chapter 07/20/fi: Difference between revisions

From KDE TechBase
(Created page with "Katsokaamme, mitä tapahtuu, kun käyttäjä käyttää liukukytkintä. Liukukytkin näkee, että sen arvo on muuttunut ja lähettää [http://doc.qt.nokia.com/latest/qabstractsl...")
 
(No difference)

Latest revision as of 12:14, 26 September 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)
Let's look at what happens when the user operates the slider. The slider sees that its value has changed and emits the [http://doc.qt.nokia.com/latest/qabstractslider.html#valueChanged QAbstractSlider::valueChanged()] signal. That signal is connected both to the [http://doc.qt.nokia.com/latest/qlcdnumber.html#intValue-prop QLCDNumber::display()] slot of the [http://doc.qt.nokia.com/latest/qlcdnumber.html Qt::LCDNumber] and to the '''<tt>valueChanged()</tt>''' signal of the '''<tt>LCDRange</tt>'''.

Katsokaamme, mitä tapahtuu, kun käyttäjä käyttää liukukytkintä. Liukukytkin näkee, että sen arvo on muuttunut ja lähettää QAbstractSlider::valueChanged()-signaalin. Tuo signaali yhdistetään sekä QLCDNumber::display()-väliin Qt::LCDNumber-numerossa että valueChanged()-signaaliin LCDRange-komponentissa.