author | dwmw2 <dwmw2> | 2002-05-09 14:29:57 (UTC) |
---|---|---|
committer | dwmw2 <dwmw2> | 2002-05-09 14:29:57 (UTC) |
commit | 2ba0a18680b3dc6eb0a952977c38fefda34eefa6 (patch) (side-by-side diff) | |
tree | 2c57b7bdf73756b026962ec35a18369f470cef25 | |
parent | 2a21c7fdce37f76d47926b4d326ad0ab638f744b (diff) | |
download | opie-2ba0a18680b3dc6eb0a952977c38fefda34eefa6.zip opie-2ba0a18680b3dc6eb0a952977c38fefda34eefa6.tar.gz opie-2ba0a18680b3dc6eb0a952977c38fefda34eefa6.tar.bz2 |
Remove #include <iostream> which pulled in libstdc++.
-rw-r--r-- | core/pim/todo/todotable.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/core/pim/todo/todotable.cpp b/core/pim/todo/todotable.cpp index 2389cdd..877308a 100644 --- a/core/pim/todo/todotable.cpp +++ b/core/pim/todo/todotable.cpp @@ -1,94 +1,93 @@ /********************************************************************** ** Copyright (C) 2000 Trolltech AS. All rights reserved. ** ** This file is part of Qtopia Environment. ** ** This file may be distributed and/or modified under the terms of the ** GNU General Public License version 2 as published by the Free Software ** Foundation and appearing in the file LICENSE.GPL included in the ** packaging of this file. ** ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. ** ** See http://www.trolltech.com/gpl/ for GPL licensing information. ** ** Contact info@trolltech.com if any conditions of this licensing are ** not clear to you. ** **********************************************************************/ /* Show Deadline was added by Stefan Eilers (se, eilers.stefan@epost.de) */ #include "todotable.h" #include <opie/tododb.h> #include <opie/xmltree.h> #include <qpe/categoryselect.h> #include <qpe/xmlreader.h> #include <qasciidict.h> #include <qcombobox.h> #include <qfile.h> #include <qpainter.h> #include <qtextcodec.h> #include <qtimer.h> #include <qdatetime.h> #include <qtextstream.h> #include <qcursor.h> #include <qregexp.h> #include <errno.h> #include <stdlib.h> #include <stdio.h> -#include <iostream> using namespace Opie; namespace { static bool taskCompare( const ToDoEvent &task, const QRegExp &r, int category ); static QString journalFileName(); static ToDoEvent xmlToEvent( XMLElement *ev ); } CheckItem::CheckItem( QTable *t, const QString &key ) : QTableItem( t, Never, "" ), checked( FALSE ), sortKey( key ) { } QString CheckItem::key() const { return sortKey; } void CheckItem::setChecked( bool b ) { checked = b; table()->updateCell( row(), col() ); } void CheckItem::toggle() { TodoTable *parent = static_cast<TodoTable*>(table()); ToDoEvent newTodo = parent->currentEntry(); checked = !checked; newTodo.setCompleted( checked ); table()->updateCell( row(), col() ); parent->replaceCurrentEntry( newTodo, true ); } bool CheckItem::isChecked() const { return checked; } static const int BoxSize = 10; void CheckItem::paint( QPainter *p, const QColorGroup &cg, const QRect &cr, bool ) { p->fillRect( 0, 0, cr.width(), cr.height(), cg.brush( QColorGroup::Base ) ); int marg = ( cr.width() - BoxSize ) / 2; |