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:
@@ -95,13 +95,9 @@ QmlJSEditorFactory::QmlJSEditorFactory(QObject *parent)
|
||||
;
|
||||
}
|
||||
|
||||
QmlJSEditorFactory::~QmlJSEditorFactory()
|
||||
Core::Id QmlJSEditorFactory::id() const
|
||||
{
|
||||
}
|
||||
|
||||
QString QmlJSEditorFactory::id() const
|
||||
{
|
||||
return QLatin1String(C_QMLJSEDITOR_ID);
|
||||
return C_QMLJSEDITOR_ID;
|
||||
}
|
||||
|
||||
QString QmlJSEditorFactory::displayName() const
|
||||
|
||||
@@ -37,26 +37,19 @@
|
||||
|
||||
#include <QtCore/QStringList>
|
||||
|
||||
namespace TextEditor {
|
||||
class TextEditorActionHandler;
|
||||
}
|
||||
|
||||
namespace QmlJSEditor {
|
||||
namespace Internal {
|
||||
|
||||
class QmlJSEditorActionHandler;
|
||||
|
||||
class QmlJSEditorFactory : public Core::IEditorFactory
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
QmlJSEditorFactory(QObject *parent);
|
||||
~QmlJSEditorFactory();
|
||||
|
||||
virtual QStringList mimeTypes() const;
|
||||
// IEditorFactory
|
||||
QString id() const;
|
||||
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