comparison main/main.cpp @ 247:587c79827c69

* (failed) attempt to hide splash screen when error occurs on startup
author Chris Cannam
date Tue, 11 Mar 2008 09:23:48 +0000
parents a47d7116aedf
children f88cb5bc5142
comparison
equal deleted inserted replaced
244:a47d7116aedf 247:587c79827c69
283 qRegisterMetaType<size_t>("size_t"); 283 qRegisterMetaType<size_t>("size_t");
284 qRegisterMetaType<PropertyContainer::PropertyName>("PropertyContainer::PropertyName"); 284 qRegisterMetaType<PropertyContainer::PropertyName>("PropertyContainer::PropertyName");
285 285
286 MainWindow *gui = new MainWindow(audioOutput, oscSupport); 286 MainWindow *gui = new MainWindow(audioOutput, oscSupport);
287 application.setMainWindow(gui); 287 application.setMainWindow(gui);
288 QObject::connect(gui, SIGNAL(hideSplash()), &splash, SLOT(hide()));
288 289
289 QDesktopWidget *desktop = QApplication::desktop(); 290 QDesktopWidget *desktop = QApplication::desktop();
290 QRect available = desktop->availableGeometry(); 291 QRect available = desktop->availableGeometry();
291 292
292 int width = available.width() * 2 / 3; 293 int width = available.width() * 2 / 3;