Code Cleanup: Valgrind Memory

Not sure why, but setting the text on a treewidget item seems to
cost a lot of memory. So we don't bother since it is never used.

In general the valgrind output is ok, quite surprised. There are
very few non-widget items that are alloced but never free'd in the
GC code.
This commit is contained in:
Mark Liversedge
2013-02-11 11:32:23 +00:00
parent 147d9c81ed
commit d7ec43633f

View File

@@ -31,13 +31,7 @@ RideItem::RideItem(int type,
const Zones *zones, const HrZones *hrZones, MainWindow *main) :
QTreeWidgetItem(type), ride_(NULL), main(main), isdirty(false), isedit(false), path(path), fileName(fileName),
dateTime(dateTime), zones(zones), hrZones(hrZones)
{
setText(0, dateTime.toString("ddd"));
setText(1, dateTime.toString("MMM d, yyyy"));
setText(2, dateTime.toString("h:mm AP"));
setTextAlignment(1, Qt::AlignRight);
setTextAlignment(2, Qt::AlignRight);
}
{ }
RideFile *RideItem::ride()
{