/*************************************************************************** * Copyright (C) 2013 by Dawit Alemayehu #include #include /** * A QAction that manages the delete based on the current state of * the Shift key or the parameter passed to update. * * This class expects the presence of both the "move_to_trash" and "delete" * actions in @ref collection. */ class DOLPHIN_EXPORT DolphinRemoveAction : public QAction { Q_OBJECT public: DolphinRemoveAction(QObject* parent, KActionCollection* collection); /** * Updates this action key based on the state of the Shift key. */ void update(); private Q_SLOTS: void slotRemoveActionTriggered(); private: QPointer m_collection; QPointer m_action; }; #endif