2 * TransactionList.cpp - TaskJuggler
4 * Copyright (c) 2001, 2002, 2003, 2004 by Chris Schlaeger <cs@kde.org>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of version 2 of the GNU General Public License as
8 * published by the Free Software Foundation.
12 #include "TransactionList.h"
15 TransactionList::compareItems(QCollection::Item i1, QCollection::Item i2)
17 Transaction* t1 = static_cast<Transaction*>(i1);
18 Transaction* t2 = static_cast<Transaction*>(i2);
20 if (t1->date == t2->date)
23 return t2->date - t1->date;