StocQt demo: Fix text layout issues
authorTopi Reinio <topi.reinio@digia.com>
Wed, 15 Jul 2015 10:18:57 +0000 (12:18 +0200)
committerTopi Reiniƶ <topi.reinio@digia.com>
Thu, 16 Jul 2015 10:49:10 +0000 (10:49 +0000)
commite1141c858c397d2c27e4a6681b9300f65cf396f2
tree09dd3221c609111b26799d87e4b2f833d08ec4e9
parent2d8bf9eed72cff041a235160fe14a7f424475610
StocQt demo: Fix text layout issues

The precision of the data received from the stock feed has changed,
and so we must round it before assigning to Text objects to avoid
overflow.

This change also rearranges the layout of the StockInfo element,
using Flow and proper word wrap and eliding for long company names
to improve the look of the stock info view on narrow screens.

Change-Id: I53aaefd1cdc984fcceae9874e5ca2f66b47a190d
Task-number: QTBUG-47207
Reviewed-by: Venugopal Shivashankar <venugopal.shivashankar@digia.com>
examples/quick/demos/stocqt/content/StockInfo.qml
examples/quick/demos/stocqt/content/StockListView.qml