It seems like the browser you are using has JavaScript disabled. As a result, the site will not function properly. We really want you to enable it so you may experience our site as we intended it. If you have no idea what we are talking about or if you need help, visit http://www.enable-javascript.com×
This website uses cookies. By continuing to browse this site you are agreeing to our use of cookies. Find out more on our cookie page.×

Oops, it seems like you're using an old browser that we do not fully support. If you're able to, please upgrade your browser here.×
This website uses cookies. By continuing to browse this site you are agreeing to our use of cookies. Find out more on our cookie page.×

DataModelDecorator

To link against this class, add the following line to your .pro file: LIBS += -lbbcascadesdatamanager

DataModelDecorator is used to decorate the DataModel before it is used by ListView.

This base class delegates all DataModel method calls to the model being decorated. It also connects the corresponding DataModel Q_SIGNALS to the model being decorated.

This class can be useful when reinterpreting data before being used by ListView. For example, the itemType() method can return custom types depending on the contents of the data or the data() method can be used to add custom data columns based on existing data.

DataModelDecorator is also used to insert data. The inserted data can be generated from the existing data being decorated, or anything that does not have to be related to the model being decorated.

voidsetModel (

If the model has no parent, DataModelDecorator takes ownership of it and sets itself as parent to it. Any previously set DataModel is unaffected by this call, its parent won't change, and it won't be deleted as a result of calling setModel().

Typical examples of when this signal is emitted: data has been sorted (so that many items have changed places), the DataModel has been cleared (all items have been removed), or a batch of items has been added.

1. Choose your focus

This is the focus controller. Use this controller to choose your primary development approach (Cascades or Core).

By selecting a focus, you get to decide what content should be front and center on the site.

2. Download the tools

Before you start developing, you'll need to visit the Downloads tab. Here you'll find downloads for the BlackBerry 10 Native SDK, BlackBerry 10 Device Simulator, and some other useful tools.

3. Try the sample apps

Now featuring a filter control, the Sample apps tab allows you to search for samples by name or by feature.

Select either the Core or Cascades check boxes to display the samples relevant to your focus.

4. Educate yourself

The Documentation tab contains tons of examples, tutorials, and best practices to guide you along the path towards building an awesome app.

The documentation for your preferred focus always appears at the top of the left-hand navigation, but you can still access the rest of the documentation at the bottom.

5. Start developing

The Reference tab is where you'll find essential details about how to use our APIs.

You can use the left-hand navigation to choose how you would like to browse the reference: by module, by topic, or alphabetically. If you have an idea of what you are looking for, start typing it in the Filter box.