1 /* 2 This file is part of KCachegrind. 3 4 SPDX-FileCopyrightText: 2003-2016 Josef Weidendorfer <Josef.Weidendorfer@gmx.de> 5 6 SPDX-License-Identifier: GPL-2.0-only 7 */ 8 9 /* 10 * Some helper functions for QListViewItem derivates 11 */ 12 13 #ifndef LISTUTILS_H 14 #define LISTUTILS_H 15 16 #include <QPixmap> 17 #include <QString> 18 #include <QColor> 19 20 #include "subcost.h" 21 22 class EventType; 23 class EventTypeSet; 24 25 QString bigNum(SubCost); 26 QPixmap colorPixmap(int w, int h, QColor c); 27 QPixmap percentagePixmap(int w, int h, int percent, QColor c, bool framed); 28 QPixmap partitionPixmap(int w, int h, double* hist, EventTypeSet*, 29 int maxIndex, bool framed); 30 QPixmap costPixmap(EventType* ct, ProfileCostArray* cost, 31 double total, bool framed); 32 33 #endif 34