~ubuntu-branches/ubuntu/saucy/muse/saucy

« back to all changes in this revision

Viewing changes to muse/main.cpp

  • Committer: Package Import Robot
  • Author(s): Alessio Treglia
  • Date: 2013-01-31 10:21:39 UTC
  • mfrom: (1.1.15)
  • Revision ID: package-import@ubuntu.com-20130131102139-3nzmsj7eoul58cp5
Tags: 2.1.1-1
* New upstream release.
* Refresh patches.
* Remove unnecessary debian/patches/0001-es_locale_fix.patch.
* Fix Vcs fields.
* Refresh debian/copyright.
* Elaborate public-domain licensed code.
* Fix doc-base control file.
* Bump debhelper requirements.

Show diffs side-by-side

added added

removed removed

Lines of Context:
563
563
      MusEGlobal::muse = new MusEGui::MusE(); 
564
564
      app.setMuse(MusEGlobal::muse);
565
565
 
566
 
      MusEGui::init_function_dialogs(MusEGlobal::muse);
 
566
      MusEGui::init_function_dialogs();
567
567
      MusEGui::retranslate_function_dialogs();
568
568
      
569
569
      // SHOW MUSE SPLASH SCREEN
575
575
                     Qt::WindowStaysOnTopHint);           
576
576
                  muse_splash->setAttribute(Qt::WA_DeleteOnClose);  // Possibly also Qt::X11BypassWindowManagerHint
577
577
                  muse_splash->show();
 
578
                  muse_splash->showMessage("MusE " + QString(VERSION) );
578
579
                  QTimer* stimer = new QTimer(0);
579
580
                  muse_splash->connect(stimer, SIGNAL(timeout()), muse_splash, SLOT(close()));
580
581
                  stimer->setSingleShot(true);
581
582
                  stimer->start(6000);
 
583
                  QApplication::processEvents();
582
584
                  }
583
585
            }
584
586
 
732
734
      int rv = app.exec();
733
735
      if(MusEGlobal::debugMsg) 
734
736
        printf("app.exec() returned:%d\nDeleting main MusE object\n", rv);
735
 
      delete MusEGlobal::muse; 
 
737
      delete MusEGlobal::muse;
 
738
      
736
739
      if(MusEGlobal::debugMsg) 
737
740
        printf("Finished! Exiting main, return value:%d\n", rv);
738
741
      return rv;