Doc: Describe new refactoring actions (quick fixes)

Fix capitalization of action names.

Task-number: QTCREATORBUG-24529
Change-Id: I021717bbae237dd293bdbd56d5e10407ee12f224
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Leena Miettinen
2020-10-07 12:19:04 +02:00
parent 38efee1598
commit 1fcac114a3
2 changed files with 30 additions and 6 deletions

View File

@@ -507,6 +507,19 @@
be \c {public}, \c {protected}, \c {private}, \c {public slot},
\c {protected slot}, or \c {private slot}.
\li Function name
\row
\li Add Class Member
\li Adds a member declaration for the class member being
initialized if it is not yet declared. You must enter
the data type of the member.
\li Identifier
\row
\li Create Implementations for Member Functions
\li Creates implementations for all member functions in one go.
In the \uicontrol {Member Function Implementations} dialog,
you can specify whether the member functions are generated
inline or outside the class.
\li Function name
\row
\li Switch with Next/Previous Parameter
\li Moves a parameter down or up one position in a parameter list.
@@ -795,6 +808,17 @@
Also, the coding style for pointers and references is not
respected yet.
\li Stack Variable
\row
\li Remove \c {using namespace} and Adjust Type Names Accordingly
\li Remove occurrences of \c {using namespace} in the local scope
and adjust type names accordingly.
\li \c using directive
\row
\li Remove All Occurrences of \c {using namespace} in Global Scope
and Adjust Type Names Accordingly
\li Remove all occurrences of \c {using namespace} in the global
scope and adjust type names accordingly.
\li \c using directive
\row
\li Convert connect() to Qt 5 Style
\li Converts a Qt 4 QObject::connect() to Qt 5 style.

View File

@@ -3228,7 +3228,7 @@ public:
: CppQuickFixOperation(interface), m_class(theClass), m_member(member), m_type(type)
{
setDescription(QCoreApplication::translate("CppTools::Quickfix",
"Add class member \"%1\"").arg(m_member));
"Add Class Member \"%1\"").arg(m_member));
}
private:
@@ -3238,7 +3238,7 @@ private:
if (type.isEmpty()) {
type = QInputDialog::getText(
Core::ICore::dialogParent(),
QCoreApplication::translate("CppTools::Quickfix","Please provide the type"),
QCoreApplication::translate("CppTools::Quickfix","Provide the type"),
QCoreApplication::translate("CppTools::Quickfix","Data type:"),
QLineEdit::Normal);
}
@@ -7568,13 +7568,13 @@ public:
if (m_removeAllAtGlobalScope) {
setDescription(QApplication::translate(
"CppTools::QuickFix",
"Remove all occurrences of 'using namespace %1' at the global scope "
"and adjust type names accordingly")
"Remove All Occurrences of \"using namespace %1\" in Global Scope "
"and Adjust Type Names Accordingly")
.arg(name));
} else {
setDescription(QApplication::translate("CppTools::QuickFix",
"Remove 'using namespace %1' and "
"adjust type names accordingly")
"Remove \"using namespace %1\" and "
"Adjust Type Names Accordingly")
.arg(name));
}
}