summaryrefslogtreecommitdiff
path: root/core/pim/todo/tableview.cpp
Side-by-side diff
Diffstat (limited to 'core/pim/todo/tableview.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/todo/tableview.cpp18
1 files changed, 9 insertions, 9 deletions
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
@@ -36,9 +36,9 @@
#include <qpe/config.h>
#include <qpe/resource.h>
-#include <opie/orecur.h>
+#include <opie2/opimrecurrence.h>
#include "mainwindow.h"
//#include "tableitems.h"
#include "tableview.h"
@@ -183,9 +183,9 @@ int TableView::prev() {
return sorted().uidAt( currentRow() );
}
QString TableView::currentRepresentation() {
- OTodo to = sorted()[currentRow()];
+ OPimTodo to = sorted()[currentRow()];
return to.summary().isEmpty() ? to.description().left(20) : to.summary() ;
}
/* show overdue */
void TableView::showOverDue( bool ) {
@@ -203,9 +203,9 @@ void TableView::updateView( ) {
* Calculate that screensize
*/
todoWindow()->setReadAhead( 4 );
sort();
- OTodoAccess::List::Iterator it, end;
+ OPimTodoAccess::List::Iterator it, end;
it = sorted().begin();
end = sorted().end();
qWarning("setTodos");
@@ -226,24 +226,24 @@ 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();
}
/*
* find the event
* and then replace the complete row
*/
-void TableView::replaceEvent( const OTodo& ev) {
+void TableView::replaceEvent( const OPimTodo& ev) {
addEvent( ev );
}
/*
* re aligning table can be slow too
@@ -387,9 +387,9 @@ void TableView::paintCell(QPainter* p, int row, int col, const QRect& cr, bool
const QColorGroup &cg = colorGroup();
p->save();
- OTodo task = sorted()[row];
+ OPimTodo task = sorted()[row];
// TODO - give user option for grid or bars?
// Paint alternating background bars
@@ -496,9 +496,9 @@ void TableView::setCellContentFromEditor(int row, int col ) {
if ( col == 1 ) {
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 );
updateView();
@@ -507,9 +507,9 @@ void TableView::setCellContentFromEditor(int row, int col ) {
}else if ( col == 2) {
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 );
updateView();