forked from qt-creator/qt-creator
Beautifier: Simplify GeneralSettings implementation
Change-Id: Ib8b8f0b1cab3d9bbacf24009c0bd546660c19906 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -14,17 +14,8 @@ using namespace Utils;
|
|||||||
|
|
||||||
namespace Beautifier::Internal {
|
namespace Beautifier::Internal {
|
||||||
|
|
||||||
static GeneralSettings *m_instance;
|
|
||||||
|
|
||||||
GeneralSettings *GeneralSettings::instance()
|
|
||||||
{
|
|
||||||
return m_instance;
|
|
||||||
}
|
|
||||||
|
|
||||||
GeneralSettings::GeneralSettings()
|
GeneralSettings::GeneralSettings()
|
||||||
{
|
{
|
||||||
m_instance = this;
|
|
||||||
|
|
||||||
setId(Constants::OPTION_GENERAL_ID);
|
setId(Constants::OPTION_GENERAL_ID);
|
||||||
setDisplayName(Tr::tr("General"));
|
setDisplayName(Tr::tr("General"));
|
||||||
setCategory(Constants::OPTION_CATEGORY);
|
setCategory(Constants::OPTION_CATEGORY);
|
||||||
|
@@ -14,8 +14,6 @@ class GeneralSettings : public Core::PagedSettings
|
|||||||
public:
|
public:
|
||||||
GeneralSettings();
|
GeneralSettings();
|
||||||
|
|
||||||
static GeneralSettings *instance();
|
|
||||||
|
|
||||||
QList<Utils::MimeType> allowedMimeTypes() const;
|
QList<Utils::MimeType> allowedMimeTypes() const;
|
||||||
|
|
||||||
Utils::BoolAspect autoFormatOnSave;
|
Utils::BoolAspect autoFormatOnSave;
|
||||||
|
Reference in New Issue
Block a user