summaryrefslogtreecommitdiff
path: root/core/pim/datebook/main.cpp
Side-by-side diff
Diffstat (limited to 'core/pim/datebook/main.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/datebook/main.cpp19
1 files changed, 3 insertions, 16 deletions
diff --git a/core/pim/datebook/main.cpp b/core/pim/datebook/main.cpp
index caa5fb6..8004690 100644
--- a/core/pim/datebook/main.cpp
+++ b/core/pim/datebook/main.cpp
@@ -20,19 +20,6 @@
#include "datebook.h"
#include <qpe/qpeapplication.h>
-
-
-int main( int argc, char **argv )
-{
- QPEApplication a( argc, argv );
-
- DateBook e;
- QObject::connect( &a, SIGNAL( flush() ), &e, SLOT( flush() ) );
- QObject::connect( &a, SIGNAL( reload() ), &e, SLOT( reload() ) );
-
-
- e.setCaption( DateBook::tr("Calendar") );
- a.showMainWidget(&e);
-
- return a.exec();
-}
+#include <opie/oapplicationfactory.h>
+
+OPIE_EXPORT_APP( OApplicationFactory<DateBook> )