Kirigami-addons

nameutils.h
1// SPDX-FileCopyrightText: 2020 Carson Black <uhhadd@gmail.com>
2//
3// SPDX-License-Identifier: LGPL-2.0-or-later
4
5#pragma once
6
7#include <QColor>
8#include <QObject>
9#include <QVariant>
10#include <qqmlregistration.h>
11
12class NameUtils : public QObject
13{
15 QML_ELEMENT
16 QML_SINGLETON
17
18public:
19 Q_INVOKABLE QString initialsFromString(const QString &name);
20 Q_INVOKABLE QColor colorsFromString(const QString &name);
21 Q_INVOKABLE bool isStringUnsuitableForInitials(const QString &name);
22};
Q_INVOKABLEQ_INVOKABLE
Q_OBJECTQ_OBJECT
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 6 2024 12:05:53 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.