summaryrefslogtreecommitdiff
path: root/core/pim/todo/todotable.h
authorzecke <zecke>2002-09-10 13:15:52 (UTC)
committer zecke <zecke>2002-09-10 13:15:52 (UTC)
commit4fe9ebf0faabcfdcdc0104309da59de043d9785a (patch) (side-by-side diff)
tree0cdf6b1f45df2e014c1cceb4f943779861cc2767 /core/pim/todo/todotable.h
parent8db6dc7be6e274fe1ce762b15801052bce7bcf26 (diff)
downloadopie-4fe9ebf0faabcfdcdc0104309da59de043d9785a.zip
opie-4fe9ebf0faabcfdcdc0104309da59de043d9785a.tar.gz
opie-4fe9ebf0faabcfdcdc0104309da59de043d9785a.tar.bz2
COmpile fixes
Diffstat (limited to 'core/pim/todo/todotable.h') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/todo/todotable.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/core/pim/todo/todotable.h b/core/pim/todo/todotable.h
index 39e00d1..7539df1 100644
--- a/core/pim/todo/todotable.h
+++ b/core/pim/todo/todotable.h
@@ -71,7 +71,7 @@ private:
class TodoTextItem : public QTableItem
{
public:
- TodoTextItem( QTable *t, const QString & str )
+ TodoTextItem( QTable *t, const QString & str )
:QTableItem( t, QTableItem::Never, str ) {}
QString key () const { return Qtopia::buildSortKey( text() ); }
@@ -192,8 +192,11 @@ private:
inline void TodoTable::insertIntoTable( ToDoEvent *todo, int row )
{
- QString sortKey = (char) ((todo->isCompleted() ? 'a' : 'A')
- + todo->priority() )
+ int rows = numRows();
+ ++rows;
+ setNumRows( rows );
+ QString sortKey = (char) ((todo->isCompleted() ? 'a' : 'A')
+ + todo->priority() )
+ Qtopia::buildSortKey( todo->description() );
CheckItem *chk = new CheckItem( this, sortKey );
chk->setChecked( todo->isCompleted() );
@@ -205,7 +208,7 @@ inline void TodoTable::insertIntoTable( ToDoEvent *todo, int row )
DueTextItem *due = new DueTextItem(this, todo );
setItem( row, 3, due);
-
+
setItem( row, 0, chk );
setItem( row, 1, cmb );
setItem( row, 2, ti );