diff options
-rw-r--r-- | doc/qtcreator/src/editors/creator-code-refactoring.qdoc | 24 | ||||
-rw-r--r-- | src/plugins/cppeditor/cppquickfixes.cpp | 12 |
2 files changed, 30 insertions, 6 deletions
diff --git a/doc/qtcreator/src/editors/creator-code-refactoring.qdoc b/doc/qtcreator/src/editors/creator-code-refactoring.qdoc index ab8145b5f7..2f65b3568f 100644 --- a/doc/qtcreator/src/editors/creator-code-refactoring.qdoc +++ b/doc/qtcreator/src/editors/creator-code-refactoring.qdoc @@ -508,6 +508,19 @@ \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. \li Parameter in the declaration or definition of a function @@ -796,6 +809,17 @@ 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. \li QObject::connect() (Qt 4 style) diff --git a/src/plugins/cppeditor/cppquickfixes.cpp b/src/plugins/cppeditor/cppquickfixes.cpp index 0853a46d93..931d783523 100644 --- a/src/plugins/cppeditor/cppquickfixes.cpp +++ b/src/plugins/cppeditor/cppquickfixes.cpp @@ -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)); } } |