File indexing completed on 2024-12-01 04:36:37

0001 /*
0002    SPDX-FileCopyrightText: 2020-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include <QString>
0010 class QPainter;
0011 class QPointF;
0012 class QPoint;
0013 class QRectF;
0014 class QPixmap;
0015 
0016 namespace DelegatePaintUtil
0017 {
0018 void drawLighterText(QPainter *painter, const QString &text, QPoint pos);
0019 [[nodiscard]] int margin();
0020 void createClipRoundedRectangle(QPainter *painter, const QRectF &rect, QPointF pos, const QPixmap &pix);
0021 }