aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/texteditor/generichighlighter/itemdata.cpp
diff options
context:
space:
mode:
authorDavid Schulz <david.schulz@qt.io>2018-11-08 11:39:48 +0100
committerDavid Schulz <david.schulz@qt.io>2019-01-28 11:37:08 +0000
commit14834e6b0a4e7c1272ec3a1838b0634dd66e72ea (patch)
tree23caed8a748c0d38c59e1f92b448551122d11df2 /src/plugins/texteditor/generichighlighter/itemdata.cpp
parent1c77d7e1a79f59485eb90c066d17ec7436f46a93 (diff)
TextEditor: replace generic highlighter with ksyntaxhighlighting
Fixes: QTCREATORBUG-21029 Change-Id: I9894c4384e0e47da6bf030b7b8e07c3ad4737ff3 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/plugins/texteditor/generichighlighter/itemdata.cpp')
-rw-r--r--src/plugins/texteditor/generichighlighter/itemdata.cpp133
1 files changed, 0 insertions, 133 deletions
diff --git a/src/plugins/texteditor/generichighlighter/itemdata.cpp b/src/plugins/texteditor/generichighlighter/itemdata.cpp
deleted file mode 100644
index e7ae9b9533..0000000000
--- a/src/plugins/texteditor/generichighlighter/itemdata.cpp
+++ /dev/null
@@ -1,133 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** 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 The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-****************************************************************************/
-
-#include "itemdata.h"
-#include "reuse.h"
-
-using namespace TextEditor;
-using namespace Internal;
-
-ItemData::ItemData() :
- m_italic(false),
- m_italicSpecified(false),
- m_bold(false),
- m_boldSpecified(false),
- m_underlined(false),
- m_underlinedSpecified(false),
- m_strikedOut(false),
- m_strikeOutSpecified(false),
- m_isCustomized(false)
-{}
-
-void ItemData::setStyle(const QString &style)
-{ m_style = style; }
-
-const QString &ItemData::style() const
-{ return m_style; }
-
-void ItemData::setColor(const QString &color)
-{
- if (!color.isEmpty()) {
- m_color.setNamedColor(color);
- m_isCustomized = true;
- }
-}
-
-const QColor &ItemData::color() const
-{ return m_color; }
-
-void ItemData::setSelectionColor(const QString &color)
-{
- if (!color.isEmpty()) {
- m_selectionColor.setNamedColor(color);
- m_isCustomized = true;
- }
-}
-
-const QColor &ItemData::selectionColor() const
-{ return m_selectionColor; }
-
-void ItemData::setItalic(const QString &italic)
-{
- if (!italic.isEmpty()) {
- m_italic = toBool(italic);
- m_italicSpecified = true;
- m_isCustomized = true;
- }
-}
-
-bool ItemData::isItalic() const
-{ return m_italic; }
-
-bool ItemData::isItalicSpecified() const
-{ return m_italicSpecified; }
-
-void ItemData::setBold(const QString &bold)
-{
- if (!bold.isEmpty()) {
- m_bold = toBool(bold);
- m_boldSpecified = true;
- m_isCustomized = true;
- }
-}
-
-bool ItemData::isBold() const
-{ return m_bold; }
-
-bool ItemData::isBoldSpecified() const
-{ return m_boldSpecified; }
-
-void ItemData::setUnderlined(const QString &underlined)
-{
- if (!underlined.isEmpty()) {
- m_underlined = toBool(underlined);
- m_underlinedSpecified = true;
- m_isCustomized = true;
- }
-}
-
-bool ItemData::isUnderlined() const
-{ return m_underlined; }
-
-bool ItemData::isUnderlinedSpecified() const
-{ return m_underlinedSpecified; }
-
-void ItemData::setStrikeOut(const QString &strike)
-{
- if (!strike.isEmpty()) {
- m_strikedOut = toBool(strike);
- m_strikeOutSpecified = true;
- m_isCustomized = true;
- }
-}
-
-bool ItemData::isStrikeOut() const
-{ return m_strikedOut; }
-
-bool ItemData::isStrikeOutSpecified() const
-{ return m_strikeOutSpecified; }
-
-bool ItemData::isCustomized() const
-{ return m_isCustomized; }