File indexing completed on 2025-02-16 11:41:01
0001 /*************************************************************************** 0002 * Copyright (C) 1999-2005 Trolltech AS * 0003 * Copyright (C) 2006 David Saxton <david@bluehaze.org> * 0004 * * 0005 * This file may be distributed and/or modified under the terms of the * 0006 * GNU General Public License version 2 as published by the Free * 0007 * Software Foundation * 0008 ***************************************************************************/ 0009 0010 #include "canvasitemlist.h" 0011 0012 #include <algorithm> 0013 0014 void KtlQCanvasItemList::sort() 0015 { 0016 std::sort(begin(), end()); 0017 } 0018 0019 KtlQCanvasItemList KtlQCanvasItemList::operator+(const KtlQCanvasItemList &l) const 0020 { 0021 KtlQCanvasItemList l2(*this); 0022 for (const_iterator it = l.begin(); it != l.end(); ++it) 0023 l2.append(*it); 0024 return l2; 0025 }