summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2020-02-05 14:13:28 +0100
committerhjk <hjk@qt.io>2020-02-05 14:21:25 +0000
commit515baaa5e7c9e355acc8a665a79f778b5b41fb6a (patch)
treeea1056ef5c0e670738dfc94b0171b55a57f6564f
parent4ad4871fdc8dccf3aeecc4b55c57cb1468667d48 (diff)
downloadqt-creator-515baaa5e7c9e355acc8a665a79f778b5b41fb6a.tar.gz
TextEditor: Remove unused TextEditorActionHandlerPrivate::q
Change-Id: I2f8c86c21e2879e36a24d645ec3670e3bcec7319 Reviewed-by: David Schulz <david.schulz@qt.io>
-rw-r--r--src/plugins/texteditor/texteditoractionhandler.cpp14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/plugins/texteditor/texteditoractionhandler.cpp b/src/plugins/texteditor/texteditoractionhandler.cpp
index 46e6801f4d..8508f9afd8 100644
--- a/src/plugins/texteditor/texteditoractionhandler.cpp
+++ b/src/plugins/texteditor/texteditoractionhandler.cpp
@@ -52,11 +52,9 @@ namespace Internal {
class TextEditorActionHandlerPrivate : public QObject
{
Q_DECLARE_TR_FUNCTIONS(TextEditor::Internal::TextEditorActionHandler)
+
public:
- TextEditorActionHandlerPrivate(TextEditorActionHandler *parent,
- Core::Id editorId,
- Core::Id contextId,
- uint optionalActions);
+ TextEditorActionHandlerPrivate(Core::Id editorId, Core::Id contextId, uint optionalActions);
QAction *registerActionHelper(Core::Id id, bool scriptable, const QString &title,
const QKeySequence &keySequence, Core::Id menueGroup,
@@ -121,7 +119,6 @@ public:
void updateCurrentEditor(Core::IEditor *editor);
public:
- TextEditorActionHandler *q = nullptr;
TextEditorActionHandler::TextEditorWidgetResolver m_findTextWidget;
QAction *m_undoAction = nullptr;
QAction *m_redoAction = nullptr;
@@ -199,9 +196,8 @@ static TextEditorWidget *castWidgetToTextEditorWidget(Core::IEditor *editor)
}
TextEditorActionHandlerPrivate::TextEditorActionHandlerPrivate
- (TextEditorActionHandler *parent, Core::Id editorId, Core::Id contextId, uint optionalActions)
- : q(parent)
- , m_findTextWidget(castWidgetToTextEditorWidget)
+ (Core::Id editorId, Core::Id contextId, uint optionalActions)
+ : m_findTextWidget(castWidgetToTextEditorWidget)
, m_optionalActions(optionalActions)
, m_editorId(editorId)
, m_contextId(contextId)
@@ -595,7 +591,7 @@ void TextEditorActionHandlerPrivate::updateCurrentEditor(Core::IEditor *editor)
TextEditorActionHandler::TextEditorActionHandler(QObject *parent, Core::Id editorId,
Core::Id contextId, uint optionalActions)
- : QObject(parent), d(new Internal::TextEditorActionHandlerPrivate(this, editorId, contextId,
+ : QObject(parent), d(new Internal::TextEditorActionHandlerPrivate(editorId, contextId,
optionalActions))
{
}