2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2019 The Qt Company Ltd.
|
2022-12-21 10:12:09 +01:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
2019-03-04 17:29:57 +01:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <coreplugin/dialogs/ioptionspage.h>
|
|
|
|
|
|
2021-03-23 15:01:37 +01:00
|
|
|
#include <utils/aspects.h>
|
2019-03-04 17:29:57 +01:00
|
|
|
|
|
|
|
|
namespace QmakeProjectManager {
|
|
|
|
|
namespace Internal {
|
|
|
|
|
|
2021-03-31 12:37:34 +02:00
|
|
|
class QmakeSettings : public Utils::AspectContainer
|
2019-03-04 17:29:57 +01:00
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
2021-03-23 15:01:37 +01:00
|
|
|
|
2019-03-04 17:29:57 +01:00
|
|
|
public:
|
|
|
|
|
static QmakeSettings &instance();
|
|
|
|
|
static bool warnAgainstUnalignedBuildDir();
|
2019-03-06 10:44:28 +01:00
|
|
|
static bool alwaysRunQmake();
|
2020-10-15 17:07:00 +02:00
|
|
|
static bool runSystemFunction();
|
2019-03-04 17:29:57 +01:00
|
|
|
|
|
|
|
|
signals:
|
|
|
|
|
void settingsChanged();
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
QmakeSettings();
|
2021-03-23 15:01:37 +01:00
|
|
|
friend class SettingsWidget;
|
2019-03-04 17:29:57 +01:00
|
|
|
|
2021-03-23 15:01:37 +01:00
|
|
|
Utils::BoolAspect m_warnAgainstUnalignedBuildDir;
|
|
|
|
|
Utils::BoolAspect m_alwaysRunQmake;
|
|
|
|
|
Utils::BoolAspect m_ignoreSystemFunction;
|
2019-03-04 17:29:57 +01:00
|
|
|
};
|
|
|
|
|
|
2020-01-27 08:58:38 +01:00
|
|
|
class QmakeSettingsPage final : public Core::IOptionsPage
|
2019-03-04 17:29:57 +01:00
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
QmakeSettingsPage();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace Internal
|
|
|
|
|
} // namespace QmakeProjectManager
|