summaryrefslogtreecommitdiff
path: root/core/pim/todo/mainwindow.cpp
authorzecke <zecke>2003-08-27 13:12:10 (UTC)
committer zecke <zecke>2003-08-27 13:12:10 (UTC)
commite2cbbacc147897a7db1dfe7335397ce980b295cc (patch) (side-by-side diff)
tree6afbc52fdf2ca5912d20a47eed08141668824782 /core/pim/todo/mainwindow.cpp
parent2635bf400cb58c11f48477150d6fc4337de12fb0 (diff)
downloadopie-e2cbbacc147897a7db1dfe7335397ce980b295cc.zip
opie-e2cbbacc147897a7db1dfe7335397ce980b295cc.tar.gz
opie-e2cbbacc147897a7db1dfe7335397ce980b295cc.tar.bz2
-Convert to quick launch as an example
-Fix a bug. If flush() is called m_syncing = true and on reload m_syncing = false
Diffstat (limited to 'core/pim/todo/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/todo/mainwindow.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/core/pim/todo/mainwindow.cpp b/core/pim/todo/mainwindow.cpp
index 6725951..ecb4e40 100644
--- a/core/pim/todo/mainwindow.cpp
+++ b/core/pim/todo/mainwindow.cpp
@@ -56,2 +56,4 @@
+#include <opie/oapplicationfactory.h>
+
#include "quickeditimpl.h"
@@ -65,2 +67,3 @@
+OPIE_EXPORT_APP( OApplicationFactory<Todo::MainWindow> )
@@ -69,3 +72,3 @@ using namespace Todo;
MainWindow::MainWindow( QWidget* parent,
- const char* name )
+ const char* name, WFlags )
: OPimMainWindow( "Todolist", parent, name, WType_TopLevel | WStyle_ContextHelp )
@@ -352,2 +355,3 @@ TodoShow* MainWindow::currentShow() {
void MainWindow::slotReload() {
+ m_syncing = FALSE;
m_todoMgr.reload();
@@ -606,3 +610,3 @@ void MainWindow::receiveFile( const QString& filename ) {
m_todoMgr.add( (*it) );
-
+
currentView()->updateView();
@@ -613,3 +617,3 @@ void MainWindow::receiveFile( const QString& filename ) {
void MainWindow::slotFlush() {
- m_syncing = FALSE;
+ m_syncing = TRUE;
m_todoMgr.save();