![]() |
digiKam Developer Documentation
Professional Photo Management with the Power of Open Source
|
Menu that is dynamically populated from the bookmarks.
Signals | |
void | openUrl (const QUrl &url) |
![]() | |
void | activated (const QModelIndex &index) |
void | hoveredText (const QString &text) |
Public Member Functions | |
BookmarksMenu (BookmarksManager *const mngr, QWidget *const parent=nullptr) | |
void | setInitialActions (const QList< QAction * > &actions) |
![]() | |
ModelMenu (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 | setMaxRows (int max) |
void | setModel (QAbstractItemModel *model) |
void | setRootIndex (const QModelIndex &index) |
void | setSeparatorRole (int role) |
Protected Member Functions | |
bool | prePopulated () override |
add any actions before the tree, return true if any actions are added. | |
![]() | |
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 | |
virtual void | postPopulated () |
add any actions after the tree | |
|
overrideprotectedvirtual |
Reimplemented from Digikam::ModelMenu.