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.
23
23
#ifndef FUNCTIONITEM_H
24
24
#define FUNCTIONITEM_H
26
#include <qlistview.h>
26
#include <q3listview.h>
27
29
#include "tracedata.h"
29
class FunctionItem: public QListViewItem
31
class FunctionItem: public Q3ListViewItem
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);
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);