24#include "Gui/Utils/Widgets/WidgetTemplate.h"
25#include "Utils/Pimpl.h"
31 class PreferenceAction;
32 using ContextMenuEntries = uint16_t;
48 EntrySaveAs = (1 << 4),
49 EntryRename = (1 << 5),
50 EntryDelete = (1 << 6),
52 EntryDefault = (1 << 8),
75 void registerAction(QAction* action);
78 [[nodiscard]] ContextMenuEntries entries()
const;
81 void showEvent(QShowEvent* e)
override;
82 void languageChanged()
override;
83 void skinChanged()
override;
86 void showActions(ContextMenuEntries entries);
87 void showAction(ContextMenu::Entry entry,
bool visible);
A PreferenceAction can be added to each widget supporting QActions. When triggering this action,...
Definition PreferenceAction.h:40