Android: add support for Android.R.attr.state_accelerated

This lets the Qt Quick Controls Android Style choose the appropriate
window background that is meant to be used with HW acceleration.

Change-Id: I65d6f9319d77364637460e7c4ebb7ea3f4d53f12
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Reviewed-by: BogDan Vatra <bogdan@kde.org>
bb10
J-P Nurmi 2014-08-05 18:20:06 +02:00 committed by BogDan Vatra
parent 7f78d547ca
commit c793839681
1 changed files with 3 additions and 3 deletions

View File

@ -451,9 +451,9 @@ public class ExtractStyle {
final int [] DrawableStates ={android.R.attr.state_active, android.R.attr.state_checked
, android.R.attr.state_enabled, android.R.attr.state_focused
, android.R.attr.state_pressed, android.R.attr.state_selected
, android.R.attr.state_window_focused, 16908288, 16843597, 16843518};
final String[] DrawableStatesLabels = {"active", "checked", "enabled", "focused", "pressed", "selected", "window_focused", "background", "multiline", "activated"};
final String[] DisableDrawableStatesLabels = {"inactive", "unchecked", "disabled", "not_focused", "no_pressed", "unselected", "window_not_focused", "background", "multiline", "activated"};
, android.R.attr.state_window_focused, 16908288, 16843597, 16843518, 16843547};
final String[] DrawableStatesLabels = {"active", "checked", "enabled", "focused", "pressed", "selected", "window_focused", "background", "multiline", "activated", "accelerated"};
final String[] DisableDrawableStatesLabels = {"inactive", "unchecked", "disabled", "not_focused", "no_pressed", "unselected", "window_not_focused", "background", "multiline", "activated", "accelerated"};
String getFileName(String file, String[] states)
{