digiKam
|
Signals | |
void | activated (const QModelIndex &index) |
void | hovered (const QString &text) |
void | openUrl (const QUrl &url) |
Public Member Functions | |
BookmarksMenu (BookmarksManager *const mngr, QWidget *const parent=nullptr) | |
int | firstSeparator () const |
int | hoverRole () const |
QAction * | makeAction (const QIcon &icon, const QString &text, QObject *const parent) |
int | maxRows () const |
QAbstractItemModel * | model () const |
QModelIndex | rootIndex () const |
int | separatorRole () const |
void | setFirstSeparator (int offset) |
void | setHoverRole (int role) |
void | setInitialActions (const QList< QAction * > &actions) |
void | setMaxRows (int max) |
void | setModel (QAbstractItemModel *model) |
void | setRootIndex (const QModelIndex &index) |
void | setSeparatorRole (int role) |
~BookmarksMenu () override | |
Protected Member Functions | |
void | createMenu (const QModelIndex &parent, int max, QMenu *parentMenu=nullptr, QMenu *menu=nullptr) |
put all of the children of parent into menu up to max More... | |
virtual void | postPopulated () |
add any actions after the tree More... | |
bool | prePopulated () override |
add any actions before the tree, return true if any actions are added. More... | |
Menu that is dynamically populated from the bookmarks
|
explicit |
|
override |
|
signalinherited |
Referenced by BookmarksMenu().
|
protectedinherited |
put all of the children of parent into menu up to max
References Digikam::ModelMenu::hovered(), and Digikam::ModelMenu::makeAction().
Referenced by prePopulated().
|
inherited |
|
signalinherited |
Referenced by Digikam::ModelMenu::createMenu().
|
inherited |
|
inherited |
Referenced by Digikam::ModelMenu::createMenu().
|
inherited |
|
inherited |
Referenced by Digikam::ModelMenu::setModel().
|
signal |
|
protectedvirtualinherited |
add any actions after the tree
|
overrideprotectedvirtual |
add any actions before the tree, return true if any actions are added.
Reimplemented from Digikam::ModelMenu.
References Digikam::ModelMenu::createMenu(), Digikam::ModelMenu::rootIndex(), Digikam::ModelMenu::setModel(), and Digikam::ModelMenu::setRootIndex().
|
inherited |
Referenced by prePopulated().
|
inherited |
|
inherited |
|
inherited |
Referenced by BookmarksMenu().
void Digikam::BookmarksMenu::setInitialActions | ( | const QList< QAction * > & | actions | ) |
|
inherited |
Referenced by BookmarksMenu().
|
inherited |
References Digikam::ModelMenu::model().
Referenced by prePopulated().
|
inherited |
Referenced by prePopulated().
|
inherited |
Referenced by BookmarksMenu().