forked from qt-creator/qt-creator
TextEditor: Remove unused TextEditorActionHandlerPrivate::q
Change-Id: I2f8c86c21e2879e36a24d645ec3670e3bcec7319 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -52,11 +52,9 @@ namespace Internal {
|
|||||||
class TextEditorActionHandlerPrivate : public QObject
|
class TextEditorActionHandlerPrivate : public QObject
|
||||||
{
|
{
|
||||||
Q_DECLARE_TR_FUNCTIONS(TextEditor::Internal::TextEditorActionHandler)
|
Q_DECLARE_TR_FUNCTIONS(TextEditor::Internal::TextEditorActionHandler)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
TextEditorActionHandlerPrivate(TextEditorActionHandler *parent,
|
TextEditorActionHandlerPrivate(Core::Id editorId, Core::Id contextId, uint optionalActions);
|
||||||
Core::Id editorId,
|
|
||||||
Core::Id contextId,
|
|
||||||
uint optionalActions);
|
|
||||||
|
|
||||||
QAction *registerActionHelper(Core::Id id, bool scriptable, const QString &title,
|
QAction *registerActionHelper(Core::Id id, bool scriptable, const QString &title,
|
||||||
const QKeySequence &keySequence, Core::Id menueGroup,
|
const QKeySequence &keySequence, Core::Id menueGroup,
|
||||||
@@ -121,7 +119,6 @@ public:
|
|||||||
void updateCurrentEditor(Core::IEditor *editor);
|
void updateCurrentEditor(Core::IEditor *editor);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
TextEditorActionHandler *q = nullptr;
|
|
||||||
TextEditorActionHandler::TextEditorWidgetResolver m_findTextWidget;
|
TextEditorActionHandler::TextEditorWidgetResolver m_findTextWidget;
|
||||||
QAction *m_undoAction = nullptr;
|
QAction *m_undoAction = nullptr;
|
||||||
QAction *m_redoAction = nullptr;
|
QAction *m_redoAction = nullptr;
|
||||||
@@ -199,9 +196,8 @@ static TextEditorWidget *castWidgetToTextEditorWidget(Core::IEditor *editor)
|
|||||||
}
|
}
|
||||||
|
|
||||||
TextEditorActionHandlerPrivate::TextEditorActionHandlerPrivate
|
TextEditorActionHandlerPrivate::TextEditorActionHandlerPrivate
|
||||||
(TextEditorActionHandler *parent, Core::Id editorId, Core::Id contextId, uint optionalActions)
|
(Core::Id editorId, Core::Id contextId, uint optionalActions)
|
||||||
: q(parent)
|
: m_findTextWidget(castWidgetToTextEditorWidget)
|
||||||
, m_findTextWidget(castWidgetToTextEditorWidget)
|
|
||||||
, m_optionalActions(optionalActions)
|
, m_optionalActions(optionalActions)
|
||||||
, m_editorId(editorId)
|
, m_editorId(editorId)
|
||||||
, m_contextId(contextId)
|
, m_contextId(contextId)
|
||||||
@@ -595,7 +591,7 @@ void TextEditorActionHandlerPrivate::updateCurrentEditor(Core::IEditor *editor)
|
|||||||
|
|
||||||
TextEditorActionHandler::TextEditorActionHandler(QObject *parent, Core::Id editorId,
|
TextEditorActionHandler::TextEditorActionHandler(QObject *parent, Core::Id editorId,
|
||||||
Core::Id contextId, uint optionalActions)
|
Core::Id contextId, uint optionalActions)
|
||||||
: QObject(parent), d(new Internal::TextEditorActionHandlerPrivate(this, editorId, contextId,
|
: QObject(parent), d(new Internal::TextEditorActionHandlerPrivate(editorId, contextId,
|
||||||
optionalActions))
|
optionalActions))
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user