• 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
stackitem.h
Go to the documentation of this file.
1 /* This file is part of KCachegrind.
2  Copyright (C) 2003-2011, 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 stack dockable.
21  */
22 
23 #ifndef STACKITEM_H
24 #define STACKITEM_H
25 
26 #include <QTreeWidget>
27 
28 #include "tracedata.h"
29 
30 class StackSelection;
31 
32 
33 // for the stack browser
34 
35 class StackItem: public QTreeWidgetItem
36 {
37 public:
38  // for top
39  StackItem(StackSelection* ss, QTreeWidget* parent, TraceFunction* f);
40  StackItem(StackSelection* ss, QTreeWidget* parent, TraceCall* c);
41 
42  TraceFunction* function() { return _function; }
43  TraceCall* call() { return _call; }
44  void updateGroup();
45  void updateCost();
46 
47 private:
48  StackSelection* _view;
49  SubCost _sum;
50  TraceFunction* _function;
51  TraceCall* _call;
52 };
53 
54 #endif // STACKITEM_H
StackItem::StackItem
StackItem(StackSelection *ss, QTreeWidget *parent, TraceFunction *f)
Definition: stackitem.cpp:34
TraceFunction
A traced function.
Definition: tracedata.h:1122
QTreeWidget
tracedata.h
StackSelection
Definition: stackselection.h:38
StackItem::call
TraceCall * call()
Definition: stackitem.h:43
QTreeWidgetItem::parent
QTreeWidgetItem * parent() const
QTreeWidgetItem
SubCost
Cost event counter, simple wrapper around a 64bit entity.
Definition: subcost.h:32
StackItem
Definition: stackitem.h:35
StackItem::updateGroup
void updateGroup()
Definition: stackitem.cpp:72
TraceCall
A call from one to another function.
Definition: tracedata.h:835
StackItem::updateCost
void updateCost()
Definition: stackitem.cpp:79
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