TextEdit: add support for padding
authorJ-P Nurmi <jpnurmi@theqtcompany.com>
Wed, 4 Feb 2015 17:00:53 +0000 (18:00 +0100)
committerJ-P Nurmi <jpnurmi@theqtcompany.com>
Thu, 5 Mar 2015 22:45:19 +0000 (22:45 +0000)
commite157fcba9e515e63410d6b96b35c589182a4d5fa
treec78c668ed33afbf20829cb0132ca9e3df77b85f6
parentb419ca92bef624893fa46559186b207905bc45e0
TextEdit: add support for padding

This makes it possible for TextArea to inherit TextEdit, reserve
space for the decoration, and set the desired property defaults
without having to create dozens of property aliases.

[ChangeLog][QtQuick][TextEdit] Added padding, leftPadding, topPadding,
rightPadding and bottomPadding properties.

Task-number: QTBUG-41559
Change-Id: I4fa22f86e6151524a63b2b862f17bc9d6a713142
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
src/quick/items/qquicktextedit.cpp
src/quick/items/qquicktextedit_p.h
src/quick/items/qquicktextedit_p_p.h
tests/auto/quick/qquicktextedit/data/padding.qml [new file with mode: 0644]
tests/auto/quick/qquicktextedit/tst_qquicktextedit.cpp