• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdesdk API Reference
  • KDE Home
  • Contact Us
 

kcachegrind

  • sources
  • kde-4.14
  • kdesdk
  • kcachegrind
  • libviews
costlistitem.h
Go to the documentation of this file.
1 /* This file is part of KCachegrind.
2  Copyright (C) 2003 Josef Weidendorfer <Josef.Weidendorfer@gmx.de>
3 
4  KCachegrind is free software; you can redistribute it and/or
5  modify it under the terms of the GNU General Public
6  License as published by the Free Software Foundation, version 2.
7 
8  This program is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  General Public License for more details.
12 
13  You should have received a copy of the GNU General Public License
14  along with this program; see the file COPYING. If not, write to
15  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16  Boston, MA 02110-1301, USA.
17 */
18 
19 #ifndef COSTLISTITEM_H
20 #define COSTLISTITEM_H
21 
22 #include <QTreeWidget>
23 
24 #include "tracedata.h"
25 
26 class CostListItem: public QTreeWidgetItem
27 {
28 public:
29  CostListItem(QTreeWidget* parent, TraceCostItem* cost,
30  EventType* et, int size = -1);
31  // entry with multiple skipped items
32  CostListItem(QTreeWidget* parent, int skipped, TraceCostItem* cost,
33  EventType* et);
34 
35  bool operator< ( const QTreeWidgetItem & other ) const;
36  TraceCostItem* costItem() { return (_skipped) ? 0 : _costItem; }
37  void setEventType(EventType* et);
38  void update();
39  void setSize(int s);
40 
41 private:
42  void updateName();
43 
44  SubCost _pure;
45  EventType* _eventType;
46  TraceCostItem* _costItem;
47  // >0 only for last item in list, if items are skipped
48  int _skipped;
49  // number of items in group, is put in parenthesis after name
50  int _groupSize;
51 };
52 
53 #endif
CostListItem::setSize
void setSize(int s)
Definition: costlistitem.cpp:80
CostListItem::setEventType
void setEventType(EventType *et)
Definition: costlistitem.cpp:64
TraceCostItem
Definition: tracedata.h:980
CostListItem::costItem
TraceCostItem * costItem()
Definition: costlistitem.h:36
CostListItem::CostListItem
CostListItem(QTreeWidget *parent, TraceCostItem *cost, EventType *et, int size=-1)
Definition: costlistitem.cpp:33
EventType
A cost type, e.g.
Definition: eventtype.h:43
QTreeWidget
tracedata.h
CostListItem::operator<
bool operator<(const QTreeWidgetItem &other) const
Definition: costlistitem.cpp:116
QTreeWidgetItem::parent
QTreeWidgetItem * parent() const
CostListItem
Definition: costlistitem.h:26
QTreeWidgetItem
SubCost
Cost event counter, simple wrapper around a 64bit entity.
Definition: subcost.h:32
CostListItem::update
void update()
Definition: costlistitem.cpp:86
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:39:50 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kcachegrind

Skip menu "kcachegrind"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdesdk API Reference

Skip menu "kdesdk API Reference"
  • kapptemplate
  • kcachegrind
  • kompare
  • lokalize
  • umbrello
  •   umbrello

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal