/** * @RDE_HEADER@ * SquishTest * $Id$ * $HeadURL$ * $Author$ */ #include #include #include "mainwindow.h" #include #include // ------------------------------------------------------------------- int main (int argc, char* argv[]) { NGLApplication app ( argc, argv ); // under windows for ArcGIS 10.2.6 and higher #ifdef Q_OS_WIN QCoreApplication::setAttribute( Qt::AA_UseOpenGLES ); #endif app.createLogger("sitMapTestApp", "log4cxx_sitMapTestApp.props"); TRACE_LOG(app.baseLogger()) << LOGFUNCTION << " START"; STARTUP_LOG(app.baseLogger()); app.setOrganizationName(QLatin1String("Rheinmetall Defence Electronics")); app.setApplicationName(QLatin1String("Situation Map Test Application")); MainWindow *mw = new MainWindow(); /* QDesktopWidget *desktopWidget = QApplication::desktop(); QRect geom; // DEBUG_LOG(app.baseLogger()) << LOGFUNCTION << " desktopWidget->screenCount() = " << desktopWidget->screenCount(); if (desktopWidget->screenCount() > 1) geom = desktopWidget->screenGeometry(1); else geom = desktopWidget->screenGeometry(); int width = mw->frameGeometry().width(); int height = mw->frameGeometry().height(); int screenWidth = geom.width(); int screenHeight = geom.height(); int screenWidth = 1024; int screenHeight = 768; mw->setGeometry((screenWidth/2)-(width/2),(screenHeight/2)-(height/2),width,height); */ mw->setGeometry(0,0,1024,768); // mw->setWindowState(Qt::WindowMaximized); mw->show(); app.setQuitOnLastWindowClosed(true); int retval = app.exec(); delete mw; SHUTDOWN_LOG(app.baseLogger()); return retval; }