25 #ifndef DIGIKAM_CONTEXT_MENU_HELPER_P_H
26 #define DIGIKAM_CONTEXT_MENU_HELPER_P_H
33 #include <QApplication>
48 # pragma GCC diagnostic push
49 # pragma GCC diagnostic ignored "-Wdeprecated-declarations"
52 #if defined(Q_CC_CLANG)
53 # pragma clang diagnostic push
54 # pragma clang diagnostic ignored "-Wmismatched-tags"
55 # pragma clang diagnostic ignored "-Wdeprecated-declarations"
58 #include <kactioncollection.h>
59 #include <klocalizedstring.h>
62 # include <kopenwithdialog.h>
67 # pragma GCC diagnostic pop
70 #if defined(Q_CC_CLANG)
71 # pragma clang diagnostic pop
102 #ifdef HAVE_AKONADICONTACT
107 # include <windows.h>
108 # include <shellapi.h>
119 : gotoAlbumAction (nullptr),
120 gotoDateAction (nullptr),
121 setThumbnailAction (nullptr),
122 imageFilterModel (nullptr),
123 albumModel (nullptr),
125 stdActionCollection (nullptr),
153 QAction* action =
nullptr;
155 if ((action = qobject_cast<QAction*>(sender)))
162 return QModelIndex();
167 QAction*
const mainAction = stdActionCollection->action(name);
174 QAction*
const action =
new QAction(mainAction->icon(), mainAction->text(), q);
175 action->setShortcut(mainAction->shortcut());
176 action->setToolTip(mainAction->toolTip());
QModelIndex indexForAlbum(Album *album) const
Definition: abstractalbummodel.cpp:361
Definition: abstractalbummodel.h:358
Definition: albumpointer.h:48
Abstract base class for all album types.
Definition: album.h:67
Definition: itemfiltermodel.h:125
Definition: datefolderview.cpp:43