summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/todo/mainwindow.cpp10
-rw-r--r--core/pim/todo/mainwindow.h1
-rw-r--r--core/pim/todo/tableview.cpp4
-rw-r--r--core/pim/todo/todoeditor.cpp2
4 files changed, 5 insertions, 12 deletions
diff --git a/core/pim/todo/mainwindow.cpp b/core/pim/todo/mainwindow.cpp
index b2b3b8f..0ab6230 100644
--- a/core/pim/todo/mainwindow.cpp
+++ b/core/pim/todo/mainwindow.cpp
@@ -58,13 +58,13 @@
58 58
59 59
60using namespace Todo; 60using namespace Todo;
61 61
62MainWindow::MainWindow( QWidget* parent, 62MainWindow::MainWindow( QWidget* parent,
63 const char* name ) 63 const char* name )
64 : OPimMainWindow("Todolist") 64 : OPimMainWindow("Todolist", parent, name)
65{ 65{
66 66
67 m_syncing = false; 67 m_syncing = false;
68 m_counter = 0; 68 m_counter = 0;
69 m_tempManager = new TemplateManager(); 69 m_tempManager = new TemplateManager();
70 m_tempManager->load(); 70 m_tempManager->load();
@@ -249,13 +249,13 @@ void MainWindow::initShow() {
249 m_curShow = new TextViewShow(this); 249 m_curShow = new TextViewShow(this);
250 m_stack->addWidget( m_curShow->widget() , m_counter++ ); 250 m_stack->addWidget( m_curShow->widget() , m_counter++ );
251} 251}
252MainWindow::~MainWindow() { 252MainWindow::~MainWindow() {
253 delete templateManager(); 253 delete templateManager();
254} 254}
255void MainWindow::connectBase( ViewBase* base) { 255void MainWindow::connectBase( ViewBase* ) {
256 // once templates and signals mix we'll use it again 256 // once templates and signals mix we'll use it again
257} 257}
258QPopupMenu* MainWindow::contextMenu( int , bool recur ) { 258QPopupMenu* MainWindow::contextMenu( int , bool recur ) {
259 QPopupMenu* menu = new QPopupMenu(); 259 QPopupMenu* menu = new QPopupMenu();
260 260
261 m_editAction->addTo( menu ); 261 m_editAction->addTo( menu );
@@ -794,12 +794,6 @@ void MainWindow::add( const OPimRecord& rec) {
794 794
795 // I'm afraid we must call this every time now, otherwise 795 // I'm afraid we must call this every time now, otherwise
796 // spend expensive time comparing all these strings... 796 // spend expensive time comparing all these strings...
797 // but only call if we changed something -zecke 797 // but only call if we changed something -zecke
798 populateCategories(); 798 populateCategories();
799} 799}
800/* todo does not have the QDataStream<< and >> operators implemented :(
801 * FIXME
802 */
803OPimRecord* MainWindow::record( int rtti, const QByteArray& ) {
804 return 0l;
805}
diff --git a/core/pim/todo/mainwindow.h b/core/pim/todo/mainwindow.h
index 14cfa82..87a9133 100644
--- a/core/pim/todo/mainwindow.h
+++ b/core/pim/todo/mainwindow.h
@@ -193,11 +193,10 @@ private slots:
193 int create(); 193 int create();
194 bool remove( int uid ); 194 bool remove( int uid );
195 void beam(int uid, int transport = IrDa ); 195 void beam(int uid, int transport = IrDa );
196 void show( int uid ); 196 void show( int uid );
197 void edit( int uid ); 197 void edit( int uid );
198 void add( const OPimRecord& ); 198 void add( const OPimRecord& );
199 OPimRecord* record( int rtti, const QByteArray& );
200 }; 199 };
201}; 200};
202 201
203#endif 202#endif
diff --git a/core/pim/todo/tableview.cpp b/core/pim/todo/tableview.cpp
index 0f683c9..2434150 100644
--- a/core/pim/todo/tableview.cpp
+++ b/core/pim/todo/tableview.cpp
@@ -167,19 +167,19 @@ void TableView::updateView( ) {
167 viewport()->setUpdatesEnabled( false ); 167 viewport()->setUpdatesEnabled( false );
168 168
169 setNumRows( it.count() ); 169 setNumRows( it.count() );
170 if ( it.count() == 0 ) 170 if ( it.count() == 0 )
171 killTimer(id); 171 killTimer(id);
172 172
173 int elc = time.elapsed(); 173// int elc = time.elapsed();
174 setUpdatesEnabled( true ); 174 setUpdatesEnabled( true );
175 viewport()->setUpdatesEnabled( true ); 175 viewport()->setUpdatesEnabled( true );
176 viewport()->update(); 176 viewport()->update();
177 177
178 m_enablePaint = true; 178 m_enablePaint = true;
179 int el = time.elapsed(); 179// int el = time.elapsed();
180} 180}
181void TableView::setTodo( int, const OTodo&) { 181void TableView::setTodo( int, const OTodo&) {
182 sort(); 182 sort();
183 183
184 /* repaint */ 184 /* repaint */
185 repaint(); 185 repaint();
diff --git a/core/pim/todo/todoeditor.cpp b/core/pim/todo/todoeditor.cpp
index 9b8c5cb..5aa7097 100644
--- a/core/pim/todo/todoeditor.cpp
+++ b/core/pim/todo/todoeditor.cpp
@@ -34,13 +34,13 @@ OTodo Editor::newTodo( int cur,
34 qWarning("Todo uid"); 34 qWarning("Todo uid");
35 qWarning("Todo %s %d %d", ev.summary().latin1(), ev.progress(), ev.isCompleted() ); 35 qWarning("Todo %s %d %d", ev.summary().latin1(), ev.progress(), ev.isCompleted() );
36 ev.setUid(1); 36 ev.setUid(1);
37 37
38 return ev; 38 return ev;
39} 39}
40OTodo Editor::edit( QWidget *wid, 40OTodo Editor::edit( QWidget *,
41 const OTodo& todo ) { 41 const OTodo& todo ) {
42 OTaskEditor *e = self(); 42 OTaskEditor *e = self();
43 e->init( todo ); 43 e->init( todo );
44 e->setCaption( QObject::tr( "Edit Task" ) ); 44 e->setCaption( QObject::tr( "Edit Task" ) );
45 45
46#if defined(Q_WS_QWS) || defined(_WS_QWS_) 46#if defined(Q_WS_QWS) || defined(_WS_QWS_)