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
@@ -28,2 +28,3 @@
28#include <stdlib.h> 28#include <stdlib.h>
29#include <cmath>
29 30
@@ -34,2 +35,4 @@
34 35
36#include <qpe/config.h>
37
35#include "mainwindow.h" 38#include "mainwindow.h"
@@ -46,2 +49,8 @@ namespace {
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 )
@@ -98,2 +107,5 @@ TableView::TableView( MainWindow* window, QWidget* wid )
98 m_first = true; 107 m_first = true;
108
109 /* now let's init the config */
110 initConfig();
99} 111}
@@ -490,3 +502,3 @@ void TableView::contentsMouseReleaseEvent( QMouseEvent* e) {
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 );
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
@@ -100,2 +100,4 @@ private slots:
100 private: 100 private:
101 void initConfig();
102 int m_completeStrokeWidth;
101 bool m_row : 1; 103 bool m_row : 1;
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
@@ -73,6 +73,6 @@ void TodoView::setAscending( bool 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 );