aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/nativestyle/controls/DefaultTextArea.qml
Commit message (Collapse)AuthorAgeFilesLines
* Native style: let DefaultTextField have correct contentRect and sizeRichard Moe Gustavsen2020-06-041-2/+6
| | | | | | | | | | | Set implicitWidth/Height to be the same as in TextField.qml in the default style (and the same for TextArea). And fix the mac style to return correct values when calculating the minimum size. Combined, this should ensure that we improve how we take the content size into account when calculting the implicit size of a TextField (especially on macOS). Change-Id: I39bc8bb0f238dd29d5fe33fc32d888b82d020b0e Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Native style: remove insets, and use layoutRectRichard Moe Gustavsen2020-06-031-5/+0
| | | | | | | | | | | | | | | We have so far used insets to ensure that the controls end up aligned inside a layout. But this is most likely wrong, since insets in QtQuickControls2 is supposed to only move the background, and not the whole control (including contents, which we used to move as well in Button.qml). So after looking at this one more time, I think the right solution is to leave insets alone, and instead provide a layoutRect from QQuickStyleItem. This rect can later be used by layouts to align the controls correctly. Change-Id: I3cd97d34ca6f629dedef3e2afd2ae9e257f9df22 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Native style: add TextAreaRichard Moe Gustavsen2020-05-281-0/+90
Change-Id: Ie8a4ea4ff232fa5aa3064b56aa7ba13f8522590d Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>