summaryrefslogtreecommitdiff
path: root/src/plugins/cppeditor/cppeditor.cpp
diff options
context:
space:
mode:
authorhjk <hjk121@nokiamail.com>2014-09-26 11:37:54 +0200
committerDavid Schulz <david.schulz@digia.com>2014-09-29 14:54:32 +0200
commit10c8d5f0cad6c89a75a7662aed0912c622482f03 (patch)
tree290f27191ff7a65427dd0df132652995efecedea /src/plugins/cppeditor/cppeditor.cpp
parentcfaa30d0b91ac7b46883b332bf246b41dd84e6dc (diff)
downloadqt-creator-10c8d5f0cad6c89a75a7662aed0912c622482f03.tar.gz
TextEditor: Rename BaseTextEditorWidget to TextEditorWidget
... and some of the related implementation details Change-Id: I1f03aa5acf2d3fb2cfc2a6a7845f3d3578b0408d Reviewed-by: David Schulz <david.schulz@digia.com>
Diffstat (limited to 'src/plugins/cppeditor/cppeditor.cpp')
-rw-r--r--src/plugins/cppeditor/cppeditor.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/plugins/cppeditor/cppeditor.cpp b/src/plugins/cppeditor/cppeditor.cpp
index 1cd293259b..4f7b2694ab 100644
--- a/src/plugins/cppeditor/cppeditor.cpp
+++ b/src/plugins/cppeditor/cppeditor.cpp
@@ -219,11 +219,11 @@ void CppEditorWidget::finalizeInitialization()
connect(cmd, SIGNAL(keySequenceChanged()), this, SLOT(updatePreprocessorButtonTooltip()));
updatePreprocessorButtonTooltip();
connect(d->m_preprocessorButton, SIGNAL(clicked()), this, SLOT(showPreProcessorWidget()));
- insertExtraToolBarWidget(BaseTextEditorWidget::Left, d->m_preprocessorButton);
- insertExtraToolBarWidget(BaseTextEditorWidget::Left, d->m_cppEditorOutline->widget());
+ insertExtraToolBarWidget(TextEditorWidget::Left, d->m_preprocessorButton);
+ insertExtraToolBarWidget(TextEditorWidget::Left, d->m_cppEditorOutline->widget());
}
-void CppEditorWidget::finalizeInitializationAfterDuplication(BaseTextEditorWidget *other)
+void CppEditorWidget::finalizeInitializationAfterDuplication(TextEditorWidget *other)
{
QTC_ASSERT(other, return);
CppEditorWidget *cppEditorWidget = qobject_cast<CppEditorWidget *>(other);
@@ -256,7 +256,7 @@ void CppEditorWidget::paste()
if (d->m_localRenaming.handlePaste())
return;
- BaseTextEditorWidget::paste();
+ TextEditorWidget::paste();
}
void CppEditorWidget::cut()
@@ -264,7 +264,7 @@ void CppEditorWidget::cut()
if (d->m_localRenaming.handleCut())
return;
- BaseTextEditorWidget::cut();
+ TextEditorWidget::cut();
}
void CppEditorWidget::selectAll()
@@ -272,7 +272,7 @@ void CppEditorWidget::selectAll()
if (d->m_localRenaming.handleSelectAll())
return;
- BaseTextEditorWidget::selectAll();
+ TextEditorWidget::selectAll();
}
void CppEditorWidget::onCppDocumentUpdated()
@@ -285,7 +285,7 @@ void CppEditorWidget::onCodeWarningsUpdated(unsigned revision,
{
if (revision != documentRevision())
return;
- setExtraSelections(BaseTextEditorWidget::CodeWarningsSelection, selections);
+ setExtraSelections(TextEditorWidget::CodeWarningsSelection, selections);
}
void CppEditorWidget::onIfdefedOutBlocksUpdated(unsigned revision,
@@ -469,7 +469,7 @@ bool CppEditorWidget::event(QEvent *e)
break;
}
- return BaseTextEditorWidget::event(e);
+ return TextEditorWidget::event(e);
}
void CppEditorWidget::performQuickFix(int index)
@@ -479,7 +479,7 @@ void CppEditorWidget::performQuickFix(int index)
void CppEditorWidget::processKeyNormally(QKeyEvent *e)
{
- BaseTextEditorWidget::keyPressEvent(e);
+ TextEditorWidget::keyPressEvent(e);
}
void CppEditorWidget::contextMenuEvent(QContextMenuEvent *e)
@@ -541,13 +541,13 @@ void CppEditorWidget::keyPressEvent(QKeyEvent *e)
if (d->m_cppDocumentationCommentHelper.handleKeyPressEvent(e))
return;
- BaseTextEditorWidget::keyPressEvent(e);
+ TextEditorWidget::keyPressEvent(e);
}
void CppEditorWidget::applyFontSettings()
{
// This also makes the document apply font settings
- BaseTextEditorWidget::applyFontSettings();
+ TextEditorWidget::applyFontSettings();
}
void CppEditorWidget::slotCodeStyleSettingsChanged(const QVariant &)
@@ -610,7 +610,7 @@ AssistInterface *CppEditorWidget::createAssistInterface(AssistKind kind, AssistR
if (isSemanticInfoValid())
return new CppQuickFixAssistInterface(const_cast<CppEditorWidget *>(this), reason);
} else {
- return BaseTextEditorWidget::createAssistInterface(kind, reason);
+ return TextEditorWidget::createAssistInterface(kind, reason);
}
return 0;
}