::setlocale(LC_NUMERIC, "C");
::setlocale(LC_COLLATE, "C");
- // avoid double Apple menu and other weirdness if both Qt and OSG
- // try to initialise various Cocoa structures.
- flightgear::WindowBuilder::setPoseAsStandaloneApp(false);
-
Qt::KeyboardModifiers mods = app->queryKeyboardModifiers();
if (mods & (Qt::AltModifier | Qt::ShiftModifier)) {
qWarning() << "Alt/shift pressed during launch";
loadNaturalEarthData();
+ // avoid double Apple menu and other weirdness if both Qt and OSG
+ // try to initialise various Cocoa structures.
+ flightgear::WindowBuilder::setPoseAsStandaloneApp(false);
+
QtLauncher dlg;
dlg.show();
#include <Main/fg_init.hxx>
#include <Main/options.hxx>
#include <Include/version.h>
+#include <Viewer/WindowBuilder.hxx>
SetupRootDialog::SetupRootDialog(PromptState prompt) :
QDialog(),
bool SetupRootDialog::runDialog(PromptState prompt)
{
+ // avoid double Apple menu and other weirdness if both Qt and OSG
+ // try to initialise various Cocoa structures.
+ flightgear::WindowBuilder::setPoseAsStandaloneApp(false);
+
SetupRootDialog dlg(prompt);
dlg.exec();
if (dlg.result() != QDialog::Accepted) {
#include <sstream>
-#if defined(HAVE_QT) && defined(SG_MAC)
+#if defined(SG_MAC)
#include <osgViewer/api/Cocoa/GraphicsWindowCocoa>
#endif
= new GraphicsContext::Traits(*defaultTraits);
traits->windowName = "FlightGear";
-#if defined(HAVE_QT) && defined(SG_MAC)
+#if defined(SG_MAC)
int flags = osgViewer::GraphicsWindowCocoa::WindowData::CheckForEvents;
// avoid both QApplication and OSG::CocoaViewer doing single-application