summaryrefslogtreecommitdiff
path: root/core/pim/todo
authorzecke <zecke>2003-02-11 19:12:34 (UTC)
committer zecke <zecke>2003-02-11 19:12:34 (UTC)
commit17738622fd2b61138695441df860f8ecd16f286f (patch) (unidiff)
tree11b6282188661c21d66fef3fb0397437842112a7 /core/pim/todo
parent5145521f5ff79d6a418244e33d357b5b8168e072 (diff)
downloadopie-17738622fd2b61138695441df860f8ecd16f286f.zip
opie-17738622fd2b61138695441df860f8ecd16f286f.tar.gz
opie-17738622fd2b61138695441df860f8ecd16f286f.tar.bz2
fix 0000535.
What is the right size? That depends on the user so save the columWidth() the user used so he should be happy
Diffstat (limited to 'core/pim/todo') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/todo/tableview.cpp16
1 files changed, 13 insertions, 3 deletions
diff --git a/core/pim/todo/tableview.cpp b/core/pim/todo/tableview.cpp
index cec8b5e..ae27fab 100644
--- a/core/pim/todo/tableview.cpp
+++ b/core/pim/todo/tableview.cpp
@@ -56,4 +56,8 @@ void TableView::initConfig() {
56 config.setGroup( "Options" ); 56 config.setGroup( "Options" );
57 m_completeStrokeWidth = config.readNumEntry( "CompleteStrokeWidth", 8 ); 57 m_completeStrokeWidth = config.readNumEntry( "CompleteStrokeWidth", 8 );
58 for (int i = 0; i < numCols(); i++ ) {
59 int width = config.readNumEntry("Width"+QString::number(i), -1 );
60 setColumnWidth(i, width == -1 ? columnWidth(i) : width );
61 }
58} 62}
59 63
@@ -104,4 +108,8 @@ TableView::TableView( MainWindow* window, QWidget* wid )
104 this, SLOT(slotShowMenu()) ); 108 this, SLOT(slotShowMenu()) );
105 109
110 /* now let's init the config */
111 initConfig();
112
113
106 m_enablePaint = true; 114 m_enablePaint = true;
107 setUpdatesEnabled( true ); 115 setUpdatesEnabled( true );
@@ -112,6 +120,5 @@ TableView::TableView( MainWindow* window, QWidget* wid )
112 m_first = true; 120 m_first = true;
113 121
114 /* now let's init the config */ 122
115 initConfig();
116} 123}
117/* a new day has started 124/* a new day has started
@@ -123,5 +130,8 @@ void TableView::newDay() {
123} 130}
124TableView::~TableView() { 131TableView::~TableView() {
125 132 Config config( "todo" );
133 config.setGroup( "Options" );
134 for (int i = 0; i < numCols(); i++ )
135 config.writeEntry("Width"+QString::number(i), columnWidth(i) );
126} 136}
127void TableView::slotShowMenu() { 137void TableView::slotShowMenu() {