FocusRetentionPolicy

Since: BlackBerry 10.0.0

#include <bb/cascades/FocusRetentionPolicy>

Specifies the conditions under which a control can lose focus when the user interacts with other controls.


Overview

Public Types Index

enum Type

Default (0 << 0), LoseOnScroll (1 << 0), LoseToFocusable (1 << 1), LoseToNonFocusable (1 << 2)

Public Functions Index

Q_DECLARE_FLAGS (Types, Type)

Public Types

Type

The available focus retention policies for a control.

Since:

BlackBerry 10.0.0

Default (0 << 0)

The default policy preferred by the Control.

LoseOnScroll (1 << 0)

The control loses focus when the user scrolls within a scrollable control, like a ListView or ScrollView.

Since:

BlackBerry 10.0.0

LoseToFocusable (1 << 1)

The control loses focus if another focusable control is requesting focus.

Since:

BlackBerry 10.0.0

LoseToNonFocusable (1 << 2)

The control loses focus if the user touches a non-focusable control.

Since:

BlackBerry 10.0.0

Public Functions

Q_DECLARE_FLAGS (

Defines combinations of focus retention policies.

This flag overrides the default FocusRetentionPolicy for a control.

Since:

BlackBerry 10.0.0

Last modified: 2014-09-30



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus