forked from qt-creator/qt-creator
use Core::Id for IEditorFactory::id
Change-Id: Iefd67a0461d9016b8ba0f3371df7ec6d42e188c5 Reviewed-on: http://codereview.qt-project.org/4321 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -48,13 +48,9 @@ CMakeEditorFactory::CMakeEditorFactory(CMakeManager *manager, TextEditor::TextEd
|
||||
|
||||
}
|
||||
|
||||
CMakeEditorFactory::~CMakeEditorFactory()
|
||||
Core::Id CMakeEditorFactory::id() const
|
||||
{
|
||||
}
|
||||
|
||||
QString CMakeEditorFactory::id() const
|
||||
{
|
||||
return QLatin1String(CMakeProjectManager::Constants::CMAKE_EDITOR_ID);
|
||||
return CMakeProjectManager::Constants::CMAKE_EDITOR_ID;
|
||||
}
|
||||
|
||||
QString CMakeEditorFactory::displayName() const
|
||||
|
||||
@@ -33,21 +33,17 @@
|
||||
#ifndef CMAKEEDITORFACTORY_H
|
||||
#define CMAKEEDITORFACTORY_H
|
||||
|
||||
#include <coreplugin/editormanager/ieditorfactory.h>
|
||||
#include "cmakeprojectmanager.h"
|
||||
|
||||
#include <QtCore/QStringList>
|
||||
#include <coreplugin/editormanager/ieditorfactory.h>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
class QAction;
|
||||
QT_END_NAMESPACE
|
||||
#include <QtCore/QStringList>
|
||||
|
||||
namespace TextEditor {
|
||||
class TextEditorActionHandler;
|
||||
}
|
||||
|
||||
namespace CMakeProjectManager {
|
||||
|
||||
namespace Internal {
|
||||
|
||||
class CMakeEditorFactory : public Core::IEditorFactory
|
||||
@@ -56,11 +52,11 @@ class CMakeEditorFactory : public Core::IEditorFactory
|
||||
|
||||
public:
|
||||
CMakeEditorFactory(CMakeManager *parent, TextEditor::TextEditorActionHandler *handler);
|
||||
~CMakeEditorFactory();
|
||||
|
||||
virtual QStringList mimeTypes() const;
|
||||
virtual QString id() const;
|
||||
virtual QString displayName() const;
|
||||
// IEditorFactory
|
||||
QStringList mimeTypes() const;
|
||||
Core::Id id() const;
|
||||
QString displayName() const;
|
||||
Core::IFile *open(const QString &fileName);
|
||||
Core::IEditor *createEditor(QWidget *parent);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user