void CelSplashScreen::finish( QWidget *mainWin )
{
    if ( mainWin ) {
	extern void qt_wait_for_window_manager( QWidget *mainWin );
	qt_wait_for_window_manager( mainWin );
    }
    close();
}
Exemple #2
0
/*!
    Makes the splash screen wait until the widget \a mainWin is displayed
    before calling close() on itself.
*/
void QSplashScreen::finish( QWidget *mainWin )
{
    if ( mainWin ) {
#if defined(Q_WS_X11)
	extern void qt_wait_for_window_manager( QWidget *mainWin );
	qt_wait_for_window_manager( mainWin );
#endif
    }
    close();
}
Exemple #3
0
int main( int argc, char **argv )
{
#if defined(Q_WS_WIN)
     qt_ntfs_permission_lookup = 0;
#endif

    // Initialize the BehavePlus QApplication.
    BehavePlusApp *app = new BehavePlusApp( argc, argv );
    Q_CHECK_PTR( app );
    app->connect( app, SIGNAL( lastWindowClosed() ), app, SLOT( quit() ) );

    // Start the logger
    startLog( argc, argv );

    // Show the splash page
    app->showSplashPage( /* saveSplashPage */ false );
    app->updateSplashPage( "Initializing..." );

    // Create the application main window
    AppWindow *appWin = new AppWindow( app, app->m_program, app->m_version,
        app->m_build, app->m_releaseNote );
    Q_CHECK_PTR( appWin );
    app->setMainWidget( appWin );

#if defined( _WS_X11 )
    qt_wait_for_window_manager( appWin );
#endif

    // Run the application.
    int result = app->exec();

    // Cleanup
    stopLog();
    delete app;         app = 0;
    return( result );
}