summaryrefslogtreecommitdiff
path: root/noncore/games
authorwaspe <waspe>2003-11-03 18:28:50 (UTC)
committer waspe <waspe>2003-11-03 18:28:50 (UTC)
commit87a9d6badcf518ffd14559ef886ff7729b63b73b (patch) (side-by-side diff)
tree05af57bcebb8a124c2561336e4ff3dfdd52aeccb /noncore/games
parent9ce566fd5b280622670cf7b0e158f9d9c54e6e9a (diff)
downloadopie-87a9d6badcf518ffd14559ef886ff7729b63b73b.zip
opie-87a9d6badcf518ffd14559ef886ff7729b63b73b.tar.gz
opie-87a9d6badcf518ffd14559ef886ff7729b63b73b.tar.bz2
resolved merge conflict
Diffstat (limited to 'noncore/games') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/games/tictac/main.cpp24
1 files changed, 6 insertions, 18 deletions
diff --git a/noncore/games/tictac/main.cpp b/noncore/games/tictac/main.cpp
index 78fb3b7..0185b8c 100644
--- a/noncore/games/tictac/main.cpp
+++ b/noncore/games/tictac/main.cpp
@@ -1,5 +1,9 @@
/****************************************************************************
+<<<<<<< main.cpp
** $Id$
+=======
+** $Id$
+>>>>>>> 1.1.8.1.2.1
**
** Copyright (C) 1992-2000 Trolltech AS. All rights reserved.
**
@@ -9,23 +13,7 @@
*****************************************************************************/
#include <qpe/qpeapplication.h>
-#include <stdlib.h>
+#include <opie/oapplicationfactory.h>
#include "tictac.h"
-
-int main( int argc, char **argv )
-{
- QPEApplication a( argc, argv );
- int n = 3;
- if ( argc == 2 ) // get board size n
- n = atoi(argv[1]);
- if ( n < 3 || n > 10 ) { // out of range
- qWarning( "%s: Board size must be from 3x3 to 10x10", argv[0] );
- return 1;
- }
- TicTacToe ttt( n ); // create game
- a.setMainWidget( &ttt );
- ttt.setCaption( QObject::tr("TicTac") );
- ttt.show(); // show widget
- return a.exec(); // go
-}
+OPIE_EXPORT_APP( OApplicationFactory<TicTacToe> )