Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
Remove SvgRichTextCtrl
Wolthera van Hövell tot Westerflierd019b7f8f1f1
diff --git a/plugins/tools/svgtexttool/CMakeLists.txt b/plugins/tools/svgtexttool/CMakeLists.txtindex f8e87ef307..223c5979db 100644--- a/plugins/tools/svgtexttool/CMakeLists.txt+++ b/plugins/tools/svgtexttool/CMakeLists.txt@@ -16,7 +16,6 @@ set (SvgTextTool_SRCSSvgTextInsertRichCommand.cppSvgTextRemoveCommand.cppSvgTextMergePropertiesRangeCommand.cpp- SvgRichTextCtrl.cppSvgTextEditor.cppSvgTextCursor.cppSvgTextTool.cppdiff --git a/plugins/tools/svgtexttool/SvgRichTextCtrl.cpp b/plugins/tools/svgtexttool/SvgRichTextCtrl.cppdeleted file mode 100644index 2d3387f6c1..0000000000--- a/plugins/tools/svgtexttool/SvgRichTextCtrl.cpp+++ /dev/null@@ -1,24 +0,0 @@-/* This file is part of the KDE project- *- * SPDX-FileCopyrightText: 2018 Mehmet Salih Çalışkan <[email protected]>- *- * SPDX-License-Identifier: LGPL-2.0-or-later- */--#include "SvgRichTextCtrl.h"-#include <QMimeData>--SvgRichTextCtrl::SvgRichTextCtrl(QWidget* parent /*= nullptr*/)- : QTextEdit(parent)-{-}--void SvgRichTextCtrl::insertFromMimeData(const QMimeData *source)-{- if (!source->hasHtml() && source->hasText()) {- QTextCursor cursor = textCursor();- cursor.insertText(source->text());- } else {- QTextEdit::insertFromMimeData(source);- }-}diff --git a/plugins/tools/svgtexttool/SvgRichTextCtrl.h b/plugins/tools/svgtexttool/SvgRichTextCtrl.hdeleted file mode 100644index f3adb0f018..0000000000--- a/plugins/tools/svgtexttool/SvgRichTextCtrl.h+++ /dev/null@@ -1,22 +0,0 @@-/* This file is part of the KDE project- *- * SPDX-FileCopyrightText: 2018 Mehmet Salih Çalışkan <[email protected]>- *- * SPDX-License-Identifier: LGPL-2.0-or-later- */---#ifndef SVGRICHTEXTCTRL_H-#define SVGRICHTEXTCTRL_H--#include <QTextEdit>--class SvgRichTextCtrl : public QTextEdit-{-public:- SvgRichTextCtrl(QWidget* parent = nullptr);-protected:- void insertFromMimeData(const QMimeData* source) override;-};--#endif // SVGRICHTEXTCTRL_H