items#

Definitions of bookmark, asset, file item views and models.

Each view derives from views.ThreadedItemView, a heavily customized QListView widget. The views are rendered by delegate.ItemDelegate and data is served by models.ItemModel instances.

See the item specific submodules for more information:

To customize the items served by a model take a look at models.ItemModel.item_generator() and models.ItemModel.init_data() methods.

The common module offers shortcuts for accessing item views and models:

1from bookmarks import common
2
3widget = common.widget(common.BookmarkTab)
4model = common.model(common.BookmarkTab)
5source_model = common.source_model(common.BookmarkTab)