comparison src/main.cpp @ 572:3f0b44418a19 by-id

Toward using ModelById logic (incomplete)
author Chris Cannam
date Mon, 08 Jul 2019 14:12:08 +0100
parents dd344309667f
children 47f96711069f
comparison
equal deleted inserted replaced
571:2cf4978eb724 572:3f0b44418a19
25 #include "transform/TransformFactory.h" 25 #include "transform/TransformFactory.h"
26 #include "svcore/plugin/PluginScan.h" 26 #include "svcore/plugin/PluginScan.h"
27 27
28 #include <QMetaType> 28 #include <QMetaType>
29 #include <QApplication> 29 #include <QApplication>
30 #include <QDesktopWidget> 30 #include <QScreen>
31 #include <QMessageBox> 31 #include <QMessageBox>
32 #include <QTranslator> 32 #include <QTranslator>
33 #include <QLocale> 33 #include <QLocale>
34 #include <QSettings> 34 #include <QSettings>
35 #include <QIcon> 35 #include <QIcon>
282 application.setMainWindow(gui); 282 application.setMainWindow(gui);
283 if (splash) { 283 if (splash) {
284 QObject::connect(gui, SIGNAL(hideSplash()), splash, SLOT(hide())); 284 QObject::connect(gui, SIGNAL(hideSplash()), splash, SLOT(hide()));
285 } 285 }
286 286
287 QDesktopWidget *desktop = QApplication::desktop(); 287 QScreen *screen = QApplication::primaryScreen();
288 QRect available = desktop->availableGeometry(); 288 QRect available = screen->availableGeometry();
289 289
290 int width = (available.width() * 2) / 3; 290 int width = (available.width() * 2) / 3;
291 int height = available.height() / 2; 291 int height = available.height() / 2;
292 if (height < 450) height = (available.height() * 2) / 3; 292 if (height < 450) height = (available.height() * 2) / 3;
293 if (width > height * 2) width = height * 2; 293 if (width > height * 2) width = height * 2;