summaryrefslogtreecommitdiff
path: root/core/pim/todo/tableview.cpp
Side-by-side diff
Diffstat (limited to 'core/pim/todo/tableview.cpp') (more/less context) (show 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
@@ -57,2 +57,6 @@ void TableView::initConfig() {
m_completeStrokeWidth = config.readNumEntry( "CompleteStrokeWidth", 8 );
+ for (int i = 0; i < numCols(); i++ ) {
+ int width = config.readNumEntry("Width"+QString::number(i), -1 );
+ setColumnWidth(i, width == -1 ? columnWidth(i) : width );
+ }
}
@@ -105,2 +109,6 @@ TableView::TableView( MainWindow* window, QWidget* wid )
+ /* now let's init the config */
+ initConfig();
+
+
m_enablePaint = true;
@@ -113,4 +121,3 @@ TableView::TableView( MainWindow* window, QWidget* wid )
- /* now let's init the config */
- initConfig();
+
}
@@ -124,3 +131,6 @@ void TableView::newDay() {
TableView::~TableView() {
-
+ Config config( "todo" );
+ config.setGroup( "Options" );
+ for (int i = 0; i < numCols(); i++ )
+ config.writeEntry("Width"+QString::number(i), columnWidth(i) );
}