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

kcachegrind

  • sources
  • kde-4.12
  • kdesdk
  • kcachegrind
  • libviews
eventtypeitem.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 /*
20  * Items of event type view.
21  */
22 
23 #ifndef EVENTTYPEITEM_H
24 #define EVENTTYPEITEM_H
25 
26 #include <QTreeWidgetItem>
27 
28 #include "tracedata.h"
29 
30 class EventTypeItem: public QTreeWidgetItem
31 {
32 public:
33  EventTypeItem(TraceCostItem* costItem,
34  EventType* ct, ProfileContext::Type gt);
35 
36  bool operator<(const QTreeWidgetItem &other) const;
37  void setGroupType(ProfileContext::Type);
38  TraceCostItem* costItem() { return _costItem; }
39  EventType* eventType() { return _eventType; }
40  void update();
41 
42  QVariant data(int column, int role) const;
43 
44 private:
45  SubCost _sum, _pure;
46  EventType* _eventType;
47  TraceCostItem* _costItem;
48  ProfileContext::Type _groupType;
49 };
50 
51 #endif // EVENTTYPEITEM_H
EventTypeItem::data
QVariant data(int column, int role) const
Definition: eventtypeitem.cpp:149
TraceCostItem
Definition: tracedata.h:980
EventTypeItem::eventType
EventType * eventType()
Definition: eventtypeitem.h:39
EventType
A cost type, e.g.
Definition: eventtype.h:43
EventTypeItem
Definition: eventtypeitem.h:30
tracedata.h
EventTypeItem::setGroupType
void setGroupType(ProfileContext::Type)
Definition: eventtypeitem.cpp:64
EventTypeItem::EventTypeItem
EventTypeItem(TraceCostItem *costItem, EventType *ct, ProfileContext::Type gt)
Definition: eventtypeitem.cpp:34
EventTypeItem::operator<
bool operator<(const QTreeWidgetItem &other) const
Definition: eventtypeitem.cpp:137
QTreeWidgetItem
EventTypeItem::update
void update()
Definition: eventtypeitem.cpp:72
EventTypeItem::costItem
TraceCostItem * costItem()
Definition: eventtypeitem.h:38
ProfileContext::Type
Type
Definition: context.h:36
SubCost
Cost event counter, simple wrapper around a 64bit entity.
Definition: subcost.h:32
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:03:27 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
  • okteta
  • 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