diff options
author | Dan Cape <dcape@qnx.com> | 2015-08-12 10:34:43 -0400 |
---|---|---|
committer | Dan Cape <dcape@qnx.com> | 2016-02-23 14:38:59 +0000 |
commit | 57a1224eb3003468b2851635e3ad4dae760c14b8 (patch) | |
tree | 113cb693ad00e133d001759ae6cafae550c689ad /src/plugins/platforms/cocoa/qcocoafiledialoghelper.mm | |
parent | 20af1ad7ef48e8f669e464fcea3151c7694fa90e (diff) |
PlaceHolderText doesn't appear in RTL
Since placeholderText was using the layoutDirection from the control,
it was always getting LTR since there was no text added yet to the
control. By calling the isRightToLeft function on the placeholderText,
we can determine if it is RTL or not and apply that when drawing the
placeholderText. A change was also made to use the proper elide mode
depending on if it is LTR or RTL.
Task-number: QTBUG-36499
Change-Id: Ic4c9cb9b41d9180185ed35492518152c1122839f
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@theqtcompany.com>
Diffstat (limited to 'src/plugins/platforms/cocoa/qcocoafiledialoghelper.mm')
0 files changed, 0 insertions, 0 deletions