forked from qt-creator/qt-creator
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:
@@ -507,6 +507,19 @@
|
|||||||
be \c {public}, \c {protected}, \c {private}, \c {public slot},
|
be \c {public}, \c {protected}, \c {private}, \c {public slot},
|
||||||
\c {protected slot}, or \c {private slot}.
|
\c {protected slot}, or \c {private slot}.
|
||||||
\li Function name
|
\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
|
\row
|
||||||
\li Switch with Next/Previous Parameter
|
\li Switch with Next/Previous Parameter
|
||||||
\li Moves a parameter down or up one position in a parameter list.
|
\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
|
Also, the coding style for pointers and references is not
|
||||||
respected yet.
|
respected yet.
|
||||||
\li Stack Variable
|
\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
|
\row
|
||||||
\li Convert connect() to Qt 5 Style
|
\li Convert connect() to Qt 5 Style
|
||||||
\li Converts a Qt 4 QObject::connect() to Qt 5 style.
|
\li Converts a Qt 4 QObject::connect() to Qt 5 style.
|
||||||
|
@@ -3228,7 +3228,7 @@ public:
|
|||||||
: CppQuickFixOperation(interface), m_class(theClass), m_member(member), m_type(type)
|
: CppQuickFixOperation(interface), m_class(theClass), m_member(member), m_type(type)
|
||||||
{
|
{
|
||||||
setDescription(QCoreApplication::translate("CppTools::Quickfix",
|
setDescription(QCoreApplication::translate("CppTools::Quickfix",
|
||||||
"Add class member \"%1\"").arg(m_member));
|
"Add Class Member \"%1\"").arg(m_member));
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
@@ -3238,7 +3238,7 @@ private:
|
|||||||
if (type.isEmpty()) {
|
if (type.isEmpty()) {
|
||||||
type = QInputDialog::getText(
|
type = QInputDialog::getText(
|
||||||
Core::ICore::dialogParent(),
|
Core::ICore::dialogParent(),
|
||||||
QCoreApplication::translate("CppTools::Quickfix","Please provide the type"),
|
QCoreApplication::translate("CppTools::Quickfix","Provide the type"),
|
||||||
QCoreApplication::translate("CppTools::Quickfix","Data type:"),
|
QCoreApplication::translate("CppTools::Quickfix","Data type:"),
|
||||||
QLineEdit::Normal);
|
QLineEdit::Normal);
|
||||||
}
|
}
|
||||||
@@ -7568,13 +7568,13 @@ public:
|
|||||||
if (m_removeAllAtGlobalScope) {
|
if (m_removeAllAtGlobalScope) {
|
||||||
setDescription(QApplication::translate(
|
setDescription(QApplication::translate(
|
||||||
"CppTools::QuickFix",
|
"CppTools::QuickFix",
|
||||||
"Remove all occurrences of 'using namespace %1' at the global scope "
|
"Remove All Occurrences of \"using namespace %1\" in Global Scope "
|
||||||
"and adjust type names accordingly")
|
"and Adjust Type Names Accordingly")
|
||||||
.arg(name));
|
.arg(name));
|
||||||
} else {
|
} else {
|
||||||
setDescription(QApplication::translate("CppTools::QuickFix",
|
setDescription(QApplication::translate("CppTools::QuickFix",
|
||||||
"Remove 'using namespace %1' and "
|
"Remove \"using namespace %1\" and "
|
||||||
"adjust type names accordingly")
|
"Adjust Type Names Accordingly")
|
||||||
.arg(name));
|
.arg(name));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user