summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--core/pim/todo/mainwindow.cpp8
-rw-r--r--core/pim/todo/mainwindow.h5
-rw-r--r--core/pim/todo/todo.pro28
3 files changed, 14 insertions, 27 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();
@@ -613,3 +617,3 @@ void MainWindow::receiveFile( const QString& filename ) {
void MainWindow::slotFlush() {
- m_syncing = FALSE;
+ m_syncing = TRUE;
m_todoMgr.save();
diff --git a/core/pim/todo/mainwindow.h b/core/pim/todo/mainwindow.h
index b04a958..bd341c2 100644
--- a/core/pim/todo/mainwindow.h
+++ b/core/pim/todo/mainwindow.h
@@ -64,4 +64,7 @@ namespace Todo {
public:
+ /* OApplicationFactory application Name */
+ static QString appName() { return QString::fromLatin1("todolist"); }
+
MainWindow( QWidget *parent = 0,
- const char* name = 0 );
+ const char* name = 0, WFlags fl = 0 );
~MainWindow();
diff --git a/core/pim/todo/todo.pro b/core/pim/todo/todo.pro
index 4a63770..51cfde7 100644
--- a/core/pim/todo/todo.pro
+++ b/core/pim/todo/todo.pro
@@ -1,4 +1,4 @@
-TEMPLATE = app
-CONFIG = qt warn_on release
-DESTDIR = $(OPIEDIR)/bin
+#TEMPLATE = app
+CONFIG = qt warn_on release quick-app
+#DESTDIR = $(OPIEDIR)/bin
@@ -26,3 +26,3 @@ SOURCES = smalltodo.cpp \
mainwindow.cpp \
- main.cpp \
+# main.cpp \
tableview.cpp \
@@ -48,22 +48,2 @@ LIBS += -lqpe -lopie
-TRANSLATIONS = ../../../i18n/de/todolist.ts \
- ../../../i18n/nl/todolist.ts \
- ../../../i18n/da/todolist.ts \
- ../../../i18n/xx/todolist.ts \
- ../../../i18n/en/todolist.ts \
- ../../../i18n/es/todolist.ts \
- ../../../i18n/fr/todolist.ts \
- ../../../i18n/hu/todolist.ts \
- ../../../i18n/ja/todolist.ts \
- ../../../i18n/ko/todolist.ts \
- ../../../i18n/no/todolist.ts \
- ../../../i18n/pl/todolist.ts \
- ../../../i18n/pt/todolist.ts \
- ../../../i18n/pt_BR/todolist.ts \
- ../../../i18n/sl/todolist.ts \
- ../../../i18n/zh_CN/todolist.ts \
- ../../../i18n/zh_TW/todolist.ts
-
-
-
include ( $(OPIEDIR)/include.pro )