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:
hjk
2012-09-24 12:06:49 +02:00
parent 31682a0c13
commit 1362f0d27b
3 changed files with 29 additions and 64 deletions

View File

@@ -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