• 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
coverageview.h
Go to the documentation of this file.
1 /* This file is part of KCachegrind.
2  Copyright (C) 2003-2009 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  * Coverage Views
21  */
22 
23 #ifndef COVERAGEVIEW_H
24 #define COVERAGEVIEW_H
25 
26 #include <QTreeWidget>
27 
28 #include "tracedata.h"
29 #include "traceitemview.h"
30 #include "listutils.h"
31 
32 class CoverageView: public QTreeWidget, public TraceItemView
33 {
34  Q_OBJECT
35 
36 public:
37  CoverageView(bool showCallers, TraceItemView* parentView,
38  QWidget* parent = 0);
39 
40  virtual QWidget* widget() { return this; }
41  QString whatsThis() const;
42 
43 protected slots:
44  void context(const QPoint &);
45  void selectedSlot(QTreeWidgetItem*, QTreeWidgetItem*);
46  void activatedSlot(QTreeWidgetItem*, int);
47  void headerClicked(int);
48 
49 protected:
50  void keyPressEvent(QKeyEvent* event);
51 
52 private:
53  CostItem* canShow(CostItem*);
54  void doUpdate(int, bool);
55  void refresh();
56 
57  HighestCostList _hc;
58  bool _showCallers;
59 };
60 
61 #endif
CoverageView::CoverageView
CoverageView(bool showCallers, TraceItemView *parentView, QWidget *parent=0)
Definition: coverageview.cpp:41
QTreeWidget
CoverageView
Definition: coverageview.h:32
CoverageView::whatsThis
QString whatsThis() const
Definition: coverageview.cpp:91
QWidget
CostItem
Base class for cost items.
Definition: costitem.h:37
traceitemview.h
CoverageView::selectedSlot
void selectedSlot(QTreeWidgetItem *, QTreeWidgetItem *)
Definition: coverageview.cpp:186
CoverageView::headerClicked
void headerClicked(int)
Definition: coverageview.cpp:213
TraceItemView
Abstract Base Class for KCachegrind Views.
Definition: traceitemview.h:70
CoverageView::activatedSlot
void activatedSlot(QTreeWidgetItem *, int)
Definition: coverageview.cpp:201
tracedata.h
HighestCostList
A class to calculate the ProfileCostArray items with highest cost.
Definition: subcost.h:78
listutils.h
QTreeWidgetItem
CoverageView::widget
virtual QWidget * widget()
Definition: coverageview.h:40
CoverageView::keyPressEvent
void keyPressEvent(QKeyEvent *event)
Definition: coverageview.cpp:227
CoverageView::context
void context(const QPoint &)
Definition: coverageview.cpp:155
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