Translations:Development/Tutorials/Qt4 Ruby Tutorial/Chapter 2/20/ru: Difference between revisions

From KDE TechBase
(Created page with "Мы выбрали другой рамер кнопки, поскольку текст будет немного короче, чем "Hello world!". Также можно бы...")
 
(No difference)

Latest revision as of 17:01, 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 2)
We've chosen another size for the button since the text is a bit shorter than "Hello world!". We could also have used [http://doc.qt.nokia.com/latest/qfontmetrics.html Qt::FontMetrics] to set right size, or let [http://doc.qt.nokia.com/latest/qpushbutton.html Qt::PushButton] choose a reasonable default.

Мы выбрали другой рамер кнопки, поскольку текст будет немного короче, чем "Hello world!". Также можно было воспользоваться Qt::FontMetrics, чтобы установить правильный размер, или позволить Qt::PushButton самостоятельно выбрать размер кнопки.