4#ifndef NEWACTIONDIALOG_P_H
5#define NEWACTIONDIALOG_P_H
20#include <QtWidgets/qdialog.h>
21#include <QtGui/qkeysequence.h>
22#include <QtCore/qcompare.h>
29 class NewActionDialog;
83 void onEditObjectNameTextEdited(
const QString &text);
85 void slotEditToolTip();
86 void slotResetKeySequence();
89 Ui::NewActionDialog *m_ui;
90 ActionEditor *m_actionEditor;
91 bool m_autoUpdateObjectName;
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)
QString actionText() const
void setActionData(const ActionData &d)
~NewActionDialog() override
QString actionName() const
ActionData actionData() const
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
unsigned compare(const ActionData &rhs) const
PropertySheetIconValue icon
PropertySheetKeySequenceValue keysequence
PropertySheetFlagValue menuRole
friend bool comparesEqual(const ActionData &lhs, const ActionData &rhs) noexcept