summaryrefslogtreecommitdiff
authorzecke <zecke>2002-06-17 13:47:54 (UTC)
committer zecke <zecke>2002-06-17 13:47:54 (UTC)
commit77ec78630c69c80a3d8bad7f7feb9cc9f18ab346 (patch) (unidiff)
treee8dca2e2fe6bae5fc814758f5edc8c0f66528a79
parent282007e58a8a038a0db042341528510e73ac80fc (diff)
downloadopie-77ec78630c69c80a3d8bad7f7feb9cc9f18ab346.zip
opie-77ec78630c69c80a3d8bad7f7feb9cc9f18ab346.tar.gz
opie-77ec78630c69c80a3d8bad7f7feb9cc9f18ab346.tar.bz2
fix overlapping
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/todo/mainwindow.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/pim/todo/mainwindow.cpp b/core/pim/todo/mainwindow.cpp
index 1358f1c..fa9c221 100644
--- a/core/pim/todo/mainwindow.cpp
+++ b/core/pim/todo/mainwindow.cpp
@@ -54,48 +54,49 @@
54#include <sys/stat.h> 54#include <sys/stat.h>
55#include <sys/types.h> 55#include <sys/types.h>
56#include <fcntl.h> 56#include <fcntl.h>
57#include <unistd.h> 57#include <unistd.h>
58 58
59#include <stdlib.h> 59#include <stdlib.h>
60 60
61static QString todolistXMLFilename() 61static QString todolistXMLFilename()
62{ 62{
63 return Global::applicationFileName("todolist","todolist.xml"); 63 return Global::applicationFileName("todolist","todolist.xml");
64} 64}
65 65
66static QString categoriesXMLFilename() 66static QString categoriesXMLFilename()
67{ 67{
68 return Global::applicationFileName("todolist","categories.xml"); 68 return Global::applicationFileName("todolist","categories.xml");
69} 69}
70 70
71TodoWindow::TodoWindow( QWidget *parent, const char *name, WFlags f ) : 71TodoWindow::TodoWindow( QWidget *parent, const char *name, WFlags f ) :
72 QMainWindow( parent, name, f ), syncing(FALSE) 72 QMainWindow( parent, name, f ), syncing(FALSE)
73{ 73{
74// QTime t; 74// QTime t;
75// t.start(); 75// t.start();
76 mView = 0l; 76 mView = 0l;
77 mStack = new QWidgetStack(this, "main stack"); 77 mStack = new QWidgetStack(this, "main stack");
78 setCentralWidget( mStack );
78 setCaption( tr("Todo") ); 79 setCaption( tr("Todo") );
79 QString str; 80 QString str;
80 table = new TodoTable( this ); 81 table = new TodoTable( this );
81 table->setColumnWidth( 2, 10 ); 82 table->setColumnWidth( 2, 10 );
82 table->setPaintingEnabled( FALSE ); 83 table->setPaintingEnabled( FALSE );
83 table->setUpdatesEnabled( FALSE ); 84 table->setUpdatesEnabled( FALSE );
84 table->viewport()->setUpdatesEnabled( FALSE ); 85 table->viewport()->setUpdatesEnabled( FALSE );
85 86
86 { 87 {
87 str = todolistXMLFilename(); 88 str = todolistXMLFilename();
88 if ( str.isNull() ) 89 if ( str.isNull() )
89 QMessageBox::critical( this, 90 QMessageBox::critical( this,
90 tr("Out of Space"), 91 tr("Out of Space"),
91 tr("Unable to create startup files\n" 92 tr("Unable to create startup files\n"
92 "Free up some space\n" 93 "Free up some space\n"
93 "before you enter any data") ); 94 "before you enter any data") );
94 else 95 else
95 table->load( str ); 96 table->load( str );
96 } 97 }
97 98
98 // repeat for categories... 99 // repeat for categories...
99 str = categoriesXMLFilename(); 100 str = categoriesXMLFilename();
100 if ( str.isNull() ) 101 if ( str.isNull() )
101 QMessageBox::critical( this, 102 QMessageBox::critical( this,