[PC-BSD Commits] r21559 - pcbsd-projects/PCDM

svn at pcbsd.org svn at pcbsd.org
Fri Feb 15 15:36:29 PST 2013


Author: kenmoore
Date: 2013-02-15 23:36:29 +0000 (Fri, 15 Feb 2013)
New Revision: 21559

Modified:
   pcbsd-projects/PCDM/main.cpp
Log:
Re-enable the splash screen, does not make too big of a difference in main timing



Modified: pcbsd-projects/PCDM/main.cpp
===================================================================
--- pcbsd-projects/PCDM/main.cpp	2013-02-15 23:32:06 UTC (rev 21558)
+++ pcbsd-projects/PCDM/main.cpp	2013-02-15 23:36:29 UTC (rev 21559)
@@ -36,11 +36,11 @@
   QApplication a(argc,argv); 
   
   // Show our splash screen, so the user doesn't freak that that it takes a few seconds to show up
-  /*QSplashScreen splash;
+  QSplashScreen splash;
   if(!Config::splashscreen().isEmpty()){
     splash.setPixmap( QPixmap(Config::splashscreen()) ); //load the splashscreen file
   }
-  splash.show();*/
+  splash.show();
   qDebug() << "No SplashScreen Started:" << QString::number(clock.elapsed())+" ms";
   //Initialize the xprocess
   XProcess desktop;
@@ -60,7 +60,7 @@
 	desktop.setXCommand(dcmd);
 	desktop.setXHomeDir( Backend::getUserHomeDir(user) );
 	desktop.startXSession();
-	//splash.close();
+	splash.close();
 	goodAL=TRUE; //flag this as a good login to skip the GUI
     }
   }
@@ -91,7 +91,7 @@
     Backend::log("Starting up PCDM interface");
     PCDMgui w;
     qDebug() << "Main GUI Created:" << QString::number(clock.elapsed())+" ms";
-    //splash.finish(&w); //close the splash when the GUI starts up
+    splash.finish(&w); //close the splash when the GUI starts up
     //Set the proper size on the Application
     //if(Theme::isFullScreen() ){
       w.setWindowFlags(w.windowFlags() ^Qt::WindowSoftkeysVisibleHint);



More information about the Commits mailing list