Darwin: set SH_BlinkCursorWhenTextSelected to false on Darwin

When text is selected on e.g iOS or OS X, the cursor should not
blink (or be visible), regardless of style.

Note that SH_BlinkCursorWhenTextSelected is actually
implemented to mean "hide cursor when text selected"
in e.g QWidgetTextControl. If this is a bug or not
is hard to say, but it is anyway the desired behavior
on Apple platforms.

Change-Id: I541dabbe1945c266107ba39e3adb006bec0258bf
Reviewed-by: Jan Arve Sæther <jan-arve.saether@theqtcompany.com>
This commit is contained in:
Richard Moe Gustavsen 2016-04-19 13:01:12 +02:00
parent 1b5bc9723c
commit 2a740b9cf5

View File

@ -4974,7 +4974,11 @@ int QCommonStyle::styleHint(StyleHint sh, const QStyleOption *opt, const QWidget
break; break;
case SH_BlinkCursorWhenTextSelected: case SH_BlinkCursorWhenTextSelected:
#if defined(Q_OS_DARWIN)
ret = 0;
#else
ret = 1; ret = 1;
#endif
break; break;
case SH_Table_GridLineColor: case SH_Table_GridLineColor: