-rw-r--r-- | core/pim/todo/mainwindow.cpp | 1 |
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 | |||
@@ -62,32 +62,33 @@ static QString todolistXMLFilename() | |||
62 | { | 62 | { |
63 | return Global::applicationFileName("todolist","todolist.xml"); | 63 | return Global::applicationFileName("todolist","todolist.xml"); |
64 | } | 64 | } |
65 | 65 | ||
66 | static QString categoriesXMLFilename() | 66 | static QString categoriesXMLFilename() |
67 | { | 67 | { |
68 | return Global::applicationFileName("todolist","categories.xml"); | 68 | return Global::applicationFileName("todolist","categories.xml"); |
69 | } | 69 | } |
70 | 70 | ||
71 | TodoWindow::TodoWindow( QWidget *parent, const char *name, WFlags f ) : | 71 | TodoWindow::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") ); |