diff options
author | Espen Riskedal <espenr@trolltech.com> | 2009-06-22 09:20:47 (GMT) |
---|---|---|
committer | Espen Riskedal <espenr@trolltech.com> | 2009-06-22 09:20:47 (GMT) |
commit | be49dfa4f3ed9111731d9503061882ac70b89e71 (patch) | |
tree | 634ba24ca9e8761bfee095717114dc79eaf6310e /demos/embedded/anomaly/src/Main.cpp | |
parent | 8e0652a494580ba3b806a1b10905b5420f7c94e6 (diff) | |
download | Qt-be49dfa4f3ed9111731d9503061882ac70b89e71.zip Qt-be49dfa4f3ed9111731d9503061882ac70b89e71.tar.gz Qt-be49dfa4f3ed9111731d9503061882ac70b89e71.tar.bz2 |
fix spelling and add to embedded.pro
Diffstat (limited to 'demos/embedded/anomaly/src/Main.cpp')
-rw-r--r-- | demos/embedded/anomaly/src/Main.cpp | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/demos/embedded/anomaly/src/Main.cpp b/demos/embedded/anomaly/src/Main.cpp new file mode 100644 index 0000000..2be6143 --- /dev/null +++ b/demos/embedded/anomaly/src/Main.cpp @@ -0,0 +1,59 @@ +/**************************************************************************** +** +** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). +** Contact: Qt Software Information (qt-info@nokia.com) +** +** This file is part of the Anomaly project on Qt Labs. +** +** This file may be used under the terms of the GNU General Public +** License version 2.0 or 3.0 as published by the Free Software Foundation +** and appearing in the file LICENSE.GPL included in the packaging of +** this file. Please review the following information to ensure GNU +** General Public Licensing requirements will be met: +** http://www.fsf.org/licensing/licenses/info/GPLv2.html and +** http://www.gnu.org/copyleft/gpl.html. +** +** If you are unsure which license is appropriate for your use, please +** contact the sales department at qt-sales@nokia.com. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +****************************************************************************/ + +#include <QtCore> +#include <QtGui> +#include <QtWebKit> + +#include "BrowserWindow.h" + +#if defined (Q_OS_SYMBIAN) +#include "sym_iap_util.h" +#endif + +int main(int argc, char *argv[]) +{ +#if !defined(Q_WS_S60) + QApplication::setGraphicsSystem("raster"); +#endif + + QApplication app(argc, argv); + + app.setApplicationName("Anomaly"); + app.setApplicationVersion("0.0.0"); + + BrowserWindow window; +#ifdef Q_OS_SYMBIAN + window.showFullScreen(); + QWebSettings::globalSettings()->setObjectCacheCapacities(128*1024, 1024*1024, 1024*1024); + QWebSettings::globalSettings()->setMaximumPagesInCache(3); + qt_SetDefaultIap(); +#else + window.resize(360, 640); + window.show(); + app.setStyle("windows"); +#endif + + return app.exec(); +} + |