]> Creatis software - clitk.git/commitdiff
Remove useless splashscreen code
authorSimon Rit <simon.rit@creatis.insa-lyon.fr>
Tue, 17 May 2011 17:26:51 +0000 (19:26 +0200)
committerSimon Rit <simon.rit@creatis.insa-lyon.fr>
Tue, 17 May 2011 17:26:51 +0000 (19:26 +0200)
vv/vv.cxx

index 0bfc01ef97084ea2bc695dc0eaee10421ada610c..13a513e576f1e026f5a30cf1ccf6226fad63f59e 100644 (file)
--- a/vv/vv.cxx
+++ b/vv/vv.cxx
@@ -61,7 +61,7 @@ std::string create_timed_string()
 }
 
 //------------------------------------------------------------------------------
-#ifdef _WIN32
+#ifdef _WIN32\r
 int CALLBACK WinMain(HINSTANCE hInstance, HINSTANCE prevInstance, LPSTR lpCmdLine, int nShowCmd)
 {
   int argc = __argc;
@@ -75,13 +75,6 @@ int main( int argc, char** argv )
 
   QApplication app( argc, argv );
   Q_INIT_RESOURCE(vvIcons);
-  //QPixmap pixmap(":/splashscreen.PNG");
-  QSplashScreen *splash = new QSplashScreen(QPixmap(QString::fromUtf8(":/new/prefix1/splashscreen.PNG")));
-  /*splash->showMessage("VV 1.0 developped by Léon Bérard c`ancer center http://www.centreleonberard.fr and CREATIS-LRMN http://www.creatis.insa-lyon.fr",(Qt::AlignRight | Qt::AlignBottom));*/
-  //  splash->show();
-  QTimer::singleShot(2000, splash, SLOT(close()));
-  while (!splash->isHidden())
-    app.processEvents();
 
   vvMainWindow window;