Krita Source Code Documentation
Loading...
Searching...
No Matches
KoSvgTextPropertyData.cpp File Reference
#include "KoSvgTextPropertyData.h"
#include <QDebug>
#include <KisStaticInitializer.h>

Go to the source code of this file.

Functions

QDebug operator<< (QDebug dbg, const KoSvgTextPropertyData &prop)
 

Variables

 KIS_DECLARE_STATIC_INITIALIZER
 

Function Documentation

◆ operator<<()

QDebug operator<< ( QDebug dbg,
const KoSvgTextPropertyData & prop )

Definition at line 20 of file KoSvgTextPropertyData.cpp.

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}
QMap< QString, QString > convertToSvgTextAttributes() const
QMap< QString, QString > convertParagraphProperties() const
convertParagraphProperties some properties only apply to the root shape, so we write those separately...
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.

References KoSvgTextPropertyData::commonProperties, KoSvgTextProperties::convertParagraphProperties(), KoSvgTextProperties::convertToSvgTextAttributes(), and KoSvgTextPropertyData::tristate.

Variable Documentation

◆ KIS_DECLARE_STATIC_INITIALIZER

KIS_DECLARE_STATIC_INITIALIZER
Initial value:
{
qRegisterMetaType<KoSvgTextPropertyData>("KoSvgTextPropertyData")

Definition at line 11 of file KoSvgTextPropertyData.cpp.