diff options
author | Tobias Hunger <tobias.hunger@nokia.com> | 2010-01-07 18:17:24 +0100 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@nokia.com> | 2010-01-07 18:17:24 +0100 |
commit | a6ad773722a758df46813afd7af42625a0f3e276 (patch) | |
tree | 8a74e3bb0fe819603e3ce5ed867116e75acc8d64 /src/plugins/texteditor/textfilewizard.cpp | |
parent | 8bb87fcda497d09ac3ba39b38b9c229d02022b09 (diff) | |
download | qt-creator-a6ad773722a758df46813afd7af42625a0f3e276.tar.gz |
Make method naming more consistent.
* Use id() for methods returning a string used to represent
some type of object.
* Use displayName() for strings that are meant to be user
visible.
* Quieten some warnings while touching the files anyway.
* Move Factories to their products in the plugins where that
was not done before.
Reviewed-by: dt
Diffstat (limited to 'src/plugins/texteditor/textfilewizard.cpp')
-rw-r--r-- | src/plugins/texteditor/textfilewizard.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/texteditor/textfilewizard.cpp b/src/plugins/texteditor/textfilewizard.cpp index 9b504854e9..9e7595d458 100644 --- a/src/plugins/texteditor/textfilewizard.cpp +++ b/src/plugins/texteditor/textfilewizard.cpp @@ -35,13 +35,13 @@ using namespace TextEditor; TextFileWizard::TextFileWizard(const QString &mimeType, - const QString &editorKind, + const QString &editorId, const QString &suggestedFileName, const BaseFileWizardParameters ¶meters, QObject *parent) : Core::StandardFileWizard(parameters, parent), m_mimeType(mimeType), - m_editorKind(editorKind), + m_editorId(editorId), m_suggestedFileName(suggestedFileName) { } @@ -53,6 +53,6 @@ Core::GeneratedFiles const QString suffix = preferredSuffix(m_mimeType); const QString fileName = Core::BaseFileWizard::buildFileName(path, name, suffix); Core::GeneratedFile file(fileName); - file.setEditorKind(m_editorKind); + file.setEditorId(m_editorId); return Core::GeneratedFiles() << file; } |