diff framework/MainWindowBase.cpp @ 452:c651a736ebc4

Fixes to scaling of splash screen
author Chris Cannam
date Wed, 06 May 2015 13:00:57 +0100
parents ba789baf642b
children 549f77216048
line wrap: on
line diff
--- a/framework/MainWindowBase.cpp	Mon Apr 20 10:10:26 2015 +0100
+++ b/framework/MainWindowBase.cpp	Wed May 06 13:00:57 2015 +0100
@@ -164,6 +164,8 @@
     XSetErrorHandler(handle_x11_error);
 #endif
 
+    connect(this, SIGNAL(hideSplash()), this, SLOT(emitHideSplash()));
+    
     connect(CommandHistory::getInstance(), SIGNAL(commandExecuted()),
 	    this, SLOT(documentModified()));
     connect(CommandHistory::getInstance(), SIGNAL(documentRestored()),
@@ -259,6 +261,8 @@
     if (withMIDIInput) {
         m_midiInput = new MIDIInput(QApplication::applicationName(), this);
     }
+
+    QTimer::singleShot(1500, this, SIGNAL(hideSplash()));
 }
 
 MainWindowBase::~MainWindowBase()
@@ -275,6 +279,12 @@
 }
 
 void
+MainWindowBase::emitHideSplash()
+{
+    emit hideSplash(this);
+}
+
+void
 MainWindowBase::finaliseMenus()
 {
     delete m_menuShortcutMapper;