summaryrefslogtreecommitdiff
path: root/src/plugins/cppeditor/cppclasswizard.cpp
diff options
context:
space:
mode:
authorLeandro Melo <leandro.melo@nokia.com>2010-09-07 15:06:54 +0200
committerLeandro Melo <leandro.melo@nokia.com>2010-09-08 16:39:26 +0200
commitf7532a02d080c37a27488a4b5ed28d455063701a (patch)
treee2e458c078888dd446aa42f337d4c599a1d8d887 /src/plugins/cppeditor/cppclasswizard.cpp
parent1a08caf77f9933daf628e3616f83b09b7f80b096 (diff)
downloadqt-creator-f7532a02d080c37a27488a4b5ed28d455063701a.tar.gz
Do not force a specific editor for a file created from a wizard.
The wizards already provide a default suffix for file creation. But since the user is still free to specify something else it's better to leave it to Creator to decide which one is the proper editor. After all, this reflects how the file will be treated by Creator (including the next time it's opened). Task-number: QTCREATORBUG-2006
Diffstat (limited to 'src/plugins/cppeditor/cppclasswizard.cpp')
-rw-r--r--src/plugins/cppeditor/cppclasswizard.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/plugins/cppeditor/cppclasswizard.cpp b/src/plugins/cppeditor/cppclasswizard.cpp
index 6c841fcd68..7843dc97fd 100644
--- a/src/plugins/cppeditor/cppclasswizard.cpp
+++ b/src/plugins/cppeditor/cppclasswizard.cpp
@@ -199,10 +199,7 @@ Core::GeneratedFiles CppClassWizard::generateFiles(const QWizard *w, QString *er
const QString headerFileName = Core::BaseFileWizard::buildFileName(params.path, params.headerFile, headerSuffix());
Core::GeneratedFile sourceFile(sourceFileName);
- sourceFile.setEditorId(QLatin1String(Constants::CPPEDITOR_ID));
-
Core::GeneratedFile headerFile(headerFileName);
- headerFile.setEditorId(QLatin1String(Constants::CPPEDITOR_ID));
QString header, source;
if (!generateHeaderAndSource(params, &header, &source)) {