15#ifndef ACTIONREPOSITORY_H
16#define ACTIONREPOSITORY_H
19#include <QtCore/qmimedata.h>
20#include <QtGui/qstandarditemmodel.h>
21#include <QtWidgets/qtreeview.h>
22#include <QtWidgets/qlistview.h>
23#include <QtWidgets/qstackedwidget.h>
24#include <QtGui/qicon.h>
30class QDesignerFormEditorInterface;
35class PropertySheetKeySequenceValue;
111 void dropEvent(QDropEvent *event)
override;
114 void startDrag(Qt::DropActions supportedActions)
override;
120 ActionModel *m_model;
145 void dropEvent(QDropEvent *event)
override;
148 void startDrag(Qt::DropActions supportedActions)
override;
154 ActionModel *m_model;
167 void initialize(QDesignerFormEditorInterface *core) { m_model->initialize(core); }
196 void selectionChanged(
const QItemSelection& selected,
const QItemSelection& deselected);
203 ActionModel *m_model;
static constexpr auto toolTipPropertyC
static constexpr auto iconPropertyC
static constexpr auto textPropertyC
static constexpr auto shortcutPropertyC
static constexpr auto menuRolePropertyC
static constexpr auto actionEditorViewModeKey
static constexpr auto objectNamePropertyC
static constexpr auto checkablePropertyC
void drawFocus(QPainter *, const QStyleOptionViewItem &, const QRect &) const override
Renders the region within the rectangle specified by rect, indicating that it has the focus,...
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override
This pure abstract function must be reimplemented if you want to provide custom rendering.
ActionGroupDelegate(QObject *parent)
void dragEnterEvent(QDragEnterEvent *event) override
void dropEvent(QDropEvent *event) override
QAction * currentAction() const
void focusInEvent(QFocusEvent *event) override
void contextMenuEvent(QContextMenuEvent *event) override
void startDrag(Qt::DropActions supportedActions) override
void currentActionChanged(QAction *action)
void dragMoveEvent(QDragMoveEvent *event) override
void actionActivated(QAction *action)
void dropEvent(QDropEvent *event) override
void dragMoveEvent(QDragMoveEvent *event) override
QAction * currentAction() const
void actionActivated(QAction *action, int column)
void focusInEvent(QFocusEvent *event) override
void startDrag(Qt::DropActions supportedActions) override
void contextMenuEvent(QContextMenuEvent *event) override
void currentActionChanged(QAction *action)
void dragEnterEvent(QDragEnterEvent *event) override
ActionList selectedActions() const
void setSelectionMode(QAbstractItemView::SelectionMode sm)
QAction * currentAction() const
QAbstractItemView::SelectionMode selectionMode() const
void selectAction(QAction *a)
void currentChanged(QAction *action)
void resourceImageDropped(const QString &data, QAction *action)
QItemSelection selection() const
void setCurrentIndex(const QModelIndex &index)
void initialize(QDesignerFormEditorInterface *core)
ActionModel * model() const
void activated(QAction *action, int column)
Combined button and popup list for selecting options.
Auxiliary methods to store/retrieve settings.
static QDesignerFormWindowCommand * setKeySequencePropertyCommand(const PropertySheetKeySequenceValue &ks, QAction *action, QDesignerFormWindowInterface *fw)
static CharacterCategory category(QChar c)
static QDesignerFormWindowCommand * setIconPropertyCommand(const PropertySheetIconValue &newIcon, QAction *action, QDesignerFormWindowInterface *fw)
static void setInitialProperty(QDesignerPropertySheetExtension *sheet, const QString &name, const QVariant &value)
static void refreshIconPropertyChanged(const QAction *action, QDesignerPropertySheetExtension *sheet)
static QString underscore(QString text)
static QString textPropertyValue(const QDesignerPropertySheetExtension *sheet, const QString &name)
static QString camelCase(const QString &text)
QDesignerFormWindowCommand * setPropertyCommand(const QString &name, T value, T defaultValue, QObject *o, QDesignerFormWindowInterface *fw)
#define QDESIGNER_SHARED_EXPORT