Fix TextEdit::lineCount to update as appropriate
authorJ-P Nurmi <jpnurmi@digia.com>
Thu, 6 Mar 2014 12:37:41 +0000 (13:37 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 10 Mar 2014 14:11:51 +0000 (15:11 +0100)
commitafc10fe7bbe683d4107cc6439c783b4604320414
tree2222bb110e0d12023609e7660e6291a8dae6bb9a
parent50f8133a1a1eb434abafcca5335be706d4f0b694
Fix TextEdit::lineCount to update as appropriate

The total line count needs to be updated when geometry,
document size or wrapping mode changes.

Task-number: QTBUG-37263
Change-Id: If58a2f77022475e8bcb7cca0f2a091ee837b39a5
Reviewed-by: Pierre Rossi <pierre.rossi@gmail.com>
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
src/quick/items/qquicktextedit.cpp
tests/auto/quick/qquicktextedit/tst_qquicktextedit.cpp