Skip to content

armgit / krita

Public Imported from GitHub
0

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++
1014 B
Raw Blame
/*
 *  SPDX-FileCopyrightText: 2024 Wolthera van Hövell tot Westerflier <[email protected]>
 *
 *  SPDX-License-Identifier: GPL-2.0-or-later
 */
#include "KoSvgTextPropertyData.h"
#include <QDebug>

#include <KisStaticInitializer.h>

KIS_DECLARE_STATIC_INITIALIZER {
    qRegisterMetaType<KoSvgTextPropertyData>("KoSvgTextPropertyData");

#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
    QMetaType::registerEqualsComparator<KoSvgTextPropertyData>();
    QMetaType::registerDebugStreamOperator<KoSvgTextPropertyData>();
#endif
}

QDebug operator<<(QDebug dbg, const KoSvgTextPropertyData &prop)
{
    dbg.nospace() << "TextPropertyData(";
    dbg.nospace() << " Common properties:" << prop.commonProperties.convertParagraphProperties() << prop.commonProperties.convertToSvgTextAttributes();
    dbg.nospace() << " Tristate:" << prop.tristate;
    dbg.nospace() << " SpanSelection:" << prop.spanSelection;
    dbg.nospace() << " Enabled:" << prop.enabled;
    dbg.nospace() << " )";
    return dbg.space();
}