Krita Source Code Documentation
Loading...
Searching...
No Matches
SvgRichTextCtrl.cpp
Go to the documentation of this file.
1
/* This file is part of the KDE project
2
*
3
* SPDX-FileCopyrightText: 2018 Mehmet Salih Çalışkan <msalihcaliskan@gmail.com>
4
*
5
* SPDX-License-Identifier: LGPL-2.0-or-later
6
*/
7
8
#include "
SvgRichTextCtrl.h
"
9
#include <QMimeData>
10
11
SvgRichTextCtrl::SvgRichTextCtrl
(QWidget* parent
/*= nullptr*/
)
12
: QTextEdit(parent)
13
{
14
}
15
16
void
SvgRichTextCtrl::insertFromMimeData
(
const
QMimeData *
source
)
17
{
18
if
(!
source
->hasHtml() &&
source
->hasText()) {
19
QTextCursor cursor = textCursor();
20
cursor.insertText(
source
->text());
21
}
else
{
22
QTextEdit::insertFromMimeData(
source
);
23
}
24
}
source
KisMagneticGraph::vertex_descriptor source(typename KisMagneticGraph::edge_descriptor e, KisMagneticGraph g)
Definition
KisMagneticGraph.h:251
SvgRichTextCtrl.h
SvgRichTextCtrl::insertFromMimeData
void insertFromMimeData(const QMimeData *source) override
Definition
SvgRichTextCtrl.cpp:16
SvgRichTextCtrl::SvgRichTextCtrl
SvgRichTextCtrl(QWidget *parent=nullptr)
Definition
SvgRichTextCtrl.cpp:11
plugins
tools
svgtexttool
SvgRichTextCtrl.cpp
Generated at
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52