From bea97f98bfb31994425908e7ce982b2450696706 Mon Sep 17 00:00:00 2001 From: drw Date: Wed, 25 Feb 2004 16:32:24 +0000 Subject: Todo: libopie->libopie2 --- (limited to 'core/pim/todo/tableview.cpp') diff --git a/core/pim/todo/tableview.cpp b/core/pim/todo/tableview.cpp index d980a24..5bbf880 100644 --- a/core/pim/todo/tableview.cpp +++ b/core/pim/todo/tableview.cpp @@ -37,7 +37,7 @@ #include #include -#include +#include #include "mainwindow.h" //#include "tableitems.h" @@ -184,7 +184,7 @@ int TableView::prev() { } QString TableView::currentRepresentation() { - OTodo to = sorted()[currentRow()]; + OPimTodo to = sorted()[currentRow()]; return to.summary().isEmpty() ? to.description().left(20) : to.summary() ; } /* show overdue */ @@ -204,7 +204,7 @@ void TableView::updateView( ) { */ todoWindow()->setReadAhead( 4 ); sort(); - OTodoAccess::List::Iterator it, end; + OPimTodoAccess::List::Iterator it, end; it = sorted().begin(); end = sorted().end(); @@ -227,13 +227,13 @@ void TableView::updateView( ) { m_enablePaint = true; // int el = time.elapsed(); } -void TableView::setTodo( int, const OTodo&) { +void TableView::setTodo( int, const OPimTodo&) { sort(); /* repaint */ repaint(); } -void TableView::addEvent( const OTodo&) { +void TableView::addEvent( const OPimTodo&) { /* fix problems of not showing the 'Haken' */ updateView(); @@ -242,7 +242,7 @@ void TableView::addEvent( const OTodo&) { * find the event * and then replace the complete row */ -void TableView::replaceEvent( const OTodo& ev) { +void TableView::replaceEvent( const OPimTodo& ev) { addEvent( ev ); } /* @@ -388,7 +388,7 @@ void TableView::paintCell(QPainter* p, int row, int col, const QRect& cr, bool p->save(); - OTodo task = sorted()[row]; + OPimTodo task = sorted()[row]; // TODO - give user option for grid or bars? @@ -497,7 +497,7 @@ void TableView::setCellContentFromEditor(int row, int col ) { QWidget* wid = cellWidget(row, 1 ); if ( wid->inherits("QComboBox") ) { int pri = ((QComboBox*)wid)->currentItem() + 1; - OTodo todo = sorted()[row]; + OPimTodo todo = sorted()[row]; if ( todo.priority() != pri ) { todo.setPriority( pri ); TodoView::update( todo.uid(), todo ); @@ -508,7 +508,7 @@ void TableView::setCellContentFromEditor(int row, int col ) { QWidget* wid = cellWidget(row, 2); if ( wid->inherits("QLineEdit") ) { QString text = ((QLineEdit*)wid)->text(); - OTodo todo = sorted()[row]; + OPimTodo todo = sorted()[row]; if ( todo.summary() != text ) { todo.setSummary( text ); TodoView::update( todo.uid(), todo ); -- cgit v0.9.0.2