Commit e4282d38 authored by Josef Weidendorfer's avatar Josef Weidendorfer

One line for function name in call maps

parent e45b90ae
......@@ -628,6 +628,12 @@ QString CallMapBaseItem::text(int textNo) const
return _f->inclusive()->prettySubCost(ct);
}
int CallMapBaseItem::maxLines(int i) const
{
if (i == 0) return 1; // one line for function name
return 0; // no limit
}
QPixmap CallMapBaseItem::pixmap(int i) const
{
if ((i != 1) || !_f) return QPixmap();
......@@ -760,6 +766,12 @@ QString CallMapCallingItem::text(int textNo) const
return val.pretty();
}
int CallMapCallingItem::maxLines(int i) const
{
if (i == 0) return 1; // one line for function name
return 0; // no limit
}
QPixmap CallMapCallingItem::pixmap(int i) const
{
if (i != 1) return QPixmap();
......@@ -874,6 +886,11 @@ QString CallMapCallerItem::text(int textNo) const
return val.pretty();
}
int CallMapCallerItem::maxLines(int i) const
{
if (i == 0) return 1; // one line for function name
return 0; // no limit
}
QPixmap CallMapCallerItem::pixmap(int i) const
{
......
......@@ -96,6 +96,7 @@ public:
double value() const ;
bool isMarked(int) const;
QString text(int) const;
int maxLines(int) const;
QPixmap pixmap(int) const;
TreeMapItemList* children();
QColor backColor() const;
......@@ -117,6 +118,7 @@ public:
double sum() const;
bool isMarked(int) const;
QString text(int) const;
int maxLines(int) const;
QPixmap pixmap(int) const;
TreeMapItemList* children();
QColor backColor() const;
......@@ -136,6 +138,7 @@ public:
double value() const;
bool isMarked(int) const;
QString text(int) const;
int maxLines(int) const;
QPixmap pixmap(int) const;
TreeMapItemList* children();
QColor backColor() const;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment