~ubuntu-branches/ubuntu/intrepid/kdesdk/intrepid-updates

« back to all changes in this revision

Viewing changes to kcachegrind/kcachegrind/functionitem.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2008-05-28 10:11:43 UTC
  • mto: This revision was merged to the branch mainline in revision 37.
  • Revision ID: james.westby@ubuntu.com-20080528101143-gzc3styjz1b70zxu
Tags: upstream-4.0.80
ImportĀ upstreamĀ versionĀ 4.0.80

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
 
13
13
   You should have received a copy of the GNU General Public License
14
14
   along with this program; see the file COPYING.  If not, write to
15
 
   the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
16
 
   Boston, MA 02111-1307, USA.
 
15
   the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 
16
   Boston, MA 02110-1301, USA.
17
17
*/
18
18
 
19
19
/*
23
23
#ifndef FUNCTIONITEM_H
24
24
#define FUNCTIONITEM_H
25
25
 
26
 
#include <qlistview.h>
 
26
#include <q3listview.h>
 
27
//Added by qt3to4:
 
28
#include <QPixmap>
27
29
#include "tracedata.h"
28
30
 
29
 
class FunctionItem: public QListViewItem
 
31
class FunctionItem: public Q3ListViewItem
30
32
{
31
33
public:    
32
 
  FunctionItem(QListView* parent, TraceFunction* function,
33
 
               TraceCostType* ct, TraceCost::CostType gt);
 
34
  FunctionItem(Q3ListView* parent, TraceFunction* function,
 
35
               TraceEventType* ct, TraceCost::CostType gt);
34
36
  // constructor for a "Skipped ... " entry
35
 
  FunctionItem(QListView* parent, int skipped,
36
 
               TraceFunction* function, TraceCostType* ct);
 
37
  FunctionItem(Q3ListView* parent, int skipped,
 
38
               TraceFunction* function, TraceEventType* ct);
37
39
 
38
 
  int compare(QListViewItem * i, int col, bool ascending ) const;
 
40
  int compare(Q3ListViewItem * i, int col, bool ascending ) const;
39
41
  TraceFunction* function() { return (_skipped) ? 0 : _function; }
40
 
  void setCostType(TraceCostType* ct);
 
42
  void setCostType(TraceEventType* ct);
41
43
  void setGroupType(TraceCost::CostType);
42
44
  void update();
43
45
 
49
51
 
50
52
private:
51
53
  SubCost _sum, _pure;
52
 
  TraceCostType* _costType;
 
54
  TraceEventType* _costType;
53
55
  TraceCost::CostType _groupType;
54
56
  TraceFunction* _function;
55
57
  int _skipped;