Ensure we build on Qt 5.4 (no qInfo)
This commit is contained in:
parent
5c3c4a6733
commit
abcbbe897f
3 changed files with 9 additions and 5 deletions
|
@ -71,7 +71,6 @@ void LaunchConfig::applyToOptions() const
|
|||
if (arg.origin == Launcher) {
|
||||
auto it = extraArgs.find(name);
|
||||
if (it != extraArgs.end()) {
|
||||
qInfo() << "skipping arg:" << arg.arg << "=" << arg.value << "because the user has over-ridden it";
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -87,6 +86,12 @@ std::set<std::string> LaunchConfig::extraArgNames() const
|
|||
// don't override prop: arguments
|
||||
if (arg.arg == "prop") continue;
|
||||
|
||||
// allow some multi-valued arguments
|
||||
if (arg.arg == "fg-scenery")
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if (arg.origin == ExtraArgs)
|
||||
r.insert(arg.arg.toStdString());
|
||||
}
|
||||
|
|
|
@ -107,7 +107,6 @@ LauncherController::LauncherController(QObject *parent, QWindow* window) :
|
|||
m_subsystemIdleTimer->start();
|
||||
|
||||
QRect winRect= settings.value("window-geometry").toRect();
|
||||
qInfo() << "read saved window geometry:" << winRect;
|
||||
|
||||
if (winRect.isValid()) {
|
||||
m_window->setGeometry(winRect);
|
||||
|
@ -117,7 +116,6 @@ LauncherController::LauncherController(QObject *parent, QWindow* window) :
|
|||
}
|
||||
|
||||
if (settings.contains("window-state")) {
|
||||
qInfo() << "restoring window state";
|
||||
const auto ws = static_cast<Qt::WindowState>(settings.value("window-state").toInt());
|
||||
m_window->setWindowState(ws);
|
||||
}
|
||||
|
@ -254,7 +252,9 @@ void LauncherController::collectAircraftArgs()
|
|||
QString state = m_aircraftState;
|
||||
if ((m_aircraftState == "auto") && !m_selectedAircraftInfo->haveExplicitAutoState()) {
|
||||
state = selectAircraftStateAutomatically();
|
||||
#if QT_VERSION >= 0x050600
|
||||
qInfo() << "doing launcher auto state selection, picked:" + state;
|
||||
#endif
|
||||
}
|
||||
|
||||
if (!state.isEmpty()) {
|
||||
|
|
|
@ -501,7 +501,6 @@ void LocationController::setBaseLocation(QmlPositioned* pos)
|
|||
m_airportLocation = static_cast<FGAirport*>(m_location.ptr());
|
||||
// disable offset when selecting a heliport
|
||||
if (m_airportLocation->isHeliport()) {
|
||||
qInfo() << "disabling offset";
|
||||
m_onFinal = false;
|
||||
}
|
||||
} else {
|
||||
|
@ -1006,7 +1005,7 @@ void LocationController::applyAltitude()
|
|||
void LocationController::onCollectConfig()
|
||||
{
|
||||
if (m_skipFromArgs) {
|
||||
qInfo() << Q_FUNC_INFO << "skipping argument collection";
|
||||
qWarning() << Q_FUNC_INFO << "skipping argument collection";
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue