ViewSolutions
Loading...
Searching...
No Matches
avatargenerator.h
Go to the documentation of this file.
1//#
2//# Copyright (C) 2025-2025 QuasarApp.
3//# Distributed under the GPLv3 software license, see the accompanying
4//# Everyone is permitted to copy and distribute verbatim copies
5//# of this license document, but changing it is not allowed.
6//#
7
8
9
10#ifndef AVATARGENERATOR_H
11#define AVATARGENERATOR_H
12
13#include <QImage>
14
15namespace ViewSolutions {
16
22{
23public:
25
35 bool generateDefaultAvatar(QImage &result, const QString &nickName,
36 const QFont& font, const QColor& color = {}) const;
37
38
39};
40
41}
42#endif // AVATARGENERATOR_H
The AvatarGenerator class contains function for create default users avatars.
bool generateDefaultAvatar(QImage &result, const QString &nickName, const QFont &font, const QColor &color={}) const
generateDefaultAvatar generates default avatar. This function generate Ellipse with 2 first letters o...
the ViewSolutions namespace