diff options
author | hjk <hjk@qt.io> | 2022-08-03 15:25:17 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2022-08-04 12:58:12 +0000 |
commit | c68f901aa893f0a7254251e0fb940e74b76fc0f7 (patch) | |
tree | e7fb90d204656ec5d8272d82bd11385740bdb91a /src/plugins/texteditor/textmark.h | |
parent | d3ea90ec208d6e9d450ff3054fa2438c141e0eb0 (diff) |
TextMark: Delay context menu tooltip action creation
Change-Id: I25bad9a774a6d95162251c8f0512eb3f8439d9ae
Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/texteditor/textmark.h')
-rw-r--r-- | src/plugins/texteditor/textmark.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/texteditor/textmark.h b/src/plugins/texteditor/textmark.h index 6184861ce9..d191ee07a7 100644 --- a/src/plugins/texteditor/textmark.h +++ b/src/plugins/texteditor/textmark.h @@ -133,6 +133,7 @@ public: QVector<QAction *> actions() const; void setActions(const QVector<QAction *> &actions); // Takes ownership + void setActionsProvider(const std::function<QList<QAction *>()> &actionsProvider); // Takes ownership protected: void setSettingsPage(Utils::Id settingsPage); @@ -154,8 +155,9 @@ private: QString m_toolTip; std::function<QString()> m_toolTipProvider; QString m_defaultToolTip; - QVector<QAction *> m_actions; - QAction *m_settingsAction = nullptr; + QVector<QAction *> m_actions; // FIXME Remove in master + std::function<QList<QAction *>()> m_actionsProvider; + Utils::Id m_settingsPage; }; } // namespace TextEditor |