File indexing completed on 2024-04-28 05:41:35

0001 /*
0002     This file is part of KCachegrind.
0003 
0004     SPDX-FileCopyrightText: 2003-2016 Josef Weidendorfer <Josef.Weidendorfer@gmx.de>
0005 
0006     SPDX-License-Identifier: GPL-2.0-only
0007 */
0008 
0009 /*
0010  * Some helper functions for QListViewItem derivates
0011  */
0012 
0013 #ifndef LISTUTILS_H
0014 #define LISTUTILS_H
0015 
0016 #include <QPixmap>
0017 #include <QString>
0018 #include <QColor>
0019 
0020 #include "subcost.h"
0021 
0022 class EventType;
0023 class EventTypeSet;
0024 
0025 QString bigNum(SubCost);
0026 QPixmap colorPixmap(int w, int h, QColor c);
0027 QPixmap percentagePixmap(int w, int h, int percent, QColor c, bool framed);
0028 QPixmap partitionPixmap(int w, int h, double* hist, EventTypeSet*,
0029                         int maxIndex, bool framed);
0030 QPixmap costPixmap(EventType* ct, ProfileCostArray* cost,
0031                    double total, bool framed);
0032 
0033 #endif