• 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
callview.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  * Call Views
21  */
22 
23 #ifndef CALLVIEW_H
24 #define CALLVIEW_H
25 
26 #include <QTreeWidget>
27 #include "tracedata.h"
28 #include "traceitemview.h"
29 
30 class CallView: public QTreeWidget, public TraceItemView
31 {
32  Q_OBJECT
33 
34 public:
35  CallView(bool showCallers, TraceItemView* parentView,
36  QWidget* parent=0);
37 
38  virtual QWidget* widget() { return this; }
39  QString whatsThis() const;
40  bool showCallers() const { return _showCallers; }
41 
42 protected slots:
43  void context(const QPoint &);
44  void selectedSlot(QTreeWidgetItem*, QTreeWidgetItem*);
45  void activatedSlot(QTreeWidgetItem*, int);
46  void headerClicked(int);
47 
48 protected:
49  void keyPressEvent(QKeyEvent* event);
50 
51 private:
52  CostItem* canShow(CostItem*);
53  void doUpdate(int, bool);
54  void refresh();
55 
56  bool _showCallers;
57 };
58 
59 #endif
CallView
Definition: callview.h:30
QWidget
CallView::whatsThis
QString whatsThis() const
Definition: callview.cpp:83
CallView::widget
virtual QWidget * widget()
Definition: callview.h:38
CostItem
Base class for cost items.
Definition: costitem.h:37
traceitemview.h
QPoint
TraceItemView
Abstract Base Class for KCachegrind Views.
Definition: traceitemview.h:70
QTreeWidget
tracedata.h
CallView::context
void context(const QPoint &)
Definition: callview.cpp:111
CallView::selectedSlot
void selectedSlot(QTreeWidgetItem *, QTreeWidgetItem *)
Definition: callview.cpp:154
CallView::keyPressEvent
void keyPressEvent(QKeyEvent *event)
Definition: callview.cpp:185
QString
CallView::activatedSlot
void activatedSlot(QTreeWidgetItem *, int)
Definition: callview.cpp:165
CallView::CallView
CallView(bool showCallers, TraceItemView *parentView, QWidget *parent=0)
Definition: callview.cpp:41
CallView::showCallers
bool showCallers() const
Definition: callview.h:40
QKeyEvent
QTreeWidget::event
virtual bool event(QEvent *e)
QTreeWidgetItem
CallView::headerClicked
void headerClicked(int)
Definition: callview.cpp:176
QObject::parent
QObject * parent() const
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