summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/todo/tableview.cpp14
-rw-r--r--core/pim/todo/tableview.h2
-rw-r--r--core/pim/todo/todoview.cpp4
3 files changed, 17 insertions, 3 deletions
diff --git a/core/pim/todo/tableview.cpp b/core/pim/todo/tableview.cpp
index 6299113..743deb7 100644
--- a/core/pim/todo/tableview.cpp
+++ b/core/pim/todo/tableview.cpp
@@ -27,4 +27,5 @@
27*/ 27*/
28#include <stdlib.h> 28#include <stdlib.h>
29#include <cmath>
29 30
30#include <qlineedit.h> 31#include <qlineedit.h>
@@ -33,4 +34,6 @@
33#include <qpopupmenu.h> 34#include <qpopupmenu.h>
34 35
36#include <qpe/config.h>
37
35#include "mainwindow.h" 38#include "mainwindow.h"
36//#include "tableitems.h" 39//#include "tableitems.h"
@@ -45,4 +48,10 @@ namespace {
45 48
46 49
50void TableView::initConfig() {
51 Config config( "todo" );
52 config.setGroup( "Options" );
53 m_completeStrokeWidth = config.readNumEntry( "CompleteStrokeWidth", 8 );
54}
55
47TableView::TableView( MainWindow* window, QWidget* wid ) 56TableView::TableView( MainWindow* window, QWidget* wid )
48 : QTable( wid ), TodoView( window ) { 57 : QTable( wid ), TodoView( window ) {
@@ -97,4 +106,7 @@ TableView::TableView( MainWindow* window, QWidget* wid )
97 setAscending( TRUE ); 106 setAscending( TRUE );
98 m_first = true; 107 m_first = true;
108
109 /* now let's init the config */
110 initConfig();
99} 111}
100/* a new day has started 112/* a new day has started
@@ -489,5 +501,5 @@ void TableView::contentsMouseReleaseEvent( QMouseEvent* e) {
489 int row = rowAt(m_prevP.y()); 501 int row = rowAt(m_prevP.y());
490 if ( row == rowAt( e->y() ) && row != -1 ) { 502 if ( row == rowAt( e->y() ) && row != -1 ) {
491 if ( abs( m_prevP.x() - e->x() ) >= 8 ) { 503 if ( ::abs( m_prevP.x() - e->x() ) >= m_completeStrokeWidth ) {
492 qWarning("current row %d", row ); 504 qWarning("current row %d", row );
493 OTodo todo = sorted()[row]; 505 OTodo todo = sorted()[row];
diff --git a/core/pim/todo/tableview.h b/core/pim/todo/tableview.h
index 0c3e865..e47b38f 100644
--- a/core/pim/todo/tableview.h
+++ b/core/pim/todo/tableview.h
@@ -99,4 +99,6 @@ private slots:
99 void slotPriority(); 99 void slotPriority();
100 private: 100 private:
101 void initConfig();
102 int m_completeStrokeWidth;
101 bool m_row : 1; 103 bool m_row : 1;
102 QPoint m_prevP; 104 QPoint m_prevP;
diff --git a/core/pim/todo/todoview.cpp b/core/pim/todo/todoview.cpp
index 639fa66..4cf7d30 100644
--- a/core/pim/todo/todoview.cpp
+++ b/core/pim/todo/todoview.cpp
@@ -72,8 +72,8 @@ void TodoView::setAscending( bool b ) {
72 m_asc = b; 72 m_asc = b;
73} 73}
74void TodoView::update(int uid, const SmallTodo& to ) { 74void TodoView::update(int, const SmallTodo& ) {
75 //m_main->slotUpate1( uid, to ); 75 //m_main->slotUpate1( uid, to );
76} 76}
77void TodoView::update(int uid, const OTodo& ev ) { 77void TodoView::update(int , const OTodo& ev ) {
78 m_main->updateTodo( ev ); 78 m_main->updateTodo( ev );
79} 79}