items.favourite_items#
Classes responsible for viewing and editing items marked as favourites.
Classes:
|
The model responsible for displaying the saved favourites. |
|
The widget responsible for showing all the items marked as favourites. |
|
Context menu associated with |
- class bookmarks.items.favourite_items.FavouriteItemModel(*args, **kwargs)[source]#
Bases:
FileItemModel
The model responsible for displaying the saved favourites.
Methods:
The custom dictionary key used to save filter settings to the user settings file.
init_data
(**kwargs)Function wrapper.
We're using the saved keys to find and return the DirEntries corresponding to the saved favourites.
The model's parent folder path segments.
task
()The model's associated task.
- filter_setting_dict_key()[source]#
The custom dictionary key used to save filter settings to the user settings file.
- init_data(**kwargs)#
Function wrapper.
- item_generator()[source]#
We’re using the saved keys to find and return the DirEntries corresponding to the saved favourites.
- class bookmarks.items.favourite_items.FavouriteItemView(icon='favourite', parent=None)[source]#
Bases:
FileItemView
The widget responsible for showing all the items marked as favourites.
Classes:
alias of
FavouriteItemViewContextMenu
alias of
FavouriteItemViewDelegate
Methods:
dragEnterEvent
(event)Event handler.
dragLeaveEvent
(event)Paint event handler.
dragMoveEvent
(event)Event handler.
dropEvent
(event)Event handler.
Make sure to only reset the model when the mouse is no longer pressed.
Returns an informative hint text.
Returns the model class associated with this view.
Starts/reset the timer responsible for reloading the list of favourite items.
- ContextMenu#
alias of
FavouriteItemViewContextMenu
Methods:setup
()Creates the context menu.
- Delegate#
alias of
FavouriteItemViewDelegate
Attributes:fallback_thumb
The item's default thumbnail image
- class bookmarks.items.favourite_items.FavouriteItemViewContextMenu(index, parent=None)[source]#
Bases:
BaseContextMenu
Context menu associated with
FavouriteItemView
.Methods:
setup
()Creates the context menu.