File indexing completed on 2024-05-05 04:41:57
0001 // SPDX-FileCopyrightText: 2020 Carson Black <uhhadd@gmail.com> 0002 // 0003 // SPDX-License-Identifier: LGPL-2.0-or-later 0004 0005 #pragma once 0006 0007 #include <QColor> 0008 #include <QObject> 0009 #include <QVariant> 0010 0011 class NameUtils : public QObject 0012 { 0013 Q_OBJECT 0014 0015 public: 0016 Q_INVOKABLE QString initialsFromString(const QString &name); 0017 Q_INVOKABLE QColor colorsFromString(const QString &name); 0018 Q_INVOKABLE bool isStringUnsuitableForInitials(const QString &name); 0019 };