From 87a9d6badcf518ffd14559ef886ff7729b63b73b Mon Sep 17 00:00:00 2001 From: waspe Date: Mon, 03 Nov 2003 18:28:50 +0000 Subject: resolved merge conflict --- (limited to 'noncore/games/tictac/main.cpp') 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 -#include +#include #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 ) -- cgit v0.9.0.2