aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/texteditor/markdowneditor.h
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2024-01-24 15:07:07 +0100
committerEike Ziller <eike.ziller@qt.io>2024-01-26 11:31:57 +0000
commitf22fa5275e9c4752ab863ae7ffcaa9ae3786864a (patch)
tree962ffcd8344b796808f40e9b219b2a6e12d6c4c3 /src/plugins/texteditor/markdowneditor.h
parentd9404208dae192f318d150df4aed502f0a331c76 (diff)
Use ActionBuilder for Markdown editor
Also add method that sets the ParameterAction for the context action. That is an alternative to "binding" the context action, and is useful in this case, since we do not have a QObject that we can use as a parent for the constructor that creates the ParameterAction from scratch. Change-Id: I6ba05208d33460cfa2df9ce8247f7ca30624c22f Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/texteditor/markdowneditor.h')
-rw-r--r--src/plugins/texteditor/markdowneditor.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/plugins/texteditor/markdowneditor.h b/src/plugins/texteditor/markdowneditor.h
index 92fc18a8b88..54194342606 100644
--- a/src/plugins/texteditor/markdowneditor.h
+++ b/src/plugins/texteditor/markdowneditor.h
@@ -7,7 +7,7 @@
#include <texteditor/texteditoractionhandler.h>
-#include <QAction>
+#include <utils/parameteraction.h>
namespace TextEditor::Internal {
@@ -18,13 +18,13 @@ public:
private:
TextEditor::TextEditorActionHandler m_actionHandler;
- QAction m_emphasisAction;
- QAction m_strongAction;
- QAction m_inlineCodeAction;
- QAction m_linkAction;
- QAction m_toggleEditorAction;
- QAction m_togglePreviewAction;
- QAction m_swapAction;
+ Utils::ParameterAction m_emphasisAction;
+ Utils::ParameterAction m_strongAction;
+ Utils::ParameterAction m_inlineCodeAction;
+ Utils::ParameterAction m_linkAction;
+ Utils::ParameterAction m_toggleEditorAction;
+ Utils::ParameterAction m_togglePreviewAction;
+ Utils::ParameterAction m_swapAction;
};
} // TextEditor::Internal