From c323381f0b3ee68b0093442335e8e7cbb112858a Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Wed, 21 Aug 2013 20:16:26 +0200 Subject: regtools: add graphical register explorer + analyser This tool allows one to explore any register map. Register dumps (like produced by hwstub tools) can be loaded and decoded by the tool. Finally some analysers are provided for specific soc analysis like clock tree and emi on imx233 for example. Change-Id: Iaf81bd52d15f3e44ab4fe9bc039153fcf60cf92a --- utils/regtools/qeditor/settings.cpp | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 utils/regtools/qeditor/settings.cpp (limited to 'utils/regtools/qeditor/settings.cpp') diff --git a/utils/regtools/qeditor/settings.cpp b/utils/regtools/qeditor/settings.cpp new file mode 100644 index 0000000..d72a15f --- /dev/null +++ b/utils/regtools/qeditor/settings.cpp @@ -0,0 +1,32 @@ +#include +#include +#include "settings.h" + +Settings::Settings() +{ + +} + +Settings::~Settings() +{ + if(m_settings) + delete m_settings; +} + +QSettings *Settings::GetSettings() +{ + if(!m_settings) + { + QDir dir(QCoreApplication::applicationDirPath()); + QString filename = dir.filePath(QCoreApplication::organizationDomain() + ".ini"); + m_settings = new QSettings(filename, QSettings::IniFormat); + } + return m_settings; +} + +QSettings *Settings::Get() +{ + return g_settings.GetSettings(); +} + +Settings Settings::g_settings; \ No newline at end of file -- cgit v1.1