forked from qt-creator/qt-creator
qmljstools: de-noise
De-pimpl qmljstoolssettings, no need to pimpl a simple pointer. Add using namespace TextEditor. Remove direct instance access. Change-Id: I6b07d209a387d31735b95bc35e60a49a3ace7ca2 Reviewed-by: Daniel Teske <daniel.teske@digia.com> Reviewed-by: Jarek Kobus <jaroslaw.kobus@digia.com>
This commit is contained in:
@@ -35,18 +35,9 @@
|
||||
|
||||
#include <QObject>
|
||||
|
||||
namespace TextEditor
|
||||
{
|
||||
class SimpleCodeStylePreferences;
|
||||
}
|
||||
namespace TextEditor { class SimpleCodeStylePreferences; }
|
||||
|
||||
namespace QmlJSTools
|
||||
{
|
||||
|
||||
namespace Internal
|
||||
{
|
||||
class QmlJSToolsSettingsPrivate;
|
||||
}
|
||||
namespace QmlJSTools {
|
||||
|
||||
/**
|
||||
* This class provides a central place for cpp tools settings.
|
||||
@@ -59,14 +50,7 @@ public:
|
||||
explicit QmlJSToolsSettings(QObject *parent);
|
||||
~QmlJSToolsSettings();
|
||||
|
||||
static QmlJSToolsSettings *instance();
|
||||
|
||||
TextEditor::SimpleCodeStylePreferences *qmlJSCodeStyle() const;
|
||||
|
||||
private:
|
||||
Internal::QmlJSToolsSettingsPrivate *d;
|
||||
|
||||
static QmlJSToolsSettings *m_instance;
|
||||
static TextEditor::SimpleCodeStylePreferences *globalCodeStyle();
|
||||
};
|
||||
|
||||
} // namespace QmlJSTools
|
||||
|
||||
Reference in New Issue
Block a user