diff options
author | hjk <hjk121@nokiamail.com> | 2014-10-01 21:37:25 +0200 |
---|---|---|
committer | hjk <hjk121@nokiamail.com> | 2014-10-02 10:42:50 +0200 |
commit | 7dfbb1b1995bd2870cc80beab5724bd39dfe3be4 (patch) | |
tree | 58a2a309091789341bc6e40ff8d30c886c20b347 /src/plugins/texteditor | |
parent | f566d7eae0cc1818d4c8688b6906182022ba5cec (diff) | |
download | qt-creator-7dfbb1b1995bd2870cc80beab5724bd39dfe3be4.tar.gz |
TextEditor: Remove HighLighterFactory
Unused.
Change-Id: Idd9805756c51e025e99842fa6fc8707b10927c4d
Reviewed-by: David Schulz <david.schulz@digia.com>
Diffstat (limited to 'src/plugins/texteditor')
-rw-r--r-- | src/plugins/texteditor/highlighterfactory.h | 71 | ||||
-rw-r--r-- | src/plugins/texteditor/texteditor.pro | 1 | ||||
-rw-r--r-- | src/plugins/texteditor/texteditor.qbs | 1 |
3 files changed, 0 insertions, 73 deletions
diff --git a/src/plugins/texteditor/highlighterfactory.h b/src/plugins/texteditor/highlighterfactory.h deleted file mode 100644 index 5576480824..0000000000 --- a/src/plugins/texteditor/highlighterfactory.h +++ /dev/null @@ -1,71 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/legal -** -** This file is part of Qt Creator. -** -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -****************************************************************************/ - -#ifndef HIGHLIGHTERFACTORY_H -#define HIGHLIGHTERFACTORY_H - -#include <texteditor/texteditor_global.h> -#include <coreplugin/id.h> - -#include <QObject> -#include <QStringList> - -#include <functional> - -namespace TextEditor { - -class SyntaxHighlighter; - -class TEXTEDITOR_EXPORT HighlighterFactory : public QObject -{ - Q_OBJECT - -public: - typedef std::function<SyntaxHighlighter *()> Creator; - TextEditor::SyntaxHighlighter *createHighlighter() const { return m_creator(); } - - template <class T> void setProductType() { m_creator = []() { return new T; }; } - Core::Id id() const { return m_id; } - QStringList mimeTypes() const { return m_mimeTypes; } - - void setId(Core::Id id) { m_id = id; } - void setMimeTypes(const QStringList &mimeTypes) { m_mimeTypes = mimeTypes; } - void addMimeType(const char *mimeType) { m_mimeTypes.append(QLatin1String(mimeType)); } - void addMimeType(const QString &mimeType) { m_mimeTypes.append(mimeType); } - -private: - Core::Id m_id; - QStringList m_mimeTypes; - Creator m_creator; -}; - -} // TextEditor - -#endif // HIGHLIGHTERFACTORY_H - diff --git a/src/plugins/texteditor/texteditor.pro b/src/plugins/texteditor/texteditor.pro index 92066eab39..a4f47b2500 100644 --- a/src/plugins/texteditor/texteditor.pro +++ b/src/plugins/texteditor/texteditor.pro @@ -134,7 +134,6 @@ HEADERS += texteditorplugin.h \ normalindenter.h \ indenter.h \ quickfix.h \ - highlighterfactory.h \ syntaxhighlighter.h \ highlighterutils.h \ generichighlighter/reuse.h \ diff --git a/src/plugins/texteditor/texteditor.qbs b/src/plugins/texteditor/texteditor.qbs index af44f3007d..cb40fd5ab6 100644 --- a/src/plugins/texteditor/texteditor.qbs +++ b/src/plugins/texteditor/texteditor.qbs @@ -77,7 +77,6 @@ QtcPlugin { "icodestylepreferences.h", "icodestylepreferencesfactory.cpp", "icodestylepreferencesfactory.h", - "highlighterfactory.h", "indenter.cpp", "indenter.h", "ioutlinewidget.h", |