comparison main/main.cpp @ 763:7374badd5f9e

Set parents for various dialogs (to avoid them hitting focus-stealing prevention)
author Chris Cannam
date Wed, 13 Aug 2014 16:45:14 +0100
parents ccf3749cbaea
children ce4d9e149086
comparison
equal deleted inserted replaced
762:902756b8d8b1 763:7374badd5f9e
19 #include "system/Init.h" 19 #include "system/Init.h"
20 #include "base/TempDirectory.h" 20 #include "base/TempDirectory.h"
21 #include "base/PropertyContainer.h" 21 #include "base/PropertyContainer.h"
22 #include "base/Preferences.h" 22 #include "base/Preferences.h"
23 #include "widgets/TipDialog.h" 23 #include "widgets/TipDialog.h"
24 #include "widgets/InteractiveFileFinder.h"
25 #include "svapp/framework/TransformUserConfigurator.h"
24 #include "transform/TransformFactory.h" 26 #include "transform/TransformFactory.h"
25 27
26 #include <QMetaType> 28 #include <QMetaType>
27 #include <QApplication> 29 #include <QApplication>
28 #include <QDesktopWidget> 30 #include <QDesktopWidget>
342 // Permit size_t and PropertyName to be used as args in queued signal calls 344 // Permit size_t and PropertyName to be used as args in queued signal calls
343 qRegisterMetaType<PropertyContainer::PropertyName>("PropertyContainer::PropertyName"); 345 qRegisterMetaType<PropertyContainer::PropertyName>("PropertyContainer::PropertyName");
344 346
345 MainWindow *gui = new MainWindow(audioOutput, oscSupport); 347 MainWindow *gui = new MainWindow(audioOutput, oscSupport);
346 application.setMainWindow(gui); 348 application.setMainWindow(gui);
349 InteractiveFileFinder::setParentWidget(gui);
350 TransformUserConfigurator::setParentWidget(gui);
347 if (splash) { 351 if (splash) {
348 QObject::connect(gui, SIGNAL(hideSplash()), splash, SLOT(hide())); 352 QObject::connect(gui, SIGNAL(hideSplash()), splash, SLOT(hide()));
349 } 353 }
350 354
351 QDesktopWidget *desktop = QApplication::desktop(); 355 QDesktopWidget *desktop = QApplication::desktop();