digiKam
|
Public Types | |
enum | Roles { TypeRole = Qt::UserRole + 1 , UrlRole = Qt::UserRole + 2 , UrlStringRole = Qt::UserRole + 3 , SeparatorRole = Qt::UserRole + 4 , DateAddedRole = Qt::UserRole + 5 } |
Public Slots | |
void | entryAdded (BookmarkNode *item) |
void | entryChanged (BookmarkNode *item) |
void | entryRemoved (BookmarkNode *parent, int row, BookmarkNode *item) |
Public Member Functions | |
BookmarksManager * | bookmarksManager () const |
BookmarksModel (BookmarksManager *const mngr, QObject *const parent=nullptr) | |
int | columnCount (const QModelIndex &parent=QModelIndex()) const override |
QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const override |
bool | dropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) override |
Qt::ItemFlags | flags (const QModelIndex &index) const override |
bool | hasChildren (const QModelIndex &parent=QModelIndex()) const override |
QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override |
QModelIndex | index (BookmarkNode *node) const |
QModelIndex | index (int, int, const QModelIndex &=QModelIndex()) const override |
QMimeData * | mimeData (const QModelIndexList &indexes) const override |
QStringList | mimeTypes () const override |
BookmarkNode * | node (const QModelIndex &index) const |
QModelIndex | parent (const QModelIndex &index=QModelIndex()) const override |
bool | removeRows (int row, int count, const QModelIndex &parent=QModelIndex()) override |
int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override |
Qt::DropActions | supportedDropActions () const override |
~BookmarksModel () override | |
BookmarksModel is a QAbstractItemModel wrapper around the BookmarkManager
|
explicit |
References entryAdded(), entryChanged(), and entryRemoved().
|
override |
BookmarksManager * Digikam::BookmarksModel::bookmarksManager | ( | ) | const |
|
override |
|
override |
References Digikam::BookmarkNode::Bookmark, Digikam::BookmarkNode::dateAdded, DateAddedRole, Digikam::BookmarkNode::desc, index(), node(), Digikam::BookmarkNode::Separator, SeparatorRole, Digikam::BookmarkNode::title, Digikam::BookmarkNode::type(), TypeRole, Digikam::BookmarkNode::url, UrlRole, and UrlStringRole.
Referenced by dropMimeData(), and mimeData().
|
override |
|
slot |
References Digikam::BookmarkNode::children(), index(), Digikam::BookmarkNode::parent(), and parent().
Referenced by BookmarksModel().
|
slot |
References index().
Referenced by BookmarksModel().
|
slot |
References index(), and parent().
Referenced by BookmarksModel().
|
override |
References hasChildren(), index(), node(), Digikam::BookmarkNode::RootFolder, Digikam::BookmarkNode::Separator, and Digikam::BookmarkNode::type().
Referenced by setData().
|
override |
References Digikam::BookmarkNode::Folder, node(), parent(), Digikam::BookmarkNode::RootFolder, and Digikam::BookmarkNode::type().
Referenced by flags().
|
override |
QModelIndex Digikam::BookmarksModel::index | ( | BookmarkNode * | node | ) | const |
References node(), Digikam::BookmarkNode::parent(), and parent().
|
override |
References Digikam::BookmarkNode::children(), columnCount(), node(), parent(), and rowCount().
Referenced by Digikam::AddBookmarkDialog::AddBookmarkDialog(), data(), entryAdded(), entryChanged(), entryRemoved(), flags(), mimeData(), node(), parent(), and setData().
|
override |
References data(), index(), node(), and Digikam::XbelWriter::write().
|
override |
BookmarkNode * Digikam::BookmarksModel::node | ( | const QModelIndex & | index | ) | const |
References index().
Referenced by data(), dropMimeData(), flags(), hasChildren(), index(), mimeData(), parent(), removeRows(), and setData().
|
override |
References Digikam::BookmarkNode::children(), index(), node(), and Digikam::BookmarkNode::parent().
Referenced by columnCount(), dropMimeData(), entryAdded(), entryRemoved(), hasChildren(), index(), removeRows(), and rowCount().
|
override |
References Digikam::BookmarkNode::children(), node(), parent(), and rowCount().
|
override |
References Digikam::BookmarkNode::children(), and parent().
Referenced by index(), and removeRows().
|
override |
|
override |
References Digikam::CopyAction, and Digikam::MoveAction.