Krita Source Code Documentation
Loading...
Searching...
No Matches
KoSvgTextPropertyData.cpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2024 Wolthera van Hövell tot Westerflier <griffinvalley@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
7#include <QDebug>
8
10
12 qRegisterMetaType<KoSvgTextPropertyData>("KoSvgTextPropertyData");
13
14#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
15 QMetaType::registerEqualsComparator<KoSvgTextPropertyData>();
16 QMetaType::registerDebugStreamOperator<KoSvgTextPropertyData>();
17#endif
18}
19
20QDebug operator<<(QDebug dbg, const KoSvgTextPropertyData &prop)
21{
22 dbg.nospace() << "TextPropertyData(";
23 dbg.nospace() << " Common properties:" << prop.commonProperties.convertParagraphProperties() << prop.commonProperties.convertToSvgTextAttributes();
24 dbg.nospace() << " Tristate:" << prop.tristate;
25 dbg.nospace() << " )";
26 return dbg.space();
27}
KIS_DECLARE_STATIC_INITIALIZER
QDebug operator<<(QDebug dbg, const KoSvgTextPropertyData &prop)
QMap< QString, QString > convertToSvgTextAttributes() const
QMap< QString, QString > convertParagraphProperties() const
convertParagraphProperties some properties only apply to the root shape, so we write those separately...
The KoSvgTextPropertyData struct.
KoSvgTextProperties commonProperties
The properties common between all the selected text.
QSet< KoSvgTextProperties::PropertyId > tristate
The properties that are not common (tri-state) between the selected text.