diff --git a/doc/addressbook-sdk.qdoc b/doc/addressbook-sdk.qdoc index e5e9ac6072f75c504390ef402521fdeab972cf96..1f6ac54dc597c247ab26fa66741b3ea7d25d3cfd 100644 --- a/doc/addressbook-sdk.qdoc +++ b/doc/addressbook-sdk.qdoc @@ -357,7 +357,7 @@ \image addressbook-tutorial-part2-signals-and-slots.png Finally, set the window title to "Simple Address Book" using the - \l{QWidget::}{setWindowTitle()} function. The tr() method allows us + \l{QWidget::}{setWindowTitle()} function. The tr() function allows us to translate user interface strings. \snippet examples/addressbook-sdk/part2/addressbook.cpp window title @@ -827,7 +827,7 @@ when you enter a contact name to look up. Once you click the dialog's \c findButton, the dialog is hidden and the result code is set to either QDialog::Accepted or QDialog::Rejected by the FindDialog's - \c findClicked() method. This ensures that you only search for a contact + \c findClicked() function. This ensures that you only search for a contact if you have typed something in the FindDialog's line edit. Then proceed to extract the search string, which in this case is diff --git a/doc/api/coding-style.qdoc b/doc/api/coding-style.qdoc index 6ed309f0a63315ec6013c86616aac54ca69b0983..c01b1319192dc99592771ff6973a0f063d031822 100644 --- a/doc/api/coding-style.qdoc +++ b/doc/api/coding-style.qdoc @@ -86,10 +86,10 @@ backward source code compatibility in patch releases, so: \list - \li Do not add or remove any public API (e.g. global functions,x - public/protected/private methods). - \li Do not reimplement methods (not even inlines, - nor protected or private methods). + \li Do not add or remove any public API (e.g. global functions, + public/protected/private member functions). + \li Do not reimplement functions (not even inlines, + nor protected or private functions). \li Check \l {http://wiki.qt-project.org/index.php/Binary_Compatibility_Workarounds}{Binary Compatibility Workarounds} for ways to preserve binary compatibility. @@ -687,7 +687,7 @@ will not remove the const modifier. \li Do not use \c dynamic_cast, use \c {qobject_cast} for QObjects, or refactor your design, for example by introducing a \c {type()} - method (see QListWidgetItem), unless you know what you do. + function (see QListWidgetItem), unless you know what you do. \endlist \section2 Compiler and Platform-specific Issues @@ -854,7 +854,7 @@ binary 0, instead of comparing it to 0.0, or, preferred, move such code into an implementation file. - \li Do not hide virtual methods in subclasses (\{-Woverloaded-virtual}). + \li Do not hide virtual functions in subclasses (\{-Woverloaded-virtual}). If the baseclass A has a virtual \c {int val()} and subclass B an overload with the same name, \c {int val(int x)}, the A \c val function is hidden. Use the \c using keyword to make it visible again, and diff --git a/doc/api/examples/exampleplugin/exampleplugin.cpp b/doc/api/examples/exampleplugin/exampleplugin.cpp index 67da9bda17cba48973209bf35f5104305c65d9e5..147a4274b9c889d015f7b3c787111195d1d6f825 100644 --- a/doc/api/examples/exampleplugin/exampleplugin.cpp +++ b/doc/api/examples/exampleplugin/exampleplugin.cpp @@ -34,7 +34,7 @@ bool ExamplePlugin::initialize(const QStringList &arguments, QString *errorStrin // Load settings // Add actions to menus // Connect to other plugins' signals - // In the initialize method, a plugin can be sure that the plugins it + // In the initialize function, a plugin can be sure that the plugins it // depends on have initialized their members. Q_UNUSED(arguments) @@ -62,7 +62,7 @@ bool ExamplePlugin::initialize(const QStringList &arguments, QString *errorStrin void ExamplePlugin::extensionsInitialized() { // Retrieve objects from the plugin manager's object pool - // In the extensionsInitialized method, a plugin can be sure that all + // In the extensionsInitialized function, a plugin can be sure that all // plugins that depend on it are completely initialized. } diff --git a/doc/api/examples/exampleplugin/exampleplugin.h b/doc/api/examples/exampleplugin/exampleplugin.h index c288abf0855f5b7e83c8de5552c2fb18f82001dc..4b7b4e893e212028b2b0438396eac5e9baeeaaf2 100644 --- a/doc/api/examples/exampleplugin/exampleplugin.h +++ b/doc/api/examples/exampleplugin/exampleplugin.h @@ -20,11 +20,11 @@ public: ExamplePlugin(); ~ExamplePlugin(); -//! [plugin methods] +//! [plugin functions] bool initialize(const QStringList &arguments, QString *errorString); void extensionsInitialized(); ShutdownFlag aboutToShutdown(); -//! [plugin methods] +//! [plugin functions] //! [slot] private slots: diff --git a/doc/api/first-plugin.qdoc b/doc/api/first-plugin.qdoc index 0f14611e5837ac0e2db483106c75b694dcbdfe59..67e5976caa39846b3a524d4096425562284ff155 100644 --- a/doc/api/first-plugin.qdoc +++ b/doc/api/first-plugin.qdoc @@ -276,11 +276,11 @@ All \QC plugins must be derived from \l{ExtensionSystem::IPlugin} and are QObjects. - \snippet exampleplugin/exampleplugin.h plugin methods + \snippet exampleplugin/exampleplugin.h plugin functions - The base class defines basic methods that are called during the life cycle + The base class defines basic functions that are called during the life cycle of a plugin, which are here implemented for your new plugin. - These methods and their roles are described in detail in + These functions and their roles are described in detail in \l{The Plugin Life Cycle}. \snippet exampleplugin/exampleplugin.h slot @@ -296,8 +296,8 @@ All the necessary header files from the plugin code itself, from the Core plugin, and from Qt are included in the beginning of the file. The setup of the menu and menu item - is done in the plugin's \c{initialize} method, which is the first thing called - after the plugin constructor. In that method, the plugin can be sure that the basic + is done in the plugin's \c{initialize} function, which is the first thing called + after the plugin constructor. In that function, the plugin can be sure that the basic setup of plugin's that it depends on has been done, for example the Core plugin's \c{ActionManager} instance has been created. diff --git a/doc/api/plugin-lifecycle.qdoc b/doc/api/plugin-lifecycle.qdoc index 171ab55c35cec7e6bd2cc9794bfa11c81344d393..50e533d833b1b00442dea976f32b9213a9e31152 100644 --- a/doc/api/plugin-lifecycle.qdoc +++ b/doc/api/plugin-lifecycle.qdoc @@ -37,8 +37,8 @@ tracks the state of the plugin. You can get the \l{ExtensionSystem::PluginSpec} instances via the plugin manager's \l{ExtensionSystem::PluginManager::plugins()}{plugins()} - method, or, after a plugin is loaded, through the plugin's - \l{ExtensionSystem::IPlugin::pluginSpec()}{pluginSpec()} method. + function, or, after a plugin is loaded, through the plugin's + \l{ExtensionSystem::IPlugin::pluginSpec()}{pluginSpec()} function. \li Sets the plugins to \c Read state. @@ -61,15 +61,15 @@ \li Sets the plugins to \c Loaded state. - \li Calls the \l{ExtensionSystem::IPlugin::initialize()}{initialize()} methods of - all plugins in the order of the load queue. In the \c initialize method, + \li Calls the \l{ExtensionSystem::IPlugin::initialize()}{initialize()} functions of + all plugins in the order of the load queue. In the \c initialize function, a plugin should make sure that all exported interfaces are set up and available to other plugins. A plugin can assume that plugins they depend on have set up their exported interfaces. For example, the \c Core plugin sets up the \l{Core::ActionManager}, \l{Core::EditorManager} and all other publicly available interfaces, so other plugins can request and use them. - The \l{ExtensionSystem::IPlugin::initialize()}{initialize()} method of a plugin + The \l{ExtensionSystem::IPlugin::initialize()}{initialize()} function of a plugin is a good place for \list \li registering objects in the plugin manager's object pool @@ -82,8 +82,8 @@ \li Sets the plugins to \c Initialized state. \li Calls the \l{ExtensionSystem::IPlugin::extensionsInitialized()}{extensionsInitialized()} - methods of all plugins in \e reverse order of the load queue. After - the \c extensionsInitialized method, a plugin should be fully initialized, set up + functions of all plugins in \e reverse order of the load queue. After + the \c extensionsInitialized function, a plugin should be fully initialized, set up and running. A plugin can assume that plugins that depend on it are fully set up, and can finish the initialization of parts that can be extended by other plugins. For example, the \c Core plugin assumes that all plugins have registered @@ -97,10 +97,10 @@ and afterwards \l{Core::ICore::coreOpened()}{coreOpened()}. After startup, when the event loop of \QC is running, the plugin manager calls - the \l{ExtensionSystem::IPlugin::delayedInitialize()}{delayedInitialize()} methods of all + the \l{ExtensionSystem::IPlugin::delayedInitialize()}{delayedInitialize()} functions of all plugins in \e reverse order of the load queue. The calls are done on the main thread, but separated by a delay of a few milliseconds to ensure responsiveness of \QC. - In the \c delayedInitialize method, a plugin can perform non-critical initialization + In the \c delayedInitialize function, a plugin can perform non-critical initialization that could unnecessarily delay showing the \QC UI if done during startup. After all delayed initializations are done the \l{ExtensionSystem::PluginManager}{PluginManager} @@ -111,14 +111,14 @@ plugin manager starts its shutdown sequence: \list 1 - \li Calls the \l{ExtensionSystem::IPlugin::aboutToShutdown()}{aboutToShutdown()} methods of + \li Calls the \l{ExtensionSystem::IPlugin::aboutToShutdown()}{aboutToShutdown()} functions of all plugins in the order of the load queue. Plugins should perform measures for speeding up the actual shutdown here, like disconnecting signals that would otherwise needlessly be called. If a plugin needs to delay the real shutdown for a while, for example if it needs to wait for external processes to finish for a clean shutdown, the plugin can return \l{ExtensionSystem::IPlugin::AsynchronousShutdown} from this - method. This will make the plugin manager wait with the next step, and keep the main + function. This will make the plugin manager wait with the next step, and keep the main event loop running, until all plugins requesting AsynchronousShutdown have sent the asynchronousShutdownFinished() signal. diff --git a/doc/api/plugin-specifications.qdoc b/doc/api/plugin-specifications.qdoc index acbeca55695119242a9c7f7e635b28d88d197b7d..a56bf93b4cc0345c76c328c3d09ec04721ec2e5a 100644 --- a/doc/api/plugin-specifications.qdoc +++ b/doc/api/plugin-specifications.qdoc @@ -199,7 +199,7 @@ \l{The Plugin Manager, the Object Pool, and Registered Objects}{global object pool} via ExtensionSystem::PluginManager::getObjectByName() or ExtensionSystem::PluginManager::getObjectByClassName(), and use QMetaObject functions to call - methods on it. + functions on it. \section2 Command Line Arguments @@ -210,7 +210,7 @@ line parsing and sanity checks based on that information. If the plugin manager finds matching command line arguments for a plugin, it passes them on to the plugin's - \l{ExtensionSystem::IPlugin::initialize()}{initialize()} method. + \l{ExtensionSystem::IPlugin::initialize()}{initialize()} function. All command line argument definitions are enclosed by a single \c argumentList tag. The individual command line arguments are defined by the \c argument tag, diff --git a/doc/api/pluginmanager.qdoc b/doc/api/pluginmanager.qdoc index b74d1210be69d449172d5f125a7907000404c210..e221f90d64efba505c40a8ad642aca9c9d55ebc9 100644 --- a/doc/api/pluginmanager.qdoc +++ b/doc/api/pluginmanager.qdoc @@ -38,13 +38,13 @@ and retrieved depending on different criteria. Most interaction of plugins with the plugin manager should be done through the - ExtensionSystem::IPlugin interface, but the following tables summarize some methods + ExtensionSystem::IPlugin interface, but the following tables summarize some functions and signals that can be useful for plugins. See the ExtensionSystem::PluginManager reference documentation for the complete list. \table \header - \li Method + \li Function \li Description \row \li instance() @@ -97,9 +97,9 @@ All objects of a specified type can be retrieved from the object pool via the \l{ExtensionSystem::PluginManager::getObjects()}{getObjects()} and - \l{ExtensionSystem::PluginManager::getObject()}{getObject()} methods. - They are aware of Aggregation::Aggregate, so these methods use the Aggregation::query() methods - instead of qobject_cast to determine the matching objects. + \l{ExtensionSystem::PluginManager::getObject()}{getObject()} functions. + They are aware of Aggregation::Aggregate, so these functions use the Aggregation::query() + functions instead of qobject_cast to determine the matching objects. It is also possible to retrieve an object with a specific object name with \l{ExtensionSystem::PluginManager::getObjectByName()}{getObjectByName()} diff --git a/doc/api/qtcreator-dev-wizards.qdoc b/doc/api/qtcreator-dev-wizards.qdoc index ca31a35104b1a5841ced600bdfcd76847cf4499e..08c33e6eddd057294676b63dd441a33defda618e 100644 --- a/doc/api/qtcreator-dev-wizards.qdoc +++ b/doc/api/qtcreator-dev-wizards.qdoc @@ -240,7 +240,7 @@ The complete code of \c webpagewizard.cpp looks as follows: \snippet webpagewizard/webpagewizard.cpp 0 - The registration of the wizard in the \c initialize() method + The registration of the wizard in the \c initialize() function of a plugin looks like: \snippet webpagewizard/webpagewizardplugin.cpp 0 */ diff --git a/doc/src/debugger/creator-debugger.qdoc b/doc/src/debugger/creator-debugger.qdoc index a9636f6c5f2b81d6addce3e9502fc0470896908c..ee81898c39aaf23980ad6c33f7aa7c65a2f5bed4 100644 --- a/doc/src/debugger/creator-debugger.qdoc +++ b/doc/src/debugger/creator-debugger.qdoc @@ -1011,7 +1011,7 @@ easier to employ the Dumper Python class for that purpose. The Dumper Python class contains a complete framework to take care of the \c iname and \c addr fields, to handle children of simple types, references, pointers, - enums, known and unknown structs as well as some convenience methods to + enums, known and unknown structs as well as some convenience functions to handle common situations. The member functions of the \gui{Dumper} class are the following: @@ -1021,7 +1021,7 @@ \li \gui{__init__(self)} - Initializes the output to an empty string and empties the child stack. This should not be used in user code. - \li \gui{put(self, value)} - Low level method to directly append to the + \li \gui{put(self, value)} - Low level function to directly append to the output string. That is also the fastest way to append output. \li \gui{putField(self, name, value)} - Appends a name='value' field. diff --git a/doc/src/editors/creator-coding-edit-mode.qdoc b/doc/src/editors/creator-coding-edit-mode.qdoc index dac877fc123e4437cf5b4f84843769fc35587525..6ba0eccb443ca5d0f3307a47d3d50f3779f13e42 100644 --- a/doc/src/editors/creator-coding-edit-mode.qdoc +++ b/doc/src/editors/creator-coding-edit-mode.qdoc @@ -151,13 +151,13 @@ You can also select the symbol and press \key F2, or right-click the symbol and select \gui {Follow Symbol Under Cursor} to move to its definition or - declaration. This feature is supported for namespaces, classes, methods, + declaration. This feature is supported for namespaces, classes, functions, variables, include statements, and macros. - To switch between the definition and declaration of a method, place the + To switch between the definition and declaration of a function, place the cursor on either and press \key {Shift+F2} or right-click and select \gui - {Switch Between Method Declaration/Definition}. For example, this allows - you to navigate from anywhere within a method body directly to the method + {Switch Between Function Declaration/Definition}. For example, this allows + you to navigate from anywhere within a function body directly to the function declaration. Links are opened in the same split by default. To open links in the next diff --git a/doc/src/editors/creator-coding.qdoc b/doc/src/editors/creator-coding.qdoc index 60c4541b681ce470ce734b941af0f0f60edc5b90..7a2e3aa6970a5c06f2dc96f660554f8049aeaa2c 100644 --- a/doc/src/editors/creator-coding.qdoc +++ b/doc/src/editors/creator-coding.qdoc @@ -45,7 +45,7 @@ Use the incremental and advanced search to search from currently open projects or files on the file system or use the locator to - browse through projects, files, classes, methods, documentation and + browse through projects, files, classes, functions, documentation and file systems. \li \l{Refactoring} diff --git a/doc/src/editors/creator-editors.qdoc b/doc/src/editors/creator-editors.qdoc index 01d4c821e43d518349769b962a341b82bb5097ee..46fc117eefc14716f202f34027a719be3900686d 100644 --- a/doc/src/editors/creator-editors.qdoc +++ b/doc/src/editors/creator-editors.qdoc @@ -43,7 +43,7 @@ \li Class fields - \li Virtual methods + \li Virtual functions \endlist @@ -1062,9 +1062,9 @@ \li Interpret the \key Tab and \key Backspace key presses. - \li Indent the contents of classes, methods, blocks, and namespaces. + \li Indent the contents of classes, functions, blocks, and namespaces. - \li Indent braces in classes, namespaces, enums, methods, and blocks. + \li Indent braces in classes, namespaces, enums, functions, and blocks. \li Control switch statements and their contents. @@ -1178,14 +1178,14 @@ You can indent public, protected, and private statements and declarations related to them within classes. - You can also indent statements within methods and blocks and declarations + You can also indent statements within functions and blocks and declarations within namespaces. \image qtcreator-code-style-content.png "Content options" \section1 Specifying Settings for Braces - You can indent class, namespace, enum and method declarations and code + You can indent class, namespace, enum and function declarations and code blocks. \image qtcreator-code-style-braces.png "Braces options" @@ -1422,7 +1422,7 @@ \endlist \note You can also select \gui{Edit > Find/Replace > Advanced Find > - C++ Symbols} to search for classes, methods, enums, and declarations + C++ Symbols} to search for classes, functions, enums, and declarations either from files listed as part of the project or from all files that are used by the code, such as include files. @@ -1523,7 +1523,7 @@ \li Create variable declarations - \li Create method declarations and definitions + \li Create function declarations and definitions \endlist @@ -1817,21 +1817,21 @@ } \endcode - \li Method name + \li Function name \row \li Add 'Function' Declaration \li Inserts the member function declaration that matches the member function definition into the class declaration. The function can be public, protected, private, public slot, protected slot, or private slot. - \li Method name + \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 or method + \li Parameter in the declaration or definition of a function \row - \li Extract Method - \li Moves the selected code to a new method and replaces the block of - code with a call to the new method. Enter a name for the method in + \li Extract Function + \li Moves the selected code to a new function and replaces the block of + code with a call to the new function. Enter a name for the function in the \gui {Extract Function Refactoring} dialog. \li Block of code selected \row @@ -1875,8 +1875,8 @@ \li Generate Missing Q_PROPERTY Members \li Adds missing members to a Q_PROPERTY: \list - \li \c read method - \li \c write method, if there is a WRITE + \li \c read function + \li \c write function, if there is a WRITE \li \c {onChanged} signal, if there is a NOTIFY \li data member with the name \c {m_<propertyName>} \endlist @@ -2187,7 +2187,7 @@ \endlist Filters locating files also accept paths, such as \c {tools/*main.cpp}. - Filters locating class and method definitions also accept namespaces, + Filters locating class and function definitions also accept namespaces, such as \c {Utils::*View}. By default, the following filters are enabled and you do not need to use diff --git a/doc/src/editors/creator-finding.qdoc b/doc/src/editors/creator-finding.qdoc index d2e0b278832612ab4de4d6391a6a23f50b2aeba1..7c7297982ab6a68c6989be98736dd8d00a6f9e20 100644 --- a/doc/src/editors/creator-finding.qdoc +++ b/doc/src/editors/creator-finding.qdoc @@ -45,7 +45,7 @@ \li \l{Searching with the Locator} The locator provides one of the easiest ways in \QC to browse - through projects, files, classes, methods, documentation and + through projects, files, classes, functions, documentation and file systems. \endlist diff --git a/doc/src/howto/creator-keyboard-shortcuts.qdoc b/doc/src/howto/creator-keyboard-shortcuts.qdoc index a428373e85ada96d0d91a3798dee5192ffe860b6..b01fa6bbe808b99c95351a75c60ecb8abf465d54 100644 --- a/doc/src/howto/creator-keyboard-shortcuts.qdoc +++ b/doc/src/howto/creator-keyboard-shortcuts.qdoc @@ -391,14 +391,14 @@ \row \li Follow symbol under cursor - Works with namespaces, classes, methods, variables, include + Works with namespaces, classes, functions, variables, include statements and macros \li F2 \row \li Rename symbol under cursor \li Ctrl+Shift+R \row - \li Switch between method declaration and definition + \li Switch between function declaration and definition \li Shift+F2 \row \li Open type hierarchy diff --git a/doc/src/howto/creator-tips.qdoc b/doc/src/howto/creator-tips.qdoc index 781cf1a2a8ff9348b9b4c020b126185ceb961dd0..421b9414e6fd71d61603fdd452579997cc09fdf5 100644 --- a/doc/src/howto/creator-tips.qdoc +++ b/doc/src/howto/creator-tips.qdoc @@ -212,7 +212,7 @@ \section1 Locating Files The \gui Locator provides one of the easiest ways in \QC to browse - through projects, files, classes, methods, documentation and file systems. + through projects, files, classes, functions, documentation and file systems. To quickly access files not directly mentioned in your project, you can create your own locator filters. That way you can locate files in a directory structure you have defined. diff --git a/doc/src/howto/creator-ui.qdoc b/doc/src/howto/creator-ui.qdoc index 880de704db28d43dbc313ecb84d4e05c4d3e5c38..07bbce7ab2c4aabccf7be852965b8ee0a977a9d0 100644 --- a/doc/src/howto/creator-ui.qdoc +++ b/doc/src/howto/creator-ui.qdoc @@ -56,7 +56,7 @@ output panes (7). You can use the locator (6) to to browse through projects, files, classes, - methods, documentation, and file systems. + functions, documentation, and file systems. \section1 Modes diff --git a/doc/src/howto/qtcreator-faq.qdoc b/doc/src/howto/qtcreator-faq.qdoc index 77b500343ed3d4c3ec021b480ae3b45a1c28ec39..965650ad66e63f3a869b5599947c2850eba9d2ac 100644 --- a/doc/src/howto/qtcreator-faq.qdoc +++ b/doc/src/howto/qtcreator-faq.qdoc @@ -281,17 +281,17 @@ The locator can be used to open files, but opening files is also just a step on the way to accomplish a task. For example, consider the following - use case: \e {Fix AMethod in SomeClass which comes from + use case: \e {Fix AFunction in SomeClass which comes from someclass.cpp/someclass.h}. With a tabbed user interface, developers would search for someclass.cpp in - the tab bar, and then search for \c {::AMethod}, only to find out that the - method is not located in that file. They would then search for someclass.h + the tab bar, and then search for \c {::AFunction}, only to find out that the + function is not located in that file. They would then search for someclass.h in the tab bar, find our that the function is inline, fix the problem, and forget where they came from. - With \QC, developers can type \c {Ctrl+K m AMet} to find the method. - Typically, they only need to type 3 to 4 characters of the method name. + With \QC, developers can type \c {Ctrl+K m AFun} to find the function. + Typically, they only need to type 3 to 4 characters of the function name. They can then fix the problem and press \key Alt+Back to go back to where they were. diff --git a/share/qtcreator/qml/qmljsdebugger/include/qt_private/qdeclarativedebughelper_p.h b/share/qtcreator/qml/qmljsdebugger/include/qt_private/qdeclarativedebughelper_p.h index 0c6d0084dfaaa9ae79a80446539553841a5b4570..a1872a1ef192a43a70c23717bda5b64f5524c25e 100644 --- a/share/qtcreator/qml/qmljsdebugger/include/qt_private/qdeclarativedebughelper_p.h +++ b/share/qtcreator/qml/qmljsdebugger/include/qt_private/qdeclarativedebughelper_p.h @@ -38,7 +38,7 @@ QT_BEGIN_NAMESPACE class QScriptEngine; class QDeclarativeEngine; -// Helper methods to access private API through a stable interface +// Helper functions to access private API through a stable interface // This is used in the qmljsdebugger library of QtCreator. class QMLJSDEBUGGER_EXTERN QDeclarativeDebugHelper { diff --git a/share/qtcreator/templates/wizards/qtcreatorplugin/myplugin.cpp b/share/qtcreator/templates/wizards/qtcreatorplugin/myplugin.cpp index e12c43ac862b01ec5221cdb209529a5a7b598859..f06752cef8e5226a60b25d9aeb6aa5ae0d9235ac 100644 --- a/share/qtcreator/templates/wizards/qtcreatorplugin/myplugin.cpp +++ b/share/qtcreator/templates/wizards/qtcreatorplugin/myplugin.cpp @@ -34,7 +34,7 @@ bool %PluginName%Plugin::initialize(const QStringList &arguments, QString *error // Load settings // Add actions to menus // Connect to other plugins' signals - // In the initialize method, a plugin can be sure that the plugins it + // In the initialize function, a plugin can be sure that the plugins it // depends on have initialized their members. Q_UNUSED(arguments) @@ -57,7 +57,7 @@ bool %PluginName%Plugin::initialize(const QStringList &arguments, QString *error void %PluginName%Plugin::extensionsInitialized() { // Retrieve objects from the plugin manager's object pool - // In the extensionsInitialized method, a plugin can be sure that all + // In the extensionsInitialized function, a plugin can be sure that all // plugins that depend on it are completely initialized. } diff --git a/src/libs/3rdparty/cplusplus/AST.cpp b/src/libs/3rdparty/cplusplus/AST.cpp index 03dc59e889162b4a96532f2bee6f4c0deb15d19b..5e166b83b2bdc98f08622e356a817a11f77c5bae 100644 --- a/src/libs/3rdparty/cplusplus/AST.cpp +++ b/src/libs/3rdparty/cplusplus/AST.cpp @@ -29,10 +29,10 @@ /* - All firstToken/lastToken methods below which have a doxygen comment with + All firstToken/lastToken functions below which have a doxygen comment with \generated in it, will be re-generated when the tool "cplusplus-update-frontend" is run. - For methods which are hand-coded, or which should not be changed, make sure that + For functions which are hand-coded, or which should not be changed, make sure that the comment is gone. */ diff --git a/src/libs/aggregation/aggregate.cpp b/src/libs/aggregation/aggregate.cpp index 9a4f61c2a37f9fe8d84fc49ccc7159e08a70cf52..c6bd27dc53d36d33c580430bac2618489a95180f 100644 --- a/src/libs/aggregation/aggregate.cpp +++ b/src/libs/aggregation/aggregate.cpp @@ -56,7 +56,7 @@ other components in the Aggregate to the outside. Specifically that means: \list - \li They can be "cast" to each other (using query and query_all methods). + \li They can be "cast" to each other (using query and query_all functions). \li Their life cycle is coupled, i.e. whenever one is deleted all of them are. \endlist Components can be of any QObject derived type. @@ -69,7 +69,7 @@ [...] MyInterface *object = new MyInterface; // this is single inheritance \endcode - The query method works like a qobject_cast with normal objects: + The query function works like a qobject_cast with normal objects: \code Q_ASSERT(query<MyInterface>(object) == object); Q_ASSERT(query<MyInterfaceEx>(object) == 0); @@ -105,7 +105,7 @@ /*! \fn T *Aggregate::component() - Template method that returns the component with the given type, if there is one. + Template function that returns the component with the given type, if there is one. If there are multiple components with that type a random one is returned. \sa Aggregate::components() @@ -115,7 +115,7 @@ /*! \fn QList<T *> Aggregate::components() - Template method that returns all components with the given type, if there are any. + Template function that returns all components with the given type, if there are any. \sa Aggregate::component() \sa Aggregate::add() diff --git a/src/libs/cplusplus/CppDocument.cpp b/src/libs/cplusplus/CppDocument.cpp index 6ba998a6e4e1f2b2d88c427c8c6ac3b4262bb498..0d8bbd2f31e358b869470040a652730b65b60ca4 100644 --- a/src/libs/cplusplus/CppDocument.cpp +++ b/src/libs/cplusplus/CppDocument.cpp @@ -474,7 +474,7 @@ void Document::setGlobalNamespace(Namespace *globalNamespace) * Extract the function name including scope at the given position. * * Note that a function (scope) starts at the name of that function, not at the return type. The - * implication is that this method will return an empty string when the line/column is on the + * implication is that this function will return an empty string when the line/column is on the * return type. * * \param line the line number, starting with line 1 diff --git a/src/libs/cplusplus/pp-engine.cpp b/src/libs/cplusplus/pp-engine.cpp index 15beba17714c276b423477f55963dbe6eb0ed52d..05a7a083d384e8730e3d336665ef5f139eb2fdab 100644 --- a/src/libs/cplusplus/pp-engine.cpp +++ b/src/libs/cplusplus/pp-engine.cpp @@ -687,7 +687,7 @@ QString Preprocessor::State::guardStateToString(int guardState) * occurs inside the #ifndef block, but not nested inside other * #if/#ifdef/#ifndef blocks. * - * This method tracks the state, and is called from \c updateIncludeGuardState + * This function tracks the state, and is called from \c updateIncludeGuardState * which handles the most common no-op cases. * * @param hint indicates what kind of token is encountered in the input @@ -857,7 +857,7 @@ _Lagain: // to the macro that generated this token. In either case, the macro // that generated the token still needs to be blocked (!), which is // recorded in the token buffer. Removing the blocked macro and the - // empty token buffer happens the next time that this method is called. + // empty token buffer happens the next time that this function is called. } else { // No token buffer, so have the lexer scan the next token. tk->setSource(m_state.m_source); diff --git a/src/libs/extensionsystem/iplugin.cpp b/src/libs/extensionsystem/iplugin.cpp index 132e5078f38766f7231e67dd057218bf7d477c92..e8670620684f37202a26279427a7578fa317ef46 100644 --- a/src/libs/extensionsystem/iplugin.cpp +++ b/src/libs/extensionsystem/iplugin.cpp @@ -64,10 +64,10 @@ \list 1 \li All plugin libraries are loaded in \e{root-to-leaf} order of the dependency tree. - \li All plugins' initialize methods are called in \e{root-to-leaf} order + \li All plugins' initialize functions are called in \e{root-to-leaf} order of the dependency tree. This is a good place to put objects in the plugin manager's object pool. - \li All plugins' extensionsInitialized methods are called in \e{leaf-to-root} + \li All plugins' extensionsInitialized functions are called in \e{leaf-to-root} order of the dependency tree. At this point, plugins can be sure that all plugins that depend on this plugin have been initialized completely (implying that they have put @@ -79,7 +79,7 @@ Plugins have access to the plugin manager (and its object pool) via the PluginManager::instance() - method. + function. */ /*! @@ -87,10 +87,10 @@ \brief Called after the plugin has been loaded and the IPlugin instance has been created. - The initialize methods of plugins that depend - on this plugin are called after the initialize method of this plugin + The initialize functions of plugins that depend + on this plugin are called after the initialize function of this plugin has been called. Plugins should initialize their internal state in this - method. Returns if initialization of successful. If it wasn't successful, + function. Returns if initialization of successful. If it wasn't successful, the \a errorString should be set to a user-readable message describing the reason. @@ -100,11 +100,11 @@ /*! \fn void IPlugin::extensionsInitialized() - \brief Called after the IPlugin::initialize() method has been called, + \brief Called after the IPlugin::initialize() function has been called, and after both the IPlugin::initialize() and IPlugin::extensionsInitialized() - methods of plugins that depend on this plugin have been called. + functions of plugins that depend on this plugin have been called. - In this method, the plugin can assume that plugins that depend on + In this function, the plugin can assume that plugins that depend on this plugin are fully 'up and running'. It is a good place to look in the plugin manager's object pool for objects that have been provided by dependent plugins. @@ -115,17 +115,17 @@ /*! \fn bool IPlugin::delayedInitialize() - \brief Called after all plugins' IPlugin::extensionsInitialized() method has been called, - and after the IPlugin::delayedInitialize() method of plugins that depend on this plugin + \brief Called after all plugins' IPlugin::extensionsInitialized() function has been called, + and after the IPlugin::delayedInitialize() function of plugins that depend on this plugin have been called. - The plugins' delayedInitialize() methods are called after the application is already running, + The plugins' delayedInitialize() functions are called after the application is already running, with a few milliseconds delay to application startup, and between individual delayedInitialize - method calls. To avoid unnecessary delays, a plugin should return true from the method if it + function calls. To avoid unnecessary delays, a plugin should return true from the function if it actually implements it, to indicate that the next plugins' delayedInitialize() call should be delayed a few milliseconds to give input and paint events a chance to be processed. - This method can be used if a plugin needs to do non-trivial setup that doesn't + This function can be used if a plugin needs to do non-trivial setup that doesn't necessarily needs to be done directly at startup, but still should be done within a short time afterwards. This can increase the felt plugin/application startup time a lot, with very little effort. @@ -139,16 +139,16 @@ \brief Called during a shutdown sequence in the same order as initialization before the plugins get deleted in reverse order. - This method should be used to disconnect from other plugins, + This function should be used to disconnect from other plugins, hide all UI, and optimize shutdown in general. If a plugin needs to delay the real shutdown for a while, for example if it needs to wait for external processes to finish for a clean shutdown, - the plugin can return IPlugin::AsynchronousShutdown from this method. This + the plugin can return IPlugin::AsynchronousShutdown from this function. This will keep the main event loop running after the aboutToShutdown() sequence has finished, until all plugins requesting AsynchronousShutdown have sent the asynchronousShutdownFinished() signal. - The default implementation of this method does nothing and returns + The default implementation of this function does nothing and returns IPlugin::SynchronousShutdown. Returns IPlugin::AsynchronousShutdown if the plugin needs to perform @@ -160,7 +160,7 @@ /*! \fn QObject *IPlugin::remoteCommand(const QStringList &options, const QStringList &arguments) \brief When \QC is executed with the -client argument while already another instance of \QC - is running, this method of plugins is called in the running instance. + is running, this function of plugins is called in the running instance. Plugin-specific arguments are passed in \a options, while the rest of the arguments are passed in \a arguments. @@ -215,7 +215,7 @@ PluginSpec *IPlugin::pluginSpec() const /*! \fn void IPlugin::addObject(QObject *obj) - Convenience method that registers \a obj in the plugin manager's + Convenience function that registers \a obj in the plugin manager's plugin pool by just calling PluginManager::addObject(). */ void IPlugin::addObject(QObject *obj) @@ -225,7 +225,7 @@ void IPlugin::addObject(QObject *obj) /*! \fn void IPlugin::addAutoReleasedObject(QObject *obj) - Convenience method for registering \a obj in the plugin manager's + Convenience function for registering \a obj in the plugin manager's plugin pool. Usually, registered objects must be removed from the object pool and deleted by hand. Objects added to the pool via addAutoReleasedObject are automatically @@ -241,7 +241,7 @@ void IPlugin::addAutoReleasedObject(QObject *obj) /*! \fn void IPlugin::removeObject(QObject *obj) - Convenience method that unregisters \a obj from the plugin manager's + Convenience function that unregisters \a obj from the plugin manager's plugin pool by just calling PluginManager::removeObject(). */ void IPlugin::removeObject(QObject *obj) diff --git a/src/libs/extensionsystem/pluginerrorview.cpp b/src/libs/extensionsystem/pluginerrorview.cpp index d5c4fe7f568b6cabeafc9d1198ef2c144e3d58fb..e90cf11d83e69836fc99555c6534fda548fbfc04 100644 --- a/src/libs/extensionsystem/pluginerrorview.cpp +++ b/src/libs/extensionsystem/pluginerrorview.cpp @@ -91,7 +91,7 @@ void PluginErrorView::update(PluginSpec *spec) break; case PluginSpec::Initialized: text = tr("Initialized"); - tooltip = tr("Plugin's initialization method succeeded"); + tooltip = tr("Plugin's initialization function succeeded"); break; case PluginSpec::Running: text = tr("Running"); diff --git a/src/libs/extensionsystem/pluginmanager.cpp b/src/libs/extensionsystem/pluginmanager.cpp index c7ce379b1671110e5eb7345d06bb44ae950c8e9b..2de78a7f13721f917f866000322bdf794a500850 100644 --- a/src/libs/extensionsystem/pluginmanager.cpp +++ b/src/libs/extensionsystem/pluginmanager.cpp @@ -108,8 +108,8 @@ enum { debugLeaks = 0 }; Plugins (and everybody else) can add objects to a common 'pool' that is located in the plugin manager. Objects in the pool must derive from QObject, there are no other prerequisites. All objects of a specified type can be retrieved from the object pool - via the getObjects() and getObject() methods. They are aware of Aggregation::Aggregate, i.e. - these methods use the Aggregation::query methods instead of a qobject_cast to determine + via the getObjects() and getObject() functions. They are aware of Aggregation::Aggregate, i.e. + these functions use the Aggregation::query functions instead of a qobject_cast to determine the matching objects. Whenever the state of the object pool changes a corresponding signal is emitted by the plugin manager. @@ -134,7 +134,7 @@ enum { debugLeaks = 0 }; object in the pool. This approach does neither require the "user" plugin being linked against the "provider" plugin nor a common shared header file. The exposed interface is implicitly given by the - invokable methods of the "provider" object in the object pool. + invokable functions of the "provider" object in the object pool. The \c{ExtensionSystem::invoke} function template encapsulates {ExtensionSystem::Invoker} construction for the common case where @@ -220,11 +220,11 @@ enum { debugLeaks = 0 }; Retrieves the object of a given type from the object pool. - This method is aware of Aggregation::Aggregate. That is, it uses - the \c Aggregation::query methods instead of \c qobject_cast to + This function is aware of Aggregation::Aggregate. That is, it uses + the \c Aggregation::query functions instead of \c qobject_cast to determine the type of an object. If there are more than one object of the given type in - the object pool, this method will choose an arbitrary one of them. + the object pool, this function will choose an arbitrary one of them. \sa addObject() */ @@ -234,8 +234,8 @@ enum { debugLeaks = 0 }; Retrieves all objects of a given type from the object pool. - This method is aware of Aggregation::Aggregate. That is, it uses - the \c Aggregation::query methods instead of \c qobject_cast to + This function is aware of Aggregation::Aggregate. That is, it uses + the \c Aggregation::query functions instead of \c qobject_cast to determine the type of an object. \sa addObject() @@ -570,7 +570,7 @@ void PluginManager::remoteArguments(const QString &serializedArgument, QObject * Application options always override any plugin's options. \a foundAppOptions is set to pairs of ("option string", "argument") for any application options that were found. - The command line options that were not processed can be retrieved via the arguments() method. + The command line options that were not processed can be retrieved via the arguments() function. If an error occurred (like missing argument for an option that requires one), \a errorString contains a descriptive message of the error. @@ -675,7 +675,7 @@ void PluginManager::startTests() if (!pluginSpec->plugin()) continue; - // Collect all test functions/methods of the plugin. + // Collect all test functions of the plugin. QStringList allTestFunctions; const QMetaObject *metaObject = pluginSpec->plugin()->metaObject(); diff --git a/src/libs/extensionsystem/pluginspec.cpp b/src/libs/extensionsystem/pluginspec.cpp index 1f6c8f8acda8c74b4da15179c9cdf9561c7513a9..dff461984e226a61f0ebd87b09cd3a1817b4d0fa 100644 --- a/src/libs/extensionsystem/pluginspec.cpp +++ b/src/libs/extensionsystem/pluginspec.cpp @@ -128,19 +128,19 @@ information is available via the PluginSpec. \value Resolved The dependencies given in the description file have been - successfully found, and are available via the dependencySpecs() method. + successfully found, and are available via the dependencySpecs() function. \value Loaded The plugin's library is loaded and the plugin instance created (available through plugin()). \value Initialized - The plugin instance's IPlugin::initialize() method has been called + The plugin instance's IPlugin::initialize() function has been called and returned a success value. \value Running The plugin's dependencies are successfully initialized and extensionsInitialized has been called. The loading process is complete. \value Stopped - The plugin has been shut down, i.e. the plugin's IPlugin::aboutToShutdown() method has been called. + The plugin has been shut down, i.e. the plugin's IPlugin::aboutToShutdown() function has been called. \value Deleted The plugin instance has been deleted. */ diff --git a/src/libs/glsl/glslast.h b/src/libs/glsl/glslast.h index e203e16877deb15c3a07c3f6c7e485b8dbc49e54..479a9514d1fb342d3a53514e3f3b226b682612f2 100644 --- a/src/libs/glsl/glslast.h +++ b/src/libs/glsl/glslast.h @@ -751,7 +751,7 @@ public: : AST(Kind_StructField), name(_name), type(0) {} // Takes the outer shell of an array type with the innermost - // element type set to null. The fixInnerTypes() method will + // element type set to null. The fixInnerTypes() function will // set the innermost element type to a meaningful value. Field(const QString *_name, TypeAST *_type) : AST(Kind_StructField), name(_name), type(_type) {} diff --git a/src/libs/qmldebug/qpacketprotocol.cpp b/src/libs/qmldebug/qpacketprotocol.cpp index 6205ceec714d037b62793a9dcb84a5b1ce330b03..97792c2491c613ebf903f88a8af30fc3e415ba13 100644 --- a/src/libs/qmldebug/qpacketprotocol.cpp +++ b/src/libs/qmldebug/qpacketprotocol.cpp @@ -301,7 +301,7 @@ void QPacketProtocol::clear() /*! Returns the next unread packet, or an invalid QPacket instance if no packets - are available. This method does NOT block. + are available. This function does NOT block. */ QPacket QPacketProtocol::read() { diff --git a/src/libs/qmljs/parser/qmlerror.cpp b/src/libs/qmljs/parser/qmlerror.cpp index 09e90df4ef8735efbe4aaf53cf364078ffb7fe98..1ea06d329f12d9997c55f5c4d22618602c2a4114 100644 --- a/src/libs/qmljs/parser/qmlerror.cpp +++ b/src/libs/qmljs/parser/qmlerror.cpp @@ -44,13 +44,13 @@ QT_BEGIN_NAMESPACE QmlError includes a textual description of the error, as well as location information (the file, line, and column). The toString() - method creates a single-line, human-readable string containing all of + function creates a single-line, human-readable string containing all of this information, for example: \code file:///home/user/test.qml:7:8: Invalid property assignment: double expected \endcode - You can use qDebug() or qWarning() to output errors to the console. This method + You can use qDebug() or qWarning() to output errors to the console. This function will attempt to open the file indicated by the error and include additional contextual information. \code diff --git a/src/libs/qmljs/qmljscheck.cpp b/src/libs/qmljs/qmljscheck.cpp index 1122e53ca4ebcfbbf4b48f892cbb9db2405b5040..09cd99cab537ccc44f65b162a46638ba10a06943 100644 --- a/src/libs/qmljs/qmljscheck.cpp +++ b/src/libs/qmljs/qmljscheck.cpp @@ -1464,7 +1464,7 @@ bool Check::visit(TypeOfExpression *ast) /// When something is changed here, also change ReadingContext::lookupProperty in /// texttomodelmerger.cpp -/// ### Maybe put this into the context as a helper method. +/// ### Maybe put this into the context as a helper function. const Value *Check::checkScopeObjectMember(const UiQualifiedId *id) { if (!_importsOk) diff --git a/src/libs/qmljs/qmljsevaluate.cpp b/src/libs/qmljs/qmljsevaluate.cpp index 9f0db46a7a2d499f4b9a7deb725417545c57de53..443d0dd63b6d647e01c8fd0bba5d2d8ba09c0ac8 100644 --- a/src/libs/qmljs/qmljsevaluate.cpp +++ b/src/libs/qmljs/qmljsevaluate.cpp @@ -46,10 +46,10 @@ using namespace QmlJS; Example: Pass in the AST for "1 + 2" and NumberValue will be returned. - In normal cases only the call operator (or the equivalent value() method) + In normal cases only the call operator (or the equivalent value() function) will be used. - The reference() method has the special behavior of not resolving \l{Reference}s + The reference() function has the special behavior of not resolving \l{Reference}s which can be useful when interested in the identity of a variable instead of its value. diff --git a/src/libs/qmljs/qmljsqrcparser.cpp b/src/libs/qmljs/qmljsqrcparser.cpp index b6f0bedbbe9777c87491021806e5d412f19f6562..10114433310479b638234933ecd8f5aa14641245 100644 --- a/src/libs/qmljs/qmljsqrcparser.cpp +++ b/src/libs/qmljs/qmljsqrcparser.cpp @@ -64,7 +64,7 @@ namespace Internal { * For a single qrc a given path maps to a single file, but when one has multiple * (platform specific exclusive) qrc files, then multiple files match, so QStringList are used. * - * Especially the collect* methods are thought as low level interface. + * Especially the collect* functions are thought as low level interface. */ class QrcParserPrivate { diff --git a/src/libs/qmljs/qmljsscopechain.cpp b/src/libs/qmljs/qmljsscopechain.cpp index a25c094db4d64983f658b24a8c508f163a4755cd..9ec4d0cf374014e09adb55fea35a63b2d28366cb 100644 --- a/src/libs/qmljs/qmljsscopechain.cpp +++ b/src/libs/qmljs/qmljsscopechain.cpp @@ -40,7 +40,7 @@ using namespace QmlJS; a specific location. \sa Document Context ScopeBuilder - A ScopeChain is used to perform global lookup with the lookup() method and + A ScopeChain is used to perform global lookup with the lookup() function and to access information about the enclosing scopes. Once constructed for a Document in a Context it represents the root scope of diff --git a/src/libs/qtcreatorcdbext/symbolgroup.cpp b/src/libs/qtcreatorcdbext/symbolgroup.cpp index 5edd3575f99795958d2c3bd5fb9225e08be78d5c..7d284841af4f6cdc01b2884e3076e1b70df6a901 100644 --- a/src/libs/qtcreatorcdbext/symbolgroup.cpp +++ b/src/libs/qtcreatorcdbext/symbolgroup.cpp @@ -50,8 +50,8 @@ enum { debug = 0 }; \brief The SymbolGroup class creates a symbol group storing a tree of expanded symbols rooted on a fake "locals" root element. - Provides a find() method based on inames ("locals.this.i1.data") and - dump() methods used for GDBMI-format dumping and debug helpers. + Provides a find() function based on inames ("locals.this.i1.data") and + dump() functions used for GDBMI-format dumping and debug helpers. Qt Creator's WatchModel is fed from this class. It basically represents the symbol group tree with some additional node types (Reference and Map Node types. diff --git a/src/libs/utils/ansiescapecodehandler.cpp b/src/libs/utils/ansiescapecodehandler.cpp index ecb2285dc5fbc41f747a47ee715b3d3e8ed85d14..0086255ff0061dca1f0434235182d9b6cc459397 100644 --- a/src/libs/utils/ansiescapecodehandler.cpp +++ b/src/libs/utils/ansiescapecodehandler.cpp @@ -42,15 +42,15 @@ namespace Utils { Also, one instance of this class should not handle multiple streams (at least not at the same time). - Its main method is parseText(), which accepts text and default QTextCharFormat. - This method is designed to parse text and split colored text to smaller strings, + Its main function is parseText(), which accepts text and default QTextCharFormat. + This function is designed to parse text and split colored text to smaller strings, with their appropriate formatting information set inside QTextCharFormat. Usage: \list \li Create new instance of AnsiEscapeCodeHandler for a stream. \li To add new text, call parseText() with the text and a default QTextCharFormat. - The result of this method is a list of strings with formats set in appropriate + The result of this function is a list of strings with formats set in appropriate QTextCharFormat. \endlist */ diff --git a/src/libs/utils/fileinprojectfinder.cpp b/src/libs/utils/fileinprojectfinder.cpp index eb6b679c54922c9eefc8df4a054ff27fa33c17d6..6fdfb81df403ca9eb0516e906aab16f6344770ae 100644 --- a/src/libs/utils/fileinprojectfinder.cpp +++ b/src/libs/utils/fileinprojectfinder.cpp @@ -112,7 +112,7 @@ void FileInProjectFinder::setSysroot(const QString &sysroot) /*! Returns the best match for the given file URL in the project directory. - The method first checks whether the file inside the project directory exists. + The function first checks whether the file inside the project directory exists. If not, the leading directory in the path is stripped, and the - now shorter - path is checked for existence, and so on. Second, it tries to locate the file in the sysroot folder specified. Third, we walk the list of project files, and search for a file name match diff --git a/src/libs/utils/json.cpp b/src/libs/utils/json.cpp index 8a56f9c4a9c0f9f58fb4915f7cff26099afa1e43..b4d691566ab3b0ebb0131386e7e87bf2a9f953b2 100644 --- a/src/libs/utils/json.cpp +++ b/src/libs/utils/json.cpp @@ -319,7 +319,7 @@ void JsonSchema::enterNestedPropertySchema(const QString &property) /*! * An array schema is allowed to have its \e items specification in the form of * another schema - * or in the form of an array of schemas [Sec. 5.5]. This methods checks whether this is case + * or in the form of an array of schemas [Sec. 5.5]. This functions checks whether this is case * in which the items are a schema. * * Returns whether or not the items from the array are a schema. @@ -340,7 +340,7 @@ void JsonSchema::enterNestedItemSchema() /*! * An array schema is allowed to have its \e items specification in the form of another schema - * or in the form of an array of schemas [Sec. 5.5]. This methods checks whether this is case + * or in the form of an array of schemas [Sec. 5.5]. This functions checks whether this is case * in which the items are an array of schemas. * * Returns whether or not the items from the array are a an array of schemas. @@ -366,7 +366,7 @@ int JsonSchema::itemArraySchemaSize() const * interested on). This shall only happen if the item at the supplied array index is of type * object, which is then assumed to be a schema. * - * The method also marks the context as being inside an array evaluation. + * The function also marks the context as being inside an array evaluation. * * Returns whether it was necessary to enter a schema for the supplied * array \a index, false if index is out of bounds. @@ -383,7 +383,7 @@ bool JsonSchema::maybeEnterNestedArraySchema(int index) /*! * The type of a schema can be specified in the form of a union type, which is basically an - * array of allowed types for the particular instance [Sec. 5.1]. This method checks whether + * array of allowed types for the particular instance [Sec. 5.1]. This function checks whether * the current schema is one of such. * * Returns whether or not the current schema specifies a union type. @@ -405,7 +405,7 @@ int JsonSchema::unionSchemaSize() const * This shall only happen if the item at the supplied union \a index, which is then assumed to be * a schema. * - * The method also marks the context as being inside an union evaluation. + * The function also marks the context as being inside an union evaluation. * * Returns whether or not it was necessary to enter a schema for the * supplied union index. diff --git a/src/libs/utils/json.h b/src/libs/utils/json.h index 853b4366e5046ec54d29704bf29a79438a944bb8..5efa8ab45e28edfee537d38990f28ef19552c113 100644 --- a/src/libs/utils/json.h +++ b/src/libs/utils/json.h @@ -263,7 +263,7 @@ class JsonSchemaManager; * corresponding nested schema. Afterwards, it's expected that one would "leave" such nested * schema. * - * All methods assume that the current "context" is a valid schema. Once an instance of this + * All functions assume that the current "context" is a valid schema. Once an instance of this * class is created the root schema is put on top of the stack. * */ @@ -350,7 +350,7 @@ private: QStringList properties(JsonObjectValue *v) const; JsonObjectValue *propertySchema(const QString &property, JsonObjectValue *v) const; - // TODO: Similar methods for other attributes which require looking into base schemas. + // TODO: Similar functions for other attributes which require looking into base schemas. static bool maybeSchemaName(const QString &s); diff --git a/src/libs/utils/tooltip/tooltip.cpp b/src/libs/utils/tooltip/tooltip.cpp index 4b46ab59fed0836b27c82cec0fcb6e94027c6e16..469fd5e33e26f2183d7b331db9ce61b1dd7d8d65 100644 --- a/src/libs/utils/tooltip/tooltip.cpp +++ b/src/libs/utils/tooltip/tooltip.cpp @@ -97,7 +97,7 @@ bool ToolTip::acceptShow(const TipContent &content, } #if !defined(QT_NO_EFFECTS) && !defined(Q_OS_MAC) // While the effect takes places it might be that although the widget is actually on - // screen the isVisible method doesn't return true. + // screen the isVisible function doesn't return true. else if (m_tip && (QApplication::isEffectEnabled(Qt::UI_FadeTooltip) || QApplication::isEffectEnabled(Qt::UI_AnimateTooltip))) { diff --git a/src/plugins/autotoolsprojectmanager/autotoolsproject.h b/src/plugins/autotoolsprojectmanager/autotoolsproject.h index f5304358c5765128eaa6e57ba8994acd5ce0a358..1af14a6bed8df89357ab199711b1be026ccd523b 100644 --- a/src/plugins/autotoolsprojectmanager/autotoolsproject.h +++ b/src/plugins/autotoolsprojectmanager/autotoolsproject.h @@ -120,7 +120,7 @@ private: const QStringList &files); /** - * Helper method for buildFileNodeTree(): Inserts a new folder-node for + * Helper function for buildFileNodeTree(): Inserts a new folder-node for * the directory \p nodeDir and inserts it into \p nodes. If no parent * folder exists, it will be created recursively. */ diff --git a/src/plugins/autotoolsprojectmanager/autotoolsprojectnode.h b/src/plugins/autotoolsprojectmanager/autotoolsprojectnode.h index 4257e2ad7fd444527137a034d95d39404d30cc1a..4dd627be0bde9bfaa54f3d2de0209ab4bb532d40 100644 --- a/src/plugins/autotoolsprojectmanager/autotoolsprojectnode.h +++ b/src/plugins/autotoolsprojectmanager/autotoolsprojectnode.h @@ -75,7 +75,7 @@ private: AutotoolsProject *m_project; Core::IDocument *m_projectFile; - // TODO: AutotoolsProject calls the protected method addFileNodes() from AutotoolsProjectNode. + // TODO: AutotoolsProject calls the protected function addFileNodes() from AutotoolsProjectNode. // Instead of this friend declaration, a public interface might be preferable. friend class AutotoolsProject; }; diff --git a/src/plugins/autotoolsprojectmanager/makefileparser.h b/src/plugins/autotoolsprojectmanager/makefileparser.h index 9638cebba7ccddc7e9c8e492154f9c12f76188fd..894201bef558da3c3500ed429c2d9ee891dc94c7 100644 --- a/src/plugins/autotoolsprojectmanager/makefileparser.h +++ b/src/plugins/autotoolsprojectmanager/makefileparser.h @@ -65,7 +65,7 @@ public: /** * Parses the makefile. Must be invoked at least once, otherwise - * the getter methods of MakefileParser will return empty values. + * the getter functions of MakefileParser will return empty values. * @return True, if the parsing was successful. If false is returned, * the makefile could not be opened. */ @@ -116,15 +116,15 @@ public: QStringList cxxflags() const; /** - * Cancels the parsing. Calling this method only makes sense, if the - * parser runs in a different thread than the caller of this method. - * The method is thread-safe. + * Cancels the parsing. Calling this function only makes sense, if the + * parser runs in a different thread than the caller of this function. + * The function is thread-safe. */ void cancel(); /** * @return True, if the parser has been cancelled by MakefileParser::cancel(). - * The method is thread-safe. + * The function is thread-safe. */ bool isCanceled() const; @@ -176,14 +176,14 @@ private: void parseSubDirs(); /** - * Helper method for parseDefaultExtensions(). Returns recursively all sources + * Helper function for parseDefaultExtensions(). Returns recursively all sources * inside the directory \p directory that match with the extension \p extension. */ QStringList directorySources(const QString &directory, const QStringList &extensions); /** - * Helper method for all parse-methods. Returns each value of a target as string in + * Helper function for all parse-functions. Returns each value of a target as string in * the stringlist. The current line m_line is used as starting point and increased * if the current line ends with a \. * @@ -205,7 +205,7 @@ private: /** * Adds recursively all sources of the current folder to m_sources and removes * all duplicates. The Makefile.am is not parsed, only the folders and files are - * handled. This method should only be called, if the sources parsing in the Makefile.am + * handled. This function should only be called, if the sources parsing in the Makefile.am * failed because variables (e.g. $(test)) have been used. */ void addAllSources(); @@ -218,7 +218,7 @@ private: void parseIncludePaths(); /** - * Helper method for MakefileParser::directorySources(). Appends the name of the headerfile + * Helper function for MakefileParser::directorySources(). Appends the name of the headerfile * to \p list, if the header could be found in the directory specified by \p dir. * The headerfile base name is defined by \p fileName. */ diff --git a/src/plugins/bazaar/bazaarplugin.h b/src/plugins/bazaar/bazaarplugin.h index 0baa0157c1497204b538c8138fe31ee4fe544d33..ed93dd221fe9364688237a092b277597b69320c1 100644 --- a/src/plugins/bazaar/bazaarplugin.h +++ b/src/plugins/bazaar/bazaarplugin.h @@ -118,7 +118,7 @@ protected: bool submitEditorAboutToClose(); private: - // Methods + // Functions void createMenu(); void createSubmitEditorActions(); void createFileActions(const Core::Context &context); diff --git a/src/plugins/classview/classviewnavigationwidget.cpp b/src/plugins/classview/classviewnavigationwidget.cpp index 846a21028168d5d465f387cf88adb79fafee4e4f..7f7418b43afad303df4940284abe0bb5a3f901b4 100644 --- a/src/plugins/classview/classviewnavigationwidget.cpp +++ b/src/plugins/classview/classviewnavigationwidget.cpp @@ -52,7 +52,7 @@ namespace Internal { \class NavigationWidgetPrivate The NavigationWidgetPrivate class provides internal data structures and - methods for NavigationWidget. + functions for NavigationWidget. */ class NavigationWidgetPrivate @@ -256,7 +256,7 @@ void NavigationWidget::onItemActivated(const QModelIndex &index) /*! Receives new data for the tree. \a result is a pointer to the Class View - model root item. The method does nothing if null is passed. + model root item. The function does nothing if null is passed. */ void NavigationWidget::onDataUpdate(QSharedPointer<QStandardItem> result) diff --git a/src/plugins/cmakeprojectmanager/cmakeprojectmanager.cpp b/src/plugins/cmakeprojectmanager/cmakeprojectmanager.cpp index b480c9b5db8eeaa84cb14e43fa083db958474030..fe0c2561d01c5e3100e283dfae8cc1960f9f6d76 100644 --- a/src/plugins/cmakeprojectmanager/cmakeprojectmanager.cpp +++ b/src/plugins/cmakeprojectmanager/cmakeprojectmanager.cpp @@ -208,7 +208,7 @@ QString CMakeManager::findCbpFile(const QDir &directory) { // Find the cbp file // the cbp file is named like the project() command in the CMakeList.txt file - // so this method below could find the wrong cbp file, if the user changes the project() + // so this function below could find the wrong cbp file, if the user changes the project() // 2name QDateTime t; QString file; diff --git a/src/plugins/coreplugin/actionmanager/actioncontainer.cpp b/src/plugins/coreplugin/actionmanager/actioncontainer.cpp index e3567b2fbbd548a31661b5f28947ad1476a06699..ab45581cdd53cd4ca8fd83fbbc4b12a457cd6f41 100644 --- a/src/plugins/coreplugin/actionmanager/actioncontainer.cpp +++ b/src/plugins/coreplugin/actionmanager/actioncontainer.cpp @@ -54,7 +54,7 @@ using namespace Core::Internal; You don't create instances of this class directly, but instead use the \l{ActionManager::createMenu()} - and \l{ActionManager::createMenuBar()} methods. + and \l{ActionManager::createMenuBar()} functions. Retrieve existing action containers for an ID with \l{ActionManager::actionContainer()}. diff --git a/src/plugins/coreplugin/actionmanager/actionmanager.cpp b/src/plugins/coreplugin/actionmanager/actionmanager.cpp index 3bf3d902ca99e3be7ca33c2771117509c127f495..a4b2080e9388c4087ce3764eeac9940c9cfc96b3 100644 --- a/src/plugins/coreplugin/actionmanager/actionmanager.cpp +++ b/src/plugins/coreplugin/actionmanager/actionmanager.cpp @@ -59,8 +59,8 @@ using namespace Core::Internal; menu items and keyboard shortcuts. The ActionManager is the central bookkeeper of actions and their shortcuts and layout. - It is a singleton containing mostly static methods. If you need access to the instance, - e.g. for connecting to signals, is its ActionManager::instance() method. + It is a singleton containing mostly static functions. If you need access to the instance, + e.g. for connecting to signals, is its ActionManager::instance() function. The main reasons for the need of this class is to provide a central place where the user can specify all his keyboard shortcuts, and to provide a solution for actions that should @@ -92,7 +92,7 @@ using namespace Core::Internal; \section1 Registering Actions To register a globally active action "My Action" - put the following in your plugin's IPlugin::initialize method: + put the following in your plugin's IPlugin::initialize function: \code QAction *myAction = new QAction(tr("My Action"), this); Core::Command *cmd = Core::ActionManager::registerAction(myAction, @@ -113,7 +113,7 @@ using namespace Core::Internal; Also use the ActionManager to add items to registered action containers like the applications menu bar or menus in that menu bar. To do this, you register your action via the - registerAction methods, get the action container for a specific ID (like specified in + registerAction functions, get the action container for a specific ID (like specified in the Core::Constants namespace) with a call of actionContainer(const Id&) and add your command to this container. @@ -126,7 +126,7 @@ using namespace Core::Internal; \list \li Always register your actions and shortcuts! \li Register your actions and shortcuts during your plugin's \l{ExtensionSystem::IPlugin::initialize()} - or \l{ExtensionSystem::IPlugin::extensionsInitialized()} methods, otherwise the shortcuts won't appear + or \l{ExtensionSystem::IPlugin::extensionsInitialized()} functions, otherwise the shortcuts won't appear in the keyboard settings dialog from the beginning. \li When registering an action with \c{cmd=registerAction(action, id, contexts)} be sure to connect your own action \c{connect(action, SIGNAL...)} but make \c{cmd->action()} visible to the user, i.e. @@ -176,7 +176,7 @@ ActionManager *ActionManager::instance() or to add menu items to the menu. The ActionManager owns the returned ActionContainer. Add your menu to some other menu or a menu bar via the - ActionManager::actionContainer and ActionContainer::addMenu methods. + ActionManager::actionContainer and ActionContainer::addMenu functions. */ ActionContainer *ActionManager::createMenu(Id id) { diff --git a/src/plugins/coreplugin/basefilewizard.cpp b/src/plugins/coreplugin/basefilewizard.cpp index 4df472472c87de7e753704969b8100be2522105f..bb26839348ffdecabf01f78f7493de322a29ab91 100644 --- a/src/plugins/coreplugin/basefilewizard.cpp +++ b/src/plugins/coreplugin/basefilewizard.cpp @@ -162,13 +162,13 @@ void WizardEventLoop::rejected() \brief The BaseFileWizard class implements a generic wizard for creating files. - The following abstract methods must be implemented: + The following abstract functions must be implemented: \list \li createWizardDialog(): Called to create the QWizard dialog to be shown. \li generateFiles(): Generates file content. \endlist - The behaviour can be further customized by overwriting the virtual method \c postGenerateFiles(), + The behaviour can be further customized by overwriting the virtual function \c postGenerateFiles(), which is called after generating the files. \sa Core::GeneratedFile, Core::BaseFileWizardParameters, Core::StandardFileWizard diff --git a/src/plugins/coreplugin/dialogs/iwizard.cpp b/src/plugins/coreplugin/dialogs/iwizard.cpp index d6134c8dba6111273ca6a5b7032b429ff13eaa80..f1b638cd5059c3d2afbf236405a1ed6349e2a43b 100644 --- a/src/plugins/coreplugin/dialogs/iwizard.cpp +++ b/src/plugins/coreplugin/dialogs/iwizard.cpp @@ -51,7 +51,7 @@ instead use one of the predefined wizards and adapt it to your needs. To make your wizard known to the system, add your IWizard instance to the - plugin manager's object pool in your plugin's initialize method: + plugin manager's object pool in your plugin's initialize function: \code bool MyPlugin::initialize(const QStringList &arguments, QString *errorString) { @@ -133,7 +133,7 @@ const QString &platform, const QVariantMap &variables) - This method is executed when the wizard has been selected by the user + This function is executed when the wizard has been selected by the user for execution. Any dialogs the wizard opens should use the given \a parent. The \a path argument is a suggestion for the location where files should be created. The wizard should fill this in its path selection elements as a diff --git a/src/plugins/coreplugin/documentmanager.cpp b/src/plugins/coreplugin/documentmanager.cpp index e7c2573e5a9cb3159347429255c1ef6abc6245e9..9e7dbbdba359ccfa0129baa3925f68b076b9e24f 100644 --- a/src/plugins/coreplugin/documentmanager.cpp +++ b/src/plugins/coreplugin/documentmanager.cpp @@ -81,7 +81,7 @@ as expected. On expected file changes all IDocument objects are notified to reload themselves. - The DocumentManager service also provides two convenience methods for saving + The DocumentManager service also provides two convenience functions for saving files: \c saveModifiedFiles() and \c saveModifiedFilesSilently(). Both take a list of FileInterfaces as an argument, and return the list of files which were _not_ saved. @@ -517,7 +517,7 @@ void DocumentManager::expectFileChange(const QString &fileName) d->m_expectedFileNames.insert(fileName); } -/* only called from unblock and unexpect file change methods */ +/* only called from unblock and unexpect file change functions */ static void updateExpectedState(const QString &fileName) { if (fileName.isEmpty()) diff --git a/src/plugins/coreplugin/documentmanager.h b/src/plugins/coreplugin/documentmanager.h index 6839b01ff42690a97662589fbdb030d38a4a181b..70168a2b23176d15e07e71f4525abd679cd34e90 100644 --- a/src/plugins/coreplugin/documentmanager.h +++ b/src/plugins/coreplugin/documentmanager.h @@ -84,7 +84,7 @@ public: static void setCurrentFile(const QString &filePath); static QString currentFile(); - // helper methods + // helper functions static QString fixFileName(const QString &fileName, FixMode fixmode); static bool saveDocument(IDocument *document, const QString &fileName = QString(), bool *isReadOnly = 0); diff --git a/src/plugins/coreplugin/editormanager/documentmodel.h b/src/plugins/coreplugin/editormanager/documentmodel.h index 2ec74ff4013202c48d59531f765d68a1c759123e..bc494050a9893ffce08ced775b7c95b7f1bdeea5 100644 --- a/src/plugins/coreplugin/editormanager/documentmodel.h +++ b/src/plugins/coreplugin/editormanager/documentmodel.h @@ -87,7 +87,7 @@ public: QList<IEditor *> editorsForDocuments(const QList<IDocument *> &documents) const; QList<IEditor *> oneEditorForEachOpenedDocument() const; - // editor manager related methods, nobody else should call it + // editor manager related functions, nobody else should call it void addEditor(IEditor *editor, bool *isNewDocument); void addRestoredDocument(const QString &fileName, const QString &displayName, const Id &id); Entry *firstRestoredDocument() const; diff --git a/src/plugins/coreplugin/fileiconprovider.cpp b/src/plugins/coreplugin/fileiconprovider.cpp index 867d00eb6c1b855eb73f2a48e3b73094ba48b38e..b136f8287c8a9fbe33430429a0566038dc9e3fb4 100644 --- a/src/plugins/coreplugin/fileiconprovider.cpp +++ b/src/plugins/coreplugin/fileiconprovider.cpp @@ -57,7 +57,7 @@ using namespace Utils; own overlay icon handling (Mac/Windows). Plugins can register custom overlay icons via registerIconOverlayForSuffix(), and - retrieve icons via the icon() method. + retrieve icons via the icon() function. */ // Cache icons in a list of pairs suffix/icon which should be faster than diff --git a/src/plugins/coreplugin/icore.cpp b/src/plugins/coreplugin/icore.cpp index 38bf0a128f2876750176b758a12cfd4c247d926e..7564a59f02748476e599d9e75bc58807c6c0e5d5 100644 --- a/src/plugins/coreplugin/icore.cpp +++ b/src/plugins/coreplugin/icore.cpp @@ -161,7 +161,7 @@ Returns the absolute path in the users directory that is used for resources like project templates. - Use this method for finding the place for resources that the user may + Use this function for finding the place for resources that the user may write to, for example, to allow for custom palettes or templates. */ @@ -263,7 +263,7 @@ Enables plugins to perform some pre-end-of-life actions. The application is guaranteed to shut down after this signal is emitted. - It is there as an addition to the usual plugin lifecycle methods, namely + It is there as an addition to the usual plugin lifecycle functions, namely \c IPlugin::aboutToShutdown(), just for convenience. */ diff --git a/src/plugins/coreplugin/icorelistener.cpp b/src/plugins/coreplugin/icorelistener.cpp index 08ee9895e232b3e3c7dee4236000e2661df2c33f..8c620812dfea806bd10462128671f55db065b78d 100644 --- a/src/plugins/coreplugin/icorelistener.cpp +++ b/src/plugins/coreplugin/icorelistener.cpp @@ -48,7 +48,7 @@ Guidelines for implementing the class: \list - \li Return \c false from the implemented method if you want to prevent + \li Return \c false from the implemented function if you want to prevent the event. \li Add your implementing object to the plugin managers objects: \c{ExtensionSystem::PluginManager::instance()->addObject(yourImplementingObject)} diff --git a/src/plugins/coreplugin/progressmanager/progressmanager.cpp b/src/plugins/coreplugin/progressmanager/progressmanager.cpp index 361f96a8753611aa5730f98bf66dcc25d762565e..444f19296b5706745588106264489b095f04f13b 100644 --- a/src/plugins/coreplugin/progressmanager/progressmanager.cpp +++ b/src/plugins/coreplugin/progressmanager/progressmanager.cpp @@ -72,7 +72,7 @@ using namespace Core::Internal; The progress indicator also allows the user to cancel the task. You get the single instance of this class via the - Core::ICore::progressManager() method. + Core::ICore::progressManager() function. \section1 Registering a task The ProgressManager API uses QtConcurrent as the basis for defining @@ -110,7 +110,7 @@ using namespace Core::Internal; \endtable To register a task you create your \c QFuture<void> object, and call - addTask(). This method returns a + addTask(). This function returns a \l{Core::FutureProgress}{FutureProgress} object that you can use to further customize the progress bar's appearance. See the \l{Core::FutureProgress}{FutureProgress} documentation for @@ -122,16 +122,16 @@ using namespace Core::Internal; \section2 Create a threaded task with QtConcurrent The first option is to directly use QtConcurrent to actually start a task concurrently in a different thread. - QtConcurrent has several different methods to run e.g. - a class method in a different thread. Qt Creator itself + QtConcurrent has several different functions to run e.g. + a class function in a different thread. Qt Creator itself adds a few more in \c{src/libs/qtconcurrent/runextensions.h}. - The QtConcurrent methods to run a concurrent task return a + The QtConcurrent functions to run a concurrent task return a \c QFuture object. This is what you want to give the - ProgressManager in the addTask() method. + ProgressManager in the addTask() function. Have a look at e.g Locator::ILocatorFilter. Locator filters implement - a method \c refresh which takes a \c QFutureInterface object - as a parameter. These methods look something like: + a function \c refresh which takes a \c QFutureInterface object + as a parameter. These functions look something like: \code void Filter::refresh(QFutureInterface<void> &future) { future.setProgressRange(0, MAX); @@ -145,7 +145,7 @@ using namespace Core::Internal; } \endcode - The actual refresh, which calls all the filters' refresh methods + The actual refresh, which calls all the filters' refresh functions in a different thread, looks like this: \code QFuture<void> task = QtConcurrent::run(&ILocatorFilter::refresh, filters); @@ -154,7 +154,7 @@ using namespace Core::Internal; Locator::Constants::TASK_INDEX); \endcode First, we tell QtConcurrent to start a thread which calls all the filters' - refresh method. After that we register the returned QFuture object + refresh function. After that we register the returned QFuture object with the ProgressManager. \section2 Manually create QtConcurrent objects for your thread @@ -184,7 +184,7 @@ using namespace Core::Internal; We register the task with the ProgressManager, using the internal QFuture object that has been created for our QFutureInterface object. Next we report that the task has begun and start doing our actual - work, regularly reporting the progress via the methods + work, regularly reporting the progress via the functions in QFutureInterface. After the long taking operation has finished, we report so through the QFutureInterface object, and delete it afterwards. @@ -192,7 +192,7 @@ using namespace Core::Internal; \section1 Customizing progress appearance You can set a custom widget to show below the progress bar itself, - using the FutureProgress object returned by the addTask() method. + using the FutureProgress object returned by the addTask() function. Also use this object to get notified when the user clicks on the progress indicator. */ @@ -231,8 +231,8 @@ using namespace Core::Internal; which can be used to further customize. The FutureProgress object's life is managed by the ProgressManager and is guaranteed to live only until the next event loop cycle, or until the next call of addTask. - If you want to use the returned FutureProgress later than directly after calling this method, - you will need to use protective methods (like wrapping the returned object in QPointer and + If you want to use the returned FutureProgress later than directly after calling this function, + you will need to use protective functions (like wrapping the returned object in QPointer and checking for 0 whenever you use it). */ diff --git a/src/plugins/coreplugin/variablechooser.cpp b/src/plugins/coreplugin/variablechooser.cpp index 71a3199a2879a309cda3111a53c06e7a2815720f..354dac430c590f8b7702c965267de8b2aaff703a 100644 --- a/src/plugins/coreplugin/variablechooser.cpp +++ b/src/plugins/coreplugin/variablechooser.cpp @@ -58,7 +58,7 @@ using namespace Core; * * The variable chooser monitors focus changes of all children of its parent widget. * When a text control gets focus, the variable chooser checks if it has variable support set, - * either through the addVariableSupport() method or by manually setting the + * either through the addVariableSupport() function or by manually setting the * custom kVariableSupportProperty on the control. If the control supports variables, * a tool button which opens the variable chooser is shown in it while it has focus. * diff --git a/src/plugins/coreplugin/variablemanager.cpp b/src/plugins/coreplugin/variablemanager.cpp index 873a6481b5d5d98f93d5d064d231b7e75857229e..a4f126d6e807f86f3bccf85a3674492f50084673 100644 --- a/src/plugins/coreplugin/variablemanager.cpp +++ b/src/plugins/coreplugin/variablemanager.cpp @@ -122,9 +122,9 @@ public: If there are conditions where your variable is not valid, you should call VariableManager::remove(kMyVariable) in updateVariable(). - For variables that refer to a file, you should use the convenience methods + For variables that refer to a file, you should use the convenience functions VariableManager::registerFileVariables(), VariableManager::fileVariableValue() and - VariableManager::isFileVariable(). The methods take a variable prefix, like \c MyFileVariable, + VariableManager::isFileVariable(). The functions take a variable prefix, like \c MyFileVariable, and automatically handle standardized postfixes like \c{:FilePath}, \c{:Path} and \c{:FileBaseName}, resulting in the combined variables, such as \c{MyFileVariable:FilePath}. @@ -162,12 +162,12 @@ public: \li Using VariableManager::expandedString(). This is the most comfortable way to get a string with variable values expanded, but also the least flexible one. If this is sufficient for you, use it. - \li Using the Utils::expandMacros() methods. These take a string and a macro expander (for which + \li Using the Utils::expandMacros() functions. These take a string and a macro expander (for which you would use the one provided by the variable manager). Mostly the same as VariableManager::expandedString(), but also has a variant that does the replacement inline instead of returning a new string. \li Using Utils::QtcProcess::expandMacros(). This expands the string while conforming to the - quoting rules of the platform it is run on. Use this method with the variable manager's + quoting rules of the platform it is run on. Use this function with the variable manager's macro expander if your string will be passed as a command line parameter string to an external command. \li Writing your own macro expander that nests the variable manager's macro expander. And then @@ -208,7 +208,7 @@ VariableManager::~VariableManager() * Used to set the \a value of a \a variable. Most of the time this is only done when * requested by VariableManager::variableUpdateRequested(). If the value of the variable * does not change, or changes very seldom, you can also keep the value up to date by calling - * this method whenever the value changes. + * this function whenever the value changes. * * As long as insert() was never called for a variable, it will not have a value, not even * an empty string, meaning that the variable will not be expanded when expanding strings. @@ -273,8 +273,8 @@ Utils::AbstractMacroExpander *VariableManager::macroExpander() } /*! - * Returns the variable manager instance, for connecting to signals. All other methods are static - * and should be called as class methods, not through the instance. + * Returns the variable manager instance, for connecting to signals. All other functions are static + * and should be called as class functions, not through the instance. */ QObject *VariableManager::instance() { @@ -294,7 +294,7 @@ void VariableManager::registerVariable(const QByteArray &variable, const QString } /*! - * Convenience method to register several variables with the same \a prefix, that have a file + * Convenience function to register several variables with the same \a prefix, that have a file * as a value. Takes the prefix and registers variables like \c{prefix:FilePath} and * \c{prefix:Path}, with descriptions that start with the given \a heading. * For example \c{registerFileVariables("CurrentDocument", tr("Current Document"))} registers diff --git a/src/plugins/cppeditor/cppeditor.cpp b/src/plugins/cppeditor/cppeditor.cpp index bd848509c643783b65422f36163baba5fdd550de..7b36de8cf068f626cb5e60c58b9b68c85f09afe3 100644 --- a/src/plugins/cppeditor/cppeditor.cpp +++ b/src/plugins/cppeditor/cppeditor.cpp @@ -1023,7 +1023,7 @@ void CPPEditorWidget::jumpToOutlineElement(int index) // the view's currentIndex is updated, so we want to use that. // When the scroll wheel was used on the combo box, // the view's currentIndex is not updated, - // but the passed index to this method is correct. + // but the passed index to this function is correct. // So, if the view has a current index, we reset it, to be able // to distinguish wheel events later if (modelIndex.isValid()) diff --git a/src/plugins/cppeditor/cppeditorplugin.cpp b/src/plugins/cppeditor/cppeditorplugin.cpp index 4735be7018bb2d98fef2ba87eebb534f639a4c2d..4ffa0d93d67fca4aeba970ee70d17352117a6b31 100644 --- a/src/plugins/cppeditor/cppeditorplugin.cpp +++ b/src/plugins/cppeditor/cppeditorplugin.cpp @@ -128,7 +128,7 @@ void CppEditorPlugin::initializeEditor(CPPEditorWidget *editor) editor->setLanguageSettingsId(CppTools::Constants::CPP_SETTINGS_ID); TextEditor::TextEditorSettings::initializeEditor(editor); - // method combo box sorting + // function combo box sorting connect(this, SIGNAL(outlineSortingChanged(bool)), editor, SLOT(setSortedOutline(bool))); } @@ -210,7 +210,7 @@ bool CppEditorPlugin::initialize(const QStringList & /*arguments*/, QString *err contextMenu->addAction(cmd); cppToolsMenu->addAction(cmd); - QAction *switchDeclarationDefinition = new QAction(tr("Switch Between Method Declaration/Definition"), this); + QAction *switchDeclarationDefinition = new QAction(tr("Switch Between Function Declaration/Definition"), this); cmd = ActionManager::registerAction(switchDeclarationDefinition, Constants::SWITCH_DECLARATION_DEFINITION, context, true); cmd->setDefaultKeySequence(QKeySequence(tr("Shift+F2"))); @@ -223,7 +223,7 @@ bool CppEditorPlugin::initialize(const QStringList & /*arguments*/, QString *err cppToolsMenu->addAction(cmd); QAction *openDeclarationDefinitionInNextSplit = - new QAction(tr("Open Method Declaration/Definition in Next Split"), this); + new QAction(tr("Open Function Declaration/Definition in Next Split"), this); cmd = ActionManager::registerAction(openDeclarationDefinitionInNextSplit, Constants::OPEN_DECLARATION_DEFINITION_IN_NEXT_SPLIT, context, true); cmd->setDefaultKeySequence(QKeySequence(Utils::HostOsInfo::isMacHost() diff --git a/src/plugins/cppeditor/cppquickfix.h b/src/plugins/cppeditor/cppquickfix.h index 16466682b715323211a5969e07dbdd172912dbde..f9f4ca49630a6c2319dcef4d1a315674f46f4a3f 100644 --- a/src/plugins/cppeditor/cppquickfix.h +++ b/src/plugins/cppeditor/cppquickfix.h @@ -67,7 +67,7 @@ public: TextEditor::QuickFixOperations &result); /*! - Implement this method to match and create the appropriate + Implement this function to match and create the appropriate CppQuickFixOperation objects. */ virtual void match(const CppQuickFixInterface &interface, diff --git a/src/plugins/cppeditor/cppquickfixes.cpp b/src/plugins/cppeditor/cppquickfixes.cpp index 4802a3a3464ca3065197d43fecae192f4705e412..dcdd8796863239fa52a779bd6c84a6e6bd933121 100644 --- a/src/plugins/cppeditor/cppquickfixes.cpp +++ b/src/plugins/cppeditor/cppquickfixes.cpp @@ -1302,14 +1302,14 @@ void TranslateStringLiteral::match(const CppQuickFixInterface &interface, QSharedPointer<Control> control = interface->context().bindings()->control(); const Name *trName = control->identifier("tr"); - // Check whether we are in a method: + // Check whether we are in a function: const QString description = QApplication::translate("CppTools::QuickFix", "Mark as Translatable"); for (int i = path.size() - 1; i >= 0; --i) { if (FunctionDefinitionAST *definition = path.at(i)->asFunctionDefinition()) { Function *function = definition->symbol; ClassOrNamespace *b = interface->context().lookupType(function); if (b) { - // Do we have a tr method? + // Do we have a tr function? foreach (const LookupItem &r, b->find(trName)) { Symbol *s = r.declaration(); if (s->type()->isFunctionType()) { @@ -2180,7 +2180,7 @@ void ReformatPointerDeclaration::match(const CppQuickFixInterface &interface, PointerDeclarationFormatter::RespectCursor); if (cursor.hasSelection()) { - // This will no work always as expected since this method is only called if + // This will no work always as expected since this function is only called if // interface-path() is not empty. If the user selects the whole document via // ctrl-a and there is an empty line in the end, then the cursor is not on // any AST and therefore no quick fix will be triggered. diff --git a/src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp b/src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp index 441af4b440fa54e65bf1e3a62037f4788ea51f67..19f33336ae27e86b0de3498b32f607e6b8c38cdd 100644 --- a/src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp +++ b/src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp @@ -43,7 +43,7 @@ /*! - Tests for Follow Symbol Under Cursor and Switch Between Method Declaration/Definition + Tests for Follow Symbol Under Cursor and Switch Between Function Declaration/Definition Section numbers refer to @@ -187,7 +187,7 @@ public: /** * Encapsulates the whole process of setting up several editors, positioning the cursor, - * executing Follow Symbol Under Cursor or Switch Between Method Declaration/Definition + * executing Follow Symbol Under Cursor or Switch Between Function Declaration/Definition * and checking the result. */ class TestCase diff --git a/src/plugins/cpptools/cppchecksymbols.cpp b/src/plugins/cpptools/cppchecksymbols.cpp index 066e71f619f34f43a44fe3368b666169c92e9ba1..4aaef9c7e606bc71e53b625200cae71137ad8655 100644 --- a/src/plugins/cpptools/cppchecksymbols.cpp +++ b/src/plugins/cpptools/cppchecksymbols.cpp @@ -517,10 +517,10 @@ bool CheckSymbols::visit(SimpleDeclarationAST *ast) if ((_usages.back().kind != CppHighlightingSupport::VirtualMethodUse)) { if (funTy->isOverride()) warning(declrIdNameAST, QCoreApplication::translate( - "CPlusplus::CheckSymbols", "Only virtual methods can be marked 'override'")); + "CPlusplus::CheckSymbols", "Only virtual functions can be marked 'override'")); else if (funTy->isFinal()) warning(declrIdNameAST, QCoreApplication::translate( - "CPlusPlus::CheckSymbols", "Only virtual methods can be marked 'final'")); + "CPlusPlus::CheckSymbols", "Only virtual functions can be marked 'final'")); } } } diff --git a/src/plugins/cpptools/cppcodestylesettingspage.ui b/src/plugins/cpptools/cppcodestylesettingspage.ui index fed6d45722d9534d2eeb90d17b5e81b806441c38..0206b965497078a72ea18fd25183674f8499cdc5 100644 --- a/src/plugins/cpptools/cppcodestylesettingspage.ui +++ b/src/plugins/cpptools/cppcodestylesettingspage.ui @@ -17,7 +17,7 @@ <item> <widget class="QTabWidget" name="categoryTab"> <property name="currentIndex"> - <number>5</number> + <number>0</number> </property> <widget class="QWidget" name="generalTab"> <attribute name="title"> @@ -101,7 +101,7 @@ <item> <widget class="QCheckBox" name="indentFunctionBody"> <property name="text"> - <string>Statements within method body</string> + <string>Statements within function body</string> </property> </widget> </item> @@ -192,7 +192,7 @@ <item> <widget class="QCheckBox" name="indentFunctionBraces"> <property name="text"> - <string>Method declarations</string> + <string>Function declarations</string> </property> </widget> </item> diff --git a/src/plugins/cpptools/cppmodelmanager.cpp b/src/plugins/cpptools/cppmodelmanager.cpp index 4dcbb2b6eaf6e04aa3d400e658670607207ccd70..fd4430320c1e18b4f87b4609974487e093dc6011 100644 --- a/src/plugins/cpptools/cppmodelmanager.cpp +++ b/src/plugins/cpptools/cppmodelmanager.cpp @@ -380,7 +380,7 @@ QByteArray CppModelManager::internalDefinedMacros() const return macros; } -/// This method will aquire the mutex! +/// This function will aquire the mutex! void CppModelManager::dumpModelManagerConfiguration() { // Tons of debug output... diff --git a/src/plugins/cpptools/cppmodelmanagerinterface.h b/src/plugins/cpptools/cppmodelmanagerinterface.h index b0c01d9a382773ed216a970403c44f2d2750cc49..eacfa6f756a95b4fc906f911457962592537fbf9 100644 --- a/src/plugins/cpptools/cppmodelmanagerinterface.h +++ b/src/plugins/cpptools/cppmodelmanagerinterface.h @@ -273,7 +273,7 @@ signals: void documentUpdated(CPlusPlus::Document::Ptr doc); void sourceFilesRefreshed(const QStringList &files); - /// \brief Emitted after updateProjectInfo method is called on the model-manager. + /// \brief Emitted after updateProjectInfo function is called on the model-manager. /// /// Other classes can use this to get notified when the \c ProjectExplorer has updated the parts. void projectPartsUpdated(ProjectExplorer::Project *project); diff --git a/src/plugins/cpptools/cpptoolseditorsupport.cpp b/src/plugins/cpptools/cpptoolseditorsupport.cpp index fb02d392cfe48bed357b06c0dbbf213eecd682ab..631b1c1a44de214d555432feb468f03e950c7a70 100644 --- a/src/plugins/cpptools/cpptoolseditorsupport.cpp +++ b/src/plugins/cpptools/cpptoolseditorsupport.cpp @@ -383,7 +383,7 @@ void CppEditorSupport::startHighlighting() } } -/// \brief This slot puts the new diagnostics into the editorUpdates. This method has to be called +/// \brief This slot puts the new diagnostics into the editorUpdates. This function has to be called /// on the UI thread. void CppEditorSupport::onDiagnosticsChanged() { diff --git a/src/plugins/cpptools/symbolsfindfilter.cpp b/src/plugins/cpptools/symbolsfindfilter.cpp index ad15b7d6bc2119bba3910e084de94dc3d930439a..f9a8d5f326a4a3efa8a312d8d98b8e63ea246118 100644 --- a/src/plugins/cpptools/symbolsfindfilter.cpp +++ b/src/plugins/cpptools/symbolsfindfilter.cpp @@ -246,7 +246,7 @@ QString SymbolsFindFilter::toolTip(Find::FindFlags findFlags) const if (m_symbolsToSearch & SymbolSearcher::Classes) types.append(tr("Classes")); if (m_symbolsToSearch & SymbolSearcher::Functions) - types.append(tr("Methods")); + types.append(tr("Functions")); if (m_symbolsToSearch & SymbolSearcher::Enums) types.append(tr("Enums")); if (m_symbolsToSearch & SymbolSearcher::Declarations) @@ -274,7 +274,7 @@ SymbolsFindFilterConfigWidget::SymbolsFindFilterConfigWidget(SymbolsFindFilter * m_typeClasses = new QCheckBox(tr("Classes")); layout->addWidget(m_typeClasses, 0, 1); - m_typeMethods = new QCheckBox(tr("Methods")); + m_typeMethods = new QCheckBox(tr("Functions")); layout->addWidget(m_typeMethods, 0, 2); m_typeEnums = new QCheckBox(tr("Enums")); diff --git a/src/plugins/debugger/debuggersourcepathmappingwidget.cpp b/src/plugins/debugger/debuggersourcepathmappingwidget.cpp index 60854617f0802a9fc4de05c0db49e81d5ab09ffa..2080d92d38ce9534d2c00ae8b4cdf31b24153051 100644 --- a/src/plugins/debugger/debuggersourcepathmappingwidget.cpp +++ b/src/plugins/debugger/debuggersourcepathmappingwidget.cpp @@ -431,7 +431,7 @@ DebuggerSourcePathMappingWidget::SourcePathMap // We could query the QtVersion for this information directly, but then we // will need to add a dependency on QtSupport to the debugger. // - // The profile could also get a method to extract the required information from + // The profile could also get a function to extract the required information from // its information to avoid this dependency (as we do for the environment). const QString qtInstallPath = findQtInstallPath(qmake); SourcePathMap rc = in; diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp index b2cab00f27cc0c9741310bf2fee81b39f0122d69..52e16732aeb4916d1e0102c05fce892c6807c448 100644 --- a/src/plugins/debugger/gdb/gdbengine.cpp +++ b/src/plugins/debugger/gdb/gdbengine.cpp @@ -2418,7 +2418,7 @@ void GdbEngine::handleExecuteReturn(const GdbResponse &response) /*! Discards the results of all pending watch-updating commands. - This method is called at the beginning of all step, next, finish, and so on, + This function is called at the beginning of all step, next, finish, and so on, debugger functions. If non-watch-updating commands with call-backs are still in the pipe, it will complain. diff --git a/src/plugins/designer/formeditorplugin.cpp b/src/plugins/designer/formeditorplugin.cpp index ce5c6da2b92cbcab3fab8fa71a4055c9512c5017..b9ce32365400888af1523b82fce7df4712b0def9 100644 --- a/src/plugins/designer/formeditorplugin.cpp +++ b/src/plugins/designer/formeditorplugin.cpp @@ -103,7 +103,7 @@ void FormEditorPlugin::extensionsInitialized() //////////////////////////////////////////////////// // -// PRIVATE methods +// PRIVATE functions // //////////////////////////////////////////////////// diff --git a/src/plugins/designer/formeditorw.h b/src/plugins/designer/formeditorw.h index eeabafb47c4db625b9ba6a0fc6414659badae791..7a5f0f25b7435aea3fad0ce6505a680e27584e65 100644 --- a/src/plugins/designer/formeditorw.h +++ b/src/plugins/designer/formeditorw.h @@ -80,7 +80,7 @@ class SettingsPage; class DesignerContext; /** FormEditorW is a singleton that stores the Designer CoreInterface and - * performs centralized operations. The instance() method will return an + * performs centralized operations. The instance() function will return an * instance. However, it must be manually deleted when unloading the * plugin. Since fully initializing Designer at startup is expensive, the * class has an internal partial initialisation stage "RegisterPlugins" diff --git a/src/plugins/designer/qt_private/qdesigner_formwindowmanager_p.h b/src/plugins/designer/qt_private/qdesigner_formwindowmanager_p.h index 89deab50d30e86e34a8e3fcd400501a0ba7c74ca..ec290a84a2576acdd3d0bbc138b1e051ee5e4dfe 100644 --- a/src/plugins/designer/qt_private/qdesigner_formwindowmanager_p.h +++ b/src/plugins/designer/qt_private/qdesigner_formwindowmanager_p.h @@ -51,7 +51,7 @@ namespace qdesigner_internal { class PreviewManager; // -// Convenience methods to manage form previews (ultimately forwarded to PreviewManager). +// Convenience functions to manage form previews (ultimately forwarded to PreviewManager). // class QDESIGNER_SHARED_EXPORT QDesignerFormWindowManager : public QDesignerFormWindowManagerInterface diff --git a/src/plugins/designer/qtcreatorintegration.cpp b/src/plugins/designer/qtcreatorintegration.cpp index 1297a7f4ac1c7df565193bf57de748b9f982e16a..723c6f3191078a8c9c161ba2677d91ab8d9c9e96 100644 --- a/src/plugins/designer/qtcreatorintegration.cpp +++ b/src/plugins/designer/qtcreatorintegration.cpp @@ -228,8 +228,8 @@ static Function *findDeclaration(const Class *cl, const QString &functionName) { const QString funName = QString::fromUtf8(QMetaObject::normalizedSignature(functionName.toUtf8())); const unsigned mCount = cl->memberCount(); - // we are interested only in declarations (can be decl of method or of a field) - // we are only interested in declarations of methods + // we are interested only in declarations (can be decl of function or of a field) + // we are only interested in declarations of functions const Overview overview; for (unsigned j = 0; j < mCount; ++j) { // go through all members if (Declaration *decl = cl->memberAt(j)->asDeclaration()) @@ -254,7 +254,7 @@ static Function *findDeclaration(const Class *cl, const QString &functionName) return 0; } -// TODO: remove me, this is taken from cppeditor.cpp. Find some common place for this method +// TODO: remove me, this is taken from cppeditor.cpp. Find some common place for this function static Document::Ptr findDefinition(Function *functionDeclaration, int *line) { if (CppTools::CppModelManagerInterface *cppModelManager = CppTools::CppModelManagerInterface::instance()) { diff --git a/src/plugins/find/ifindfilter.cpp b/src/plugins/find/ifindfilter.cpp index 06754f9ca02f3263cfa819afa296351062b966be..7755d7088df494dc9a8a991cafd17d7945735da7 100644 --- a/src/plugins/find/ifindfilter.cpp +++ b/src/plugins/find/ifindfilter.cpp @@ -74,20 +74,20 @@ The common pattern is roughly this: - Implement the actual search within a QtConcurrent based method, that is - a method that takes a \c{QFutureInterface<MySearchResult> &future} + Implement the actual search within a QtConcurrent based function, that is + a function that takes a \c{QFutureInterface<MySearchResult> &future} as the first parameter and the other information needed for the search as additional parameters. It should set useful progress information on the QFutureInterface, regularly check for \c{future.isPaused()} and \c{future.isCanceled()}, and report the search results (possibly in chunks) via \c{future.reportResult}. - In the find filter's find/replaceAll method, get the shared + In the find filter's find/replaceAll function, get the shared \gui{Search Results} window, initiate a new search and connect the signals for handling selection of results and the replace action (see the Find::SearchResultWindow class for details). Start your search implementation via the corresponding QtConcurrent - methods. Add the returned QFuture object to the Core::ProgressManager. + functions. Add the returned QFuture object to the Core::ProgressManager. Use a QFutureWatcher on the returned QFuture object to receive a signal when your search implementation reports search results, and add these to the shared \gui{Search Results} window. @@ -138,13 +138,13 @@ \fn bool IFindFilter::isReplaceSupported() const Returns whether the find filter supports search and replace. - The default value is false, override this method to return \c true, if + The default value is false, override this function to return \c true, if your find filter supports global search and replace. */ /*! \fn void IFindFilter::findAll(const QString &txt, Find::FindFlags findFlags) - This method is called when the user selected this find scope and + This function is called when the user selected this find scope and initiated a search. You should start a thread which actually performs the search for \a txt @@ -161,9 +161,9 @@ /*! \fn void IFindFilter::replaceAll(const QString &txt, Find::FindFlags findFlags) - Override this method if you want to support search and replace. + Override this function if you want to support search and replace. - This method is called when the user selected this find scope and + This function is called when the user selected this find scope and initiated a search and replace. The default implementation does nothing. diff --git a/src/plugins/find/searchresultwindow.cpp b/src/plugins/find/searchresultwindow.cpp index 38b2e582242cfe8fd1bb2e91cf56bdf1561f17da..c6cc1906d52745e1ae0797eb1e89775276845cda 100644 --- a/src/plugins/find/searchresultwindow.cpp +++ b/src/plugins/find/searchresultwindow.cpp @@ -238,14 +238,14 @@ using namespace Find::Internal; of this class. Except for being an implementation of a output pane, the - SearchResultWindow has a few methods and one enum that allows other + SearchResultWindow has a few functions and one enum that allows other plugins to show their search results and hook into the user actions for selecting an entry and performing a global replace. Whenever you start a search, call startNewSearch(SearchMode) to initialize the \gui {Search Results} output pane. The parameter determines if the GUI for replacing should be shown. - The method returns a SearchResult object that is your + The function returns a SearchResult object that is your hook into the signals from user interaction for this search. When you produce search results, call addResults or addResult to add them to the \gui {Search Results} output pane. diff --git a/src/plugins/git/gitplugin.cpp b/src/plugins/git/gitplugin.cpp index ab195cde664dcaaea696897e30a3bc259a6784f9..d0fc04bd90e9d1495628059bb5db0ef05bdfb504 100644 --- a/src/plugins/git/gitplugin.cpp +++ b/src/plugins/git/gitplugin.cpp @@ -1352,7 +1352,7 @@ void GitPlugin::stashSnapshot() m_stashDialog->refresh(state.topLevel(), true); } -// Create a non-modal dialog with refresh method or raise if it exists +// Create a non-modal dialog with refresh function or raise if it exists template <class NonModalDialog> inline void showNonModalDialog(const QString &topLevel, QPointer<NonModalDialog> &dialog) diff --git a/src/plugins/helloworld/helloworldplugin.cpp b/src/plugins/helloworld/helloworldplugin.cpp index ea781f40267f568b69967272f9252b97b6ba3882..314d1e9065977fc13adfca136f6c62a22d5037c1 100644 --- a/src/plugins/helloworld/helloworldplugin.cpp +++ b/src/plugins/helloworld/helloworldplugin.cpp @@ -68,7 +68,7 @@ public: /*! Constructs the Hello World plugin. Normally plugins don't do anything in their constructor except for initializing their member variables. The actual work is done later, in the initialize() and extensionsInitialized() - methods. + functions. */ HelloWorldPlugin::HelloWorldPlugin() { @@ -131,7 +131,7 @@ bool HelloWorldPlugin::initialize(const QStringList &arguments, QString *errorMe /*! Notification that all extensions that this plugin depends on have been initialized. The dependencies are defined in the plugins .pluginspec file. - Normally this method is used for things that rely on other plugins to have + Normally this function is used for things that rely on other plugins to have added objects to the plugin manager, that implement interfaces that we're interested in. These objects can now be requested through the PluginManagerInterface. diff --git a/src/plugins/macros/imacrohandler.cpp b/src/plugins/macros/imacrohandler.cpp index 25630a24ae3e3d6edf100ae242635d9a0d17e644..c29be0b74e9723c738d03020e93b44be40bd9155 100644 --- a/src/plugins/macros/imacrohandler.cpp +++ b/src/plugins/macros/imacrohandler.cpp @@ -60,8 +60,8 @@ using namespace Macros::Internal; When replaying a macro, the manager iterates through all macro events specified in \a macroEvent - in the macro and calls this method to determine which handler to use. - If the method returns \c true, \c executeEvent is called. + in the macro and calls this function to determine which handler to use. + If the function returns \c true, \c executeEvent is called. */ /*! diff --git a/src/plugins/macros/macromanager.cpp b/src/plugins/macros/macromanager.cpp index 036a0f73204e9873cb5388bf44a1b58fe5cceb3e..b24573c6c9f7e01e16291e6c62cc49063c242b02 100644 --- a/src/plugins/macros/macromanager.cpp +++ b/src/plugins/macros/macromanager.cpp @@ -77,13 +77,13 @@ using namespace Macros::Internal; The MacroManager manages all macros, loads them on startup, keeps track of the current macro, and creates new macros. - There are two important methods in this class that can be used outside the Macros plugin: + There are two important functions in this class that can be used outside the Macros plugin: \list \li registerEventHandler: add a new event handler \li registerAction: add a macro event when this action is triggered \endlist - This class is a singleton and can be accessed using the instance method. + This class is a singleton and can be accessed using the instance function. */ /*! diff --git a/src/plugins/projectexplorer/abstractprocessstep.cpp b/src/plugins/projectexplorer/abstractprocessstep.cpp index 768cd9556ac6718d39d6c8aa1a2276ac530ed422..a9933d3ffc5941ed75d5666c837e617da2586b2c 100644 --- a/src/plugins/projectexplorer/abstractprocessstep.cpp +++ b/src/plugins/projectexplorer/abstractprocessstep.cpp @@ -74,7 +74,7 @@ using namespace ProjectExplorer; Enables or disables a BuildStep. - Disabled BuildSteps immediately return true from their run method. + Disabled BuildSteps immediately return true from their run function. Should be called from init(). */ diff --git a/src/plugins/projectexplorer/ioutputparser.cpp b/src/plugins/projectexplorer/ioutputparser.cpp index ea073d08241c323216609631276507716b84ba85..2c03191ad544dd5d3bcc6307f9c55e6ceb8d893e 100644 --- a/src/plugins/projectexplorer/ioutputparser.cpp +++ b/src/plugins/projectexplorer/ioutputparser.cpp @@ -102,14 +102,14 @@ /*! \fn void ProjectExplorer::IOutputParser::outputAdded(const QString &string, ProjectExplorer::BuildStep::OutputFormat format) - This method can be overwritten to change the string. + This function can be overwritten to change the string. */ /*! \fn void ProjectExplorer::IOutputParser::taskAdded(const ProjectExplorer::Task &task) Subparsers have their addTask signal connected to this slot. - This method can be overwritten to change the task. + This function can be overwritten to change the task. */ /*! @@ -118,7 +118,7 @@ Instructs a parser to flush its state. Parsers may have state (for example, because they need to aggregate several lines into one task). This - method is called when this state needs to be flushed out to be visible. + function is called when this state needs to be flushed out to be visible. doFlush() is called by flush(). flush() is called on child parsers whenever a new task is added. diff --git a/src/plugins/projectexplorer/nodesvisitor.cpp b/src/plugins/projectexplorer/nodesvisitor.cpp index ba64f187528a98f2bc6b267aa423f5a18e208b12..bdc29fb80dbb54d5e73ccef391065293c0532eb8 100644 --- a/src/plugins/projectexplorer/nodesvisitor.cpp +++ b/src/plugins/projectexplorer/nodesvisitor.cpp @@ -38,7 +38,7 @@ using namespace ProjectExplorer; \brief Base class for visitors that can be used to traverse a node hierarchy. The class follows the visitor pattern as described in Gamma et al. Pass - an instance of NodesVisitor to FolderNode::accept(): The visit methods + an instance of NodesVisitor to FolderNode::accept(): The visit functions will be called for each node in the subtree, except for file nodes: Access these through FolderNode::fileNodes() in visitProjectNode() and visitoFolderNode(). diff --git a/src/plugins/projectexplorer/outputparser_test.cpp b/src/plugins/projectexplorer/outputparser_test.cpp index 0b5ab3660047dbfa929845a5579b322ae247c258..4e42bee6e6fb96a9ad8ffd02be623f9e60b68f9a 100644 --- a/src/plugins/projectexplorer/outputparser_test.cpp +++ b/src/plugins/projectexplorer/outputparser_test.cpp @@ -40,7 +40,7 @@ OutputParserTester::OutputParserTester() : m_debug(false) { } -// test methods: +// test functions: void OutputParserTester::testParsing(const QString &lines, Channel inputChannel, QList<Task> tasks, diff --git a/src/plugins/projectexplorer/outputparser_test.h b/src/plugins/projectexplorer/outputparser_test.h index d56c5492d2c4ba3de19f5f2dcb479f069674d34c..54e50ab5adae658ec4668a5efd5832cc4aa49a9f 100644 --- a/src/plugins/projectexplorer/outputparser_test.h +++ b/src/plugins/projectexplorer/outputparser_test.h @@ -54,7 +54,7 @@ public: OutputParserTester(); - // test methods: + // test functions: void testParsing(const QString &lines, Channel inputChannel, QList<Task> tasks, const QString &childStdOutLines, diff --git a/src/plugins/projectexplorer/project.cpp b/src/plugins/projectexplorer/project.cpp index e5b49f2ce91df103ca377b57082179583f2a85c1..e6c4b6f67bb3a392463b30fc9c5e0c7f1fa508f7 100644 --- a/src/plugins/projectexplorer/project.cpp +++ b/src/plugins/projectexplorer/project.cpp @@ -314,7 +314,7 @@ bool Project::restoreSettings() This map is then saved in the .user file of the project. Just put all your data into the map. - \note Do not forget to call your base class' toMap method. + \note Do not forget to call your base class' toMap function. \note Do not forget to call setActiveBuildConfiguration when creating new build configurations. */ diff --git a/src/plugins/projectexplorer/projectconfiguration.h b/src/plugins/projectexplorer/projectconfiguration.h index 2bcebb811ecd34e434ef96b22b3e059718685628..0fcc4dab06606359d42fc519d84a0f6c7ad8c7b4 100644 --- a/src/plugins/projectexplorer/projectconfiguration.h +++ b/src/plugins/projectexplorer/projectconfiguration.h @@ -57,10 +57,10 @@ public: void setDisplayName(const QString &name); void setDefaultDisplayName(const QString &name); - // Note: Make sure subclasses call the superclasses' fromMap() method! + // Note: Make sure subclasses call the superclasses' fromMap() function! virtual bool fromMap(const QVariantMap &map); - // Note: Make sure subclasses call the superclasses' toMap() method! + // Note: Make sure subclasses call the superclasses' toMap() function! virtual QVariantMap toMap() const; signals: diff --git a/src/plugins/projectexplorer/projectexplorer.cpp b/src/plugins/projectexplorer/projectexplorer.cpp index dad6d1720f8fe1beae1699bd117f7b0df07da857..58497eb38f4076167e3b2f63d6f6bbb2291295d4 100644 --- a/src/plugins/projectexplorer/projectexplorer.cpp +++ b/src/plugins/projectexplorer/projectexplorer.cpp @@ -1519,7 +1519,7 @@ static inline QStringList projectFileGlobs() } /*! - This method is connected to the ICore::coreOpened signal. If + This function is connected to the ICore::coreOpened signal. If there was no session explicitly loaded, it creates an empty new default session and puts the list of recent projects and sessions onto the welcome page. diff --git a/src/plugins/projectexplorer/projectnodes.cpp b/src/plugins/projectexplorer/projectnodes.cpp index e1f97cf17860d9c31b39531a827dc58a2a6e7818..06f4e78ee15b2a9b6c8dd3ad76119a9a1fcc51a4 100644 --- a/src/plugins/projectexplorer/projectnodes.cpp +++ b/src/plugins/projectexplorer/projectnodes.cpp @@ -91,7 +91,7 @@ void Node::emitNodeSortKeyChanged() /*! * The path of the file representing this node. * - * This method does not emit any signals. That has to be done by the calling + * This function does not emit any signals. That has to be done by the calling * class. */ void Node::setPath(const QString &path) @@ -613,7 +613,7 @@ void ProjectNode::removeFolderNodes(const QList<FolderNode*> &subFolders, Adds file nodes specified by \a files to the internal list in the location specified by \a folder and emits the corresponding signals. - This method should be called within an implementation of the public method + This function should be called within an implementation of the public function addFiles. */ @@ -658,7 +658,7 @@ void ProjectNode::addFileNodes(const QList<FileNode*> &files, FolderNode *folder Removes \a files from the internal list and emits the corresponding signals. All objects in the \a files list are deleted. - This method should be called within an implementation of the public method + This function should be called within an implementation of the public function removeFiles. */ diff --git a/src/plugins/projectexplorer/projectnodes.h b/src/plugins/projectexplorer/projectnodes.h index b324dff4ecae1c123778291a6af4aa79ac1e8e83..424a877d805e392f5b071e00344d215c2eb9b99d 100644 --- a/src/plugins/projectexplorer/projectnodes.h +++ b/src/plugins/projectexplorer/projectnodes.h @@ -240,7 +240,7 @@ public: void removeFileNodes(const QList<FileNode*> &files, FolderNode *parentFolder); // to be called in implementation of - // the corresponding public methods + // the corresponding public functions void addProjectNodes(const QList<ProjectNode*> &subProjects); void removeProjectNodes(const QList<ProjectNode*> &subProjects); diff --git a/src/plugins/projectexplorer/runconfiguration.h b/src/plugins/projectexplorer/runconfiguration.h index 583ed05988f11d503e106f6177fc394b42aa4789..86bd83d6c349fae1526f0772aa6277f4b39d5e10 100644 --- a/src/plugins/projectexplorer/runconfiguration.h +++ b/src/plugins/projectexplorer/runconfiguration.h @@ -201,7 +201,7 @@ protected: RunConfiguration(Target *parent, const Core::Id id); RunConfiguration(Target *parent, RunConfiguration *source); - /// convenience method to get current build configuration. + /// convenience function to get current build configuration. BuildConfiguration *activeBuildConfiguration() const; private: diff --git a/src/plugins/projectexplorer/toolchain.cpp b/src/plugins/projectexplorer/toolchain.cpp index d6b3d2d9190cbb6dc082e22a83cd17f71f7d6702..0ca4793033b688ba898467394c6538d030f7e704 100644 --- a/src/plugins/projectexplorer/toolchain.cpp +++ b/src/plugins/projectexplorer/toolchain.cpp @@ -156,7 +156,7 @@ bool ToolChain::operator == (const ToolChain &tc) const /*! Used by the tool chain manager to save user-generated tool chains. - Make sure to call this method when deriving. + Make sure to call this function when deriving. */ QVariantMap ToolChain::toMap() const @@ -185,7 +185,7 @@ void ToolChain::setDetection(ToolChain::Detection de) /*! Used by the tool chain manager to load user-generated tool chains. - Make sure to call this method when deriving. + Make sure to call this function when deriving. */ bool ToolChain::fromMap(const QVariantMap &data) diff --git a/src/plugins/projectexplorer/toolchain.h b/src/plugins/projectexplorer/toolchain.h index 71b7b1e244821d6d8998632528c2b36355233592..74f1545317e64794f3ef48c3f2798eb79b9eb1be 100644 --- a/src/plugins/projectexplorer/toolchain.h +++ b/src/plugins/projectexplorer/toolchain.h @@ -150,7 +150,7 @@ public: virtual ToolChain *clone() const = 0; // Used by the toolchainmanager to save user-generated tool chains. - // Make sure to call this method when deriving! + // Make sure to call this function when deriving! virtual QVariantMap toMap() const; virtual QList<Task> validateKit(const Kit *k) const; protected: @@ -159,7 +159,7 @@ protected: void toolChainUpdated(); - // Make sure to call this method when deriving! + // Make sure to call this function when deriving! virtual bool fromMap(const QVariantMap &data); private: diff --git a/src/plugins/pythoneditor/tools/pythonhighlighter.cpp b/src/plugins/pythoneditor/tools/pythonhighlighter.cpp index 32c59ef6b0ba45fd221a83ef60f2ca893837520e..2bb2bd9caa570f2fa05a0313e4aafb4e5bd7f875 100644 --- a/src/plugins/pythoneditor/tools/pythonhighlighter.cpp +++ b/src/plugins/pythoneditor/tools/pythonhighlighter.cpp @@ -106,9 +106,9 @@ PythonHighlighter::~PythonHighlighter() /** * @brief Highlighter::highlightBlock highlights single line of Python code * @param text is single line without EOLN symbol. Access to all block data - * can be obtained through inherited currentBlock() method. + * can be obtained through inherited currentBlock() function. * - * This method receives state (int number) from previously highlighted block, + * This function receives state (int number) from previously highlighted block, * scans block using received state and sets initial highlighting for current * block. At the end, it saves internal state in current block. */ diff --git a/src/plugins/pythoneditor/tools/pythonindenter.cpp b/src/plugins/pythoneditor/tools/pythonindenter.cpp index befa7f6e024fc8e7ba73f4da56379484e520ee53..e65dd295fe1731257d7944418f0e22cebfafbd49 100644 --- a/src/plugins/pythoneditor/tools/pythonindenter.cpp +++ b/src/plugins/pythoneditor/tools/pythonindenter.cpp @@ -70,8 +70,8 @@ bool PythonIndenter::isElectricCharacter(const QChar &ch) const * @param typedChar Unused * @param tabSettings An IDE tabulation settings * - * Usually this method called once when you begin new line of code by pressing - * Enter. If Indenter reimplements indent() method, than indentBlock() may be + * Usually this function called once when you begin new line of code by pressing + * Enter. If Indenter reimplements indent() function, than indentBlock() may be * called in other cases. */ void PythonIndenter::indentBlock(QTextDocument *document, diff --git a/src/plugins/qmldesigner/components/componentcore/defaultdesigneraction.h b/src/plugins/qmldesigner/components/componentcore/defaultdesigneraction.h index 04d5160b7fc92991d3964c5c19cbbdf776e0e509..b0610cb863e6312e9dda693882b6fcf7cd644718 100644 --- a/src/plugins/qmldesigner/components/componentcore/defaultdesigneraction.h +++ b/src/plugins/qmldesigner/components/componentcore/defaultdesigneraction.h @@ -48,7 +48,7 @@ public: signals: void triggered(bool checked, const SelectionContext &selectionContext); -public slots: //virtual method instead of slot +public slots: //virtual function instead of slot virtual void actionTriggered(bool enable); void setSelectionContext(const SelectionContext &selectionContext); diff --git a/src/plugins/qmldesigner/components/formeditor/formeditorscene.cpp b/src/plugins/qmldesigner/components/formeditor/formeditorscene.cpp index df00f13b0f211b2179bf174e2b472c17c28ddf50..a350b29ff55c9f87a458b10b5eb846923a7ae420 100644 --- a/src/plugins/qmldesigner/components/formeditor/formeditorscene.cpp +++ b/src/plugins/qmldesigner/components/formeditor/formeditorscene.cpp @@ -142,7 +142,7 @@ AbstractFormEditorTool* FormEditorScene::currentTool() const return m_editorView->currentTool(); } -//This method calculates the possible parent for reparent +//This function calculates the possible parent for reparent FormEditorItem* FormEditorScene::calulateNewParent(FormEditorItem *formEditorItem) { if (formEditorItem->qmlItemNode().isValid()) { diff --git a/src/plugins/qmldesigner/components/formeditor/formeditorview.cpp b/src/plugins/qmldesigner/components/formeditor/formeditorview.cpp index be51e341bc6f1afd0ef9e9569316e64f0b738797..e1c67f76be2a0652641c92150eb5890ca92678b9 100644 --- a/src/plugins/qmldesigner/components/formeditor/formeditorview.cpp +++ b/src/plugins/qmldesigner/components/formeditor/formeditorview.cpp @@ -111,7 +111,7 @@ void FormEditorView::modelAttached(Model *model) } -//This method does the setup of the initial FormEditorItem tree in the scene +//This function does the setup of the initial FormEditorItem tree in the scene void FormEditorView::setupFormEditorItemTree(const QmlItemNode &qmlItemNode) { m_scene->addFormEditorItem(qmlItemNode); diff --git a/src/plugins/qmldesigner/components/pluginmanager/iplugin.h b/src/plugins/qmldesigner/components/pluginmanager/iplugin.h index 97df850e893e2eeb084619acc1da1efeab19f3f5..9c0cc217dcd09e5e676907f1aa4081cf05cb70a5 100644 --- a/src/plugins/qmldesigner/components/pluginmanager/iplugin.h +++ b/src/plugins/qmldesigner/components/pluginmanager/iplugin.h @@ -36,7 +36,7 @@ namespace QmlDesigner { -// QmlDesigner "base" plugin with initialization method in which +// QmlDesigner "base" plugin with initialization function in which // it can retriece the core via its static accessor and do magic. class IPlugin diff --git a/src/plugins/qmldesigner/designercore/metainfo/metainfo.cpp b/src/plugins/qmldesigner/designercore/metainfo/metainfo.cpp index cefc0b9987873e8edb498cb34aedfa14293d1fe0..b5c04086a480b8223d1ddc44161e1a3ba792bbb2 100644 --- a/src/plugins/qmldesigner/designercore/metainfo/metainfo.cpp +++ b/src/plugins/qmldesigner/designercore/metainfo/metainfo.cpp @@ -183,7 +183,7 @@ MetaInfo MetaInfo::global() /*! Clears the global meta information object. - This method should be called once on application shutdown to free static data structures. + This function should be called once on application shutdown to free static data structures. */ void MetaInfo::clearGlobal() { diff --git a/src/plugins/qmldesigner/designercore/metainfo/nodemetainfo.cpp b/src/plugins/qmldesigner/designercore/metainfo/nodemetainfo.cpp index 70f68632595157d211c91a717ce3c649f63cc916..94e9bbc0189efb991f6215fbe04b4ccd8ba93790 100644 --- a/src/plugins/qmldesigner/designercore/metainfo/nodemetainfo.cpp +++ b/src/plugins/qmldesigner/designercore/metainfo/nodemetainfo.cpp @@ -65,7 +65,7 @@ The object can be invalid - you can check this by calling isValid(). The object is invalid if you ask for meta information for an non-existing qml property. Also the node meta info can become invalid if the enclosing type is deregistered from the meta type system (e.g. -a sub component qml file is deleted). Trying to call any accessor methods on an invalid +a sub component qml file is deleted). Trying to call any accessor functions on an invalid NodeMetaInfo object will result in an InvalidMetaInfoException being thrown. \see QmlDesigner::MetaInfo, QmlDesigner::PropertyMetaInfo, QmlDesigner::EnumeratorMetaInfo diff --git a/src/plugins/qmldesigner/designercore/model/internalnodeabstractproperty.h b/src/plugins/qmldesigner/designercore/model/internalnodeabstractproperty.h index 0ac4c77a4a6030b0d0b9a4c77c240d89c2dad409..eee3b8806a20d4b0706055e86f9a1bb7a59c854d 100644 --- a/src/plugins/qmldesigner/designercore/model/internalnodeabstractproperty.h +++ b/src/plugins/qmldesigner/designercore/model/internalnodeabstractproperty.h @@ -55,7 +55,7 @@ public: virtual bool isValid() const; - using InternalProperty::remove; // keep the virtual remove(...) method around + using InternalProperty::remove; // keep the virtual remove(...) function around protected: InternalNodeAbstractProperty(const PropertyName &name, const InternalNodePointer &propertyOwner); diff --git a/src/plugins/qmldesigner/designercore/model/modelnode.cpp b/src/plugins/qmldesigner/designercore/model/modelnode.cpp index 7925ee468e77c97a35a9de59939ef4ace14c44b5..7abcc8a4b95e99c3eb05bd8ddf20eaaf0a40cd3a 100644 --- a/src/plugins/qmldesigner/designercore/model/modelnode.cpp +++ b/src/plugins/qmldesigner/designercore/model/modelnode.cpp @@ -612,7 +612,7 @@ void ModelNode::destroy() //\} /*! \name Property Manipulation - * This methodes interact with properties. + * This functions interact with properties. */ diff --git a/src/plugins/qmldesigner/designercore/model/modeltotextmerger.h b/src/plugins/qmldesigner/designercore/model/modeltotextmerger.h index 7d177b353c1f83cf1a412e8725c35c888c461679..a8190eb5cd225f5ecc447392935851fe4a5f4097 100644 --- a/src/plugins/qmldesigner/designercore/model/modeltotextmerger.h +++ b/src/plugins/qmldesigner/designercore/model/modeltotextmerger.h @@ -55,7 +55,7 @@ public: ModelToTextMerger(RewriterView *reWriterView); /** - * Note: his method might throw exceptions, as the model works this way. So to + * Note: his function might throw exceptions, as the model works this way. So to * handle rewriting failures, you will also need to catch any exception coming * out. */ diff --git a/src/plugins/qmldesigner/designercore/model/texttomodelmerger.cpp b/src/plugins/qmldesigner/designercore/model/texttomodelmerger.cpp index 29cf46d84cb41ef664d682173027b267492adb0c..520b07dac7c4a48ab5014a381dea7c744553b978 100644 --- a/src/plugins/qmldesigner/designercore/model/texttomodelmerger.cpp +++ b/src/plugins/qmldesigner/designercore/model/texttomodelmerger.cpp @@ -384,7 +384,7 @@ public: /// When something is changed here, also change Check::checkScopeObjectMember in /// qmljscheck.cpp - /// ### Maybe put this into the context as a helper method. + /// ### Maybe put this into the context as a helper function. bool lookupProperty(const QString &prefix, const UiQualifiedId *id, const Value **property = 0, const ObjectValue **parentObject = 0, QString *name = 0) { QList<const ObjectValue *> scopeObjects = m_scopeChain.qmlScopeObjects(); diff --git a/src/plugins/qmljseditor/qmljsquickfix.h b/src/plugins/qmljseditor/qmljsquickfix.h index ba01ecb4cd7de9465c18b7b398b1406c1e36c4ee..3a22b3f8ccef5e22411de09d33b7ba679189de45 100644 --- a/src/plugins/qmljseditor/qmljsquickfix.h +++ b/src/plugins/qmljseditor/qmljsquickfix.h @@ -91,7 +91,7 @@ protected: void matchingOperations(const QuickFixInterface &interface, QuickFixOperations &result); /*! - Implement this method to match and create the appropriate + Implement this function to match and create the appropriate QmlJSQuickFixOperation objects. */ virtual void match(const QmlJSQuickFixInterface &interface, TextEditor::QuickFixOperations &result) = 0; diff --git a/src/plugins/qmlprofiler/qmlprofilerclientmanager.cpp b/src/plugins/qmlprofiler/qmlprofilerclientmanager.cpp index 775668f7c805b7b469424ce1b612aeafd3d1c0c1..d0fd1c7738588bb1d4a6d63ef908d4a989a30f7e 100644 --- a/src/plugins/qmlprofiler/qmlprofilerclientmanager.cpp +++ b/src/plugins/qmlprofiler/qmlprofilerclientmanager.cpp @@ -256,7 +256,7 @@ bool QmlProfilerClientManager::isConnected() const void QmlProfilerClientManager::disconnectClient() { // this might be actually be called indirectly by QDDConnectionPrivate::readyRead(), therefore allow - // method to complete before deleting object + // function to complete before deleting object if (d->connection) { d->connection->deleteLater(); d->connection = 0; diff --git a/src/plugins/qt4projectmanager/externaleditors.h b/src/plugins/qt4projectmanager/externaleditors.h index e333d6e5df7f939d1a7f9b0a3fb950bb3f4bfcf8..e3f85b13d3ae0d8e58bc92cb8b0e4f0f18858980 100644 --- a/src/plugins/qt4projectmanager/externaleditors.h +++ b/src/plugins/qt4projectmanager/externaleditors.h @@ -50,7 +50,7 @@ namespace Qt4ProjectManager { namespace Internal { /* Convenience parametrizable base class for Qt editors/binaries - * Provides convenience methods that + * Provides convenience functions that * try to retrieve the binary of the editor from the Qt version * of the project the file belongs to, falling back to path search * if none is found. On Mac, the "open" mechanism can be optionally be used. */ @@ -65,7 +65,7 @@ public: virtual QString displayName() const; protected: - // Method pointer for a QtVersion method return a string (command) + // Member function pointer for a QtVersion function return a string (command) typedef QString (QtSupport::BaseQtVersion::*QtVersionCommandAccessor)() const; // Data required to launch the editor diff --git a/src/plugins/qt4projectmanager/qt4nodes.cpp b/src/plugins/qt4projectmanager/qt4nodes.cpp index ee27f181c5ee8e40992e1a0ec3a385163b4e5148..8be72bff5b612f01d5f622ecffcc53074ddc622d 100644 --- a/src/plugins/qt4projectmanager/qt4nodes.cpp +++ b/src/plugins/qt4projectmanager/qt4nodes.cpp @@ -297,7 +297,7 @@ struct InternalNode // * file2 // * path2 // * file1 - // The method first creates a tree that looks like the directory structure, i.e. + // The function first creates a tree that looks like the directory structure, i.e. // * / // * absolute // * path diff --git a/src/plugins/qtsupport/qtversionmanager.h b/src/plugins/qtsupport/qtversionmanager.h index 8b80ff80fe26a740b235483fd0c21065e4178c33..e043f052475b2a100009194387894c7df188b9b8 100644 --- a/src/plugins/qtsupport/qtversionmanager.h +++ b/src/plugins/qtsupport/qtversionmanager.h @@ -77,7 +77,7 @@ public: // Note: DO NOT STORE THIS POINTER! // The QtVersionManager will delete it at random times and you will - // need to get a new pointer by calling this method again! + // need to get a new pointer by calling this function again! static BaseQtVersion *version(int id); static BaseQtVersion *qtVersionForQMakeBinary(const Utils::FileName &qmakePath); diff --git a/src/plugins/texteditor/basetexteditor.cpp b/src/plugins/texteditor/basetexteditor.cpp index 06d6e6401e045efe4ddb8d138fbc6dd024bb5db7..beb49cb46d5f37de4ebaa6f475c9c8d3af3e7eb5 100644 --- a/src/plugins/texteditor/basetexteditor.cpp +++ b/src/plugins/texteditor/basetexteditor.cpp @@ -6520,11 +6520,11 @@ int BaseTextEditorWidget::rowCount() const } /** - Helper method to transform a selected text. If nothing is selected at the moment + Helper function to transform a selected text. If nothing is selected at the moment the word under the cursor is used. - The type of the transformation is determined by the method pointer given. + The type of the transformation is determined by the function pointer given. - @param method pointer to the QString method to use for the transformation + @param method pointer to the QString function to use for the transformation @see uppercaseSelection, lowercaseSelection */ diff --git a/src/plugins/texteditor/basetextmark.cpp b/src/plugins/texteditor/basetextmark.cpp index dbef43c04c6feb2c2021dc03cd7f80046fa1f88b..dd5832a7bbaa1e9e0423d9c7b9608837e7a80745 100644 --- a/src/plugins/texteditor/basetextmark.cpp +++ b/src/plugins/texteditor/basetextmark.cpp @@ -136,7 +136,7 @@ BaseTextMark::BaseTextMark(const QString &fileName, int lineNumber) { } -// we need two phase initilization, since we are calling virtual methods +// we need two phase initilization, since we are calling virtual functions // of BaseTextMark in add() and also accessing widthFactor // which might be set in the derived constructor void BaseTextMark::init() diff --git a/src/plugins/texteditor/codeassist/iassistinterface.cpp b/src/plugins/texteditor/codeassist/iassistinterface.cpp index 51fe2a615a8237ee421c0abb5e181c98e3cf329a..2f3ec8d92313ea249f7e04799f528d44a7eaee29 100644 --- a/src/plugins/texteditor/codeassist/iassistinterface.cpp +++ b/src/plugins/texteditor/codeassist/iassistinterface.cpp @@ -90,7 +90,7 @@ IAssistInterface::~IAssistInterface() Detaches the interface. If it is necessary to take any special care in order to allow this interface to be run in a separate thread \a destination this needs to be done - in this method. + in this function. */ /*! diff --git a/src/plugins/texteditor/generichighlighter/highlighter.cpp b/src/plugins/texteditor/generichighlighter/highlighter.cpp index 06106e9703bb6c3a75366ee8b0f7192b3835a89f..787b1fc1b8ddeef46bf5d3d2cd6a2b08bf6e55e5 100644 --- a/src/plugins/texteditor/generichighlighter/highlighter.cpp +++ b/src/plugins/texteditor/generichighlighter/highlighter.cpp @@ -416,7 +416,7 @@ void Highlighter::applyFormat(int offset, QTextCharFormat format = formatForCategory(formatId); if (itemData->isCustomized()) { // Please notice that the following are applied every time for item data which have - // customizations. The configureFormats method could be used to provide a "one time" + // customizations. The configureFormats function could be used to provide a "one time" // configuration, but it would probably require to traverse all item data from all // definitions available/loaded (either to set the values or for some "notifying" // strategy). This is because the highlighter does not really know on which diff --git a/src/plugins/texteditor/highlighterutils.h b/src/plugins/texteditor/highlighterutils.h index dd6bc5343dce25a517cadafb3e6090da021cec12..8e9fba0f442190f9af6f15f944690880655a7fd5 100644 --- a/src/plugins/texteditor/highlighterutils.h +++ b/src/plugins/texteditor/highlighterutils.h @@ -33,9 +33,9 @@ #include <QString> #include "texteditor_global.h" -/* These methods were originally a part of TextEditor::Highlighter, +/* These functions were originally a part of TextEditor::Highlighter, * but due to a very hackish test of that generic highlighter, - * there methods must be outside. */ + * there functions must be outside. */ namespace Core { class MimeType; diff --git a/src/plugins/texteditor/quickfix.h b/src/plugins/texteditor/quickfix.h index d4317aab6c84c307b363abb7ad092bf64c7ba365..349c003f2ed0ab0bbf03347493dc54b68e3afd53 100644 --- a/src/plugins/texteditor/quickfix.h +++ b/src/plugins/texteditor/quickfix.h @@ -81,7 +81,7 @@ public: /*! Perform this quick-fix's operation. - Subclasses should implement this method to do the actual changes. + Subclasses should implement this function to do the actual changes. */ virtual void perform() = 0; diff --git a/src/plugins/texteditor/syntaxhighlighter.cpp b/src/plugins/texteditor/syntaxhighlighter.cpp index 1cf9359c372b7de8247816283bdf29681dada3ca..8066f8d7f7cc621f222b3167a50db2e9038cc815 100644 --- a/src/plugins/texteditor/syntaxhighlighter.cpp +++ b/src/plugins/texteditor/syntaxhighlighter.cpp @@ -693,7 +693,7 @@ static bool byStartOfRange(const QTextLayout::FormatRange &range, const QTextLay } // The formats is passed in by reference in order to prevent unnecessary copying of its items. -// After this method returns, the list is modified, and should be considered invalidated! +// After this function returns, the list is modified, and should be considered invalidated! void SyntaxHighlighter::setExtraAdditionalFormats(const QTextBlock& block, QList<QTextLayout::FormatRange> &formats) { diff --git a/src/plugins/texteditor/texteditorsettings.cpp b/src/plugins/texteditor/texteditorsettings.cpp index e795b3ab3b29fd93e626cb8d2dbff2ae32ba120a..3a98d51e60725fcadc6470d049c1152d871f0b17 100644 --- a/src/plugins/texteditor/texteditorsettings.cpp +++ b/src/plugins/texteditor/texteditorsettings.cpp @@ -150,8 +150,8 @@ TextEditorSettings::TextEditorSettings(QObject *parent) formatDescr.append(FormatDescription(C_FUNCTION, tr("Function"), tr("Name of a function."), functionFormat)); functionFormat.setItalic(true); - formatDescr.append(FormatDescription(C_VIRTUAL_METHOD, tr("Virtual Method"), - tr("Name of method declared as virtual."), + formatDescr.append(FormatDescription(C_VIRTUAL_METHOD, tr("Virtual Function"), + tr("Name of function declared as virtual."), functionFormat)); formatDescr.append(FormatDescription(C_BINDING, tr("QML Binding"), diff --git a/src/plugins/valgrind/callgrind/callgrindparser.h b/src/plugins/valgrind/callgrind/callgrindparser.h index acf45243123fb4c9b2f60390af7d17076e425679..275eaa2481d8ee51ea81fdbcd40e3c33b8f8edad 100644 --- a/src/plugins/valgrind/callgrind/callgrindparser.h +++ b/src/plugins/valgrind/callgrind/callgrindparser.h @@ -58,7 +58,7 @@ public: explicit Parser(QObject *parent = 0); ~Parser(); - // get and take ownership of the parsing results. If this method is not called the repository + // get and take ownership of the parsing results. If this function is not called the repository // will be destroyed when the parser is destroyed. Subsequent calls return null. ParseData *takeData(); diff --git a/src/plugins/valgrind/callgrind/callgrindrunner.cpp b/src/plugins/valgrind/callgrind/callgrindrunner.cpp index e0e37e08104101a947103ce9b0c51efdb5cee080..b5e48228683d737d72ab9831a6f25ec04ed8b2fd 100644 --- a/src/plugins/valgrind/callgrind/callgrindrunner.cpp +++ b/src/plugins/valgrind/callgrind/callgrindrunner.cpp @@ -79,7 +79,7 @@ void CallgrindRunner::processFinished(int ret, QProcess::ExitStatus status) triggerParse(); m_controller->setValgrindProcess(0); - ValgrindRunner::processFinished(ret, status); // call base class method + ValgrindRunner::processFinished(ret, status); // call base class function } bool CallgrindRunner::isPaused() const diff --git a/src/plugins/valgrind/memcheckerrorview.cpp b/src/plugins/valgrind/memcheckerrorview.cpp index 09c08b0b40bad50a8f57686e5c22471d338d1ab9..fdd8791bda5a8e1da70f5f9bf7102d6d92d40363 100644 --- a/src/plugins/valgrind/memcheckerrorview.cpp +++ b/src/plugins/valgrind/memcheckerrorview.cpp @@ -93,7 +93,7 @@ private slots: void openLinkInEditor(const QString &link); private: - // the constness of this method is a necessary lie because it is called from paint() const. + // the constness of this function is a necessary lie because it is called from paint() const. QWidget *createDetailsWidget(const QModelIndex &errorIndex, QWidget *parent) const; static const int s_itemMargin = 2; diff --git a/src/plugins/vcsbase/vcsbaseplugin.h b/src/plugins/vcsbase/vcsbaseplugin.h index 5799f8bf991a2ac612853a0ac9b115306f4304f3..ce379754f695aa13b908416a87601f82e0f67dce 100644 --- a/src/plugins/vcsbase/vcsbaseplugin.h +++ b/src/plugins/vcsbase/vcsbaseplugin.h @@ -200,7 +200,7 @@ protected: // Sets the current submit editor for this specific version control plugin. // The plugin automatically checks if the submit editor is closed and calls // submitEditorAboutToClose(). - // The method raiseSubmitEditor can be used to check for a running submit editor and raise it. + // The function raiseSubmitEditor can be used to check for a running submit editor and raise it. void setSubmitEditor(VcsBaseSubmitEditor *submitEditor); // Current submit editor set through setSubmitEditor, if it wasn't closed inbetween VcsBaseSubmitEditor *submitEditor() const; diff --git a/src/plugins/welcome/welcomeplugin.cpp b/src/plugins/welcome/welcomeplugin.cpp index 6b0b3bce4821dfea77d8d41f9700e174cd8ccad3..202645a5d4384e7e28fe4b65a61f929e41db02c0 100644 --- a/src/plugins/welcome/welcomeplugin.cpp +++ b/src/plugins/welcome/welcomeplugin.cpp @@ -353,7 +353,7 @@ bool WelcomePlugin::initialize(const QStringList & /* arguments */, QString * /* /*! Notification that all extensions that this plugin depends on have been initialized. The dependencies are defined in the plugins .qwp file. - Normally this method is used for things that rely on other plugins to have + Normally this function is used for things that rely on other plugins to have added objects to the plugin manager, that implement interfaces that we're interested in. These objects can now be requested through the PluginManagerInterface. diff --git a/tests/manual/cplusplus-tools/main.cpp b/tests/manual/cplusplus-tools/main.cpp index 8d0dec110d51575383d288e9f7e82ff073ce4c0d..b55a542181c0ba45859cacb2c302a34e7b5f302d 100644 --- a/tests/manual/cplusplus-tools/main.cpp +++ b/tests/manual/cplusplus-tools/main.cpp @@ -185,7 +185,7 @@ void testTypeHierarchy() /* Switch declaration/definition - - Use methods from Dummy. + - Use functions from Dummy. */ /* diff --git a/tests/tools/qml-ast2dot/main.cpp b/tests/tools/qml-ast2dot/main.cpp index 3213ba0e76e412abe3d72622efab048d0abf502c..f268e90246fb6911ea1400ba0e8cecd06c3b4998 100644 --- a/tests/tools/qml-ast2dot/main.cpp +++ b/tests/tools/qml-ast2dot/main.cpp @@ -147,7 +147,7 @@ protected: _stack.removeLast(); } -protected: // visiting methods: +protected: // visiting functions: virtual bool visit(UiImport *ast) { terminal(ast->importToken);