kate: expose context actions as Q_INVOKABLE for cross-plugin triggering
Make the six context-menu action methods (askAboutFile, explainSelection, submitSelectionPrompt, sendVerbatim, reviewDiff, startSession) public Q_INVOKABLE so sibling plugins can trigger them by name via QMetaObject::invokeMethod. The Deft radial menu uses this to offer an 'Ollie' submenu when this plugin is enabled. No behaviour change for existing callers.
This commit is contained in:
parent
a4c659f591
commit
0b09461dea
|
|
@ -65,14 +65,19 @@ private slots:
|
|||
void onWidgetAdded(QWidget *widget);
|
||||
void onGitTreeContextMenu(const QPoint &pos);
|
||||
|
||||
public:
|
||||
// Context actions, exposed for meta-invocation so sibling plugins (e.g. the
|
||||
// Deft radial menu) can trigger them by name via QMetaObject::invokeMethod
|
||||
// when the Ollie plugin is enabled.
|
||||
Q_INVOKABLE void askAboutFile();
|
||||
Q_INVOKABLE void explainSelection();
|
||||
Q_INVOKABLE void submitSelectionPrompt(const QString &action);
|
||||
Q_INVOKABLE void sendVerbatim();
|
||||
Q_INVOKABLE void reviewDiff();
|
||||
Q_INVOKABLE void startSession();
|
||||
|
||||
private:
|
||||
// Actions
|
||||
void askAboutFile();
|
||||
void explainSelection();
|
||||
void submitSelectionPrompt(const QString &action);
|
||||
void sendVerbatim();
|
||||
void reviewDiff();
|
||||
void startSession();
|
||||
void reviewStagedChanges();
|
||||
void reviewUnstagedChanges();
|
||||
void askAboutGitSelection();
|
||||
|
|
|
|||
Loading…
Reference in New Issue