|
|
|
@ -28,8 +28,8 @@
|
|
|
|
|
#include <QtGui/QWidget>
|
|
|
|
|
#include <QtCore/QSettings>
|
|
|
|
|
|
|
|
|
|
namespace ExtensionSystem
|
|
|
|
|
{
|
|
|
|
|
namespace ExtensionSystem
|
|
|
|
|
{
|
|
|
|
|
class IPluginManager;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -38,13 +38,14 @@ namespace Plugin
|
|
|
|
|
|
|
|
|
|
class CLogPlugin;
|
|
|
|
|
|
|
|
|
|
CLogSettingsPage::CLogSettingsPage(QObject *parent)
|
|
|
|
|
CLogSettingsPage::CLogSettingsPage(CLogPlugin *logPlugin, QObject *parent)
|
|
|
|
|
: IOptionsPage(parent),
|
|
|
|
|
m_logPlugin(logPlugin),
|
|
|
|
|
m_currentPage(NULL),
|
|
|
|
|
m_error(true),
|
|
|
|
|
m_warning(true),
|
|
|
|
|
m_debug(true),
|
|
|
|
|
m_assert(true),
|
|
|
|
|
m_error(true),
|
|
|
|
|
m_warning(true),
|
|
|
|
|
m_debug(true),
|
|
|
|
|
m_assert(true),
|
|
|
|
|
m_info(true)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
@ -115,10 +116,10 @@ namespace Plugin
|
|
|
|
|
QSettings *settings = Core::ICore::instance()->settings();
|
|
|
|
|
|
|
|
|
|
settings->beginGroup(Core::Constants::LOG_SECTION);
|
|
|
|
|
m_error = settings->value(Core::Constants::LOG_ERROR, true).toBool();
|
|
|
|
|
m_warning = settings->value(Core::Constants::LOG_WARNING, true).toBool();
|
|
|
|
|
m_debug = settings->value(Core::Constants::LOG_DEBUG, true).toBool();
|
|
|
|
|
m_assert = settings->value(Core::Constants::LOG_ASSERT, true).toBool();
|
|
|
|
|
m_error = settings->value(Core::Constants::LOG_ERROR, true).toBool();
|
|
|
|
|
m_warning = settings->value(Core::Constants::LOG_WARNING, true).toBool();
|
|
|
|
|
m_debug = settings->value(Core::Constants::LOG_DEBUG, true).toBool();
|
|
|
|
|
m_assert = settings->value(Core::Constants::LOG_ASSERT, true).toBool();
|
|
|
|
|
m_info = settings->value(Core::Constants::LOG_INFO, true).toBool();
|
|
|
|
|
settings->endGroup();
|
|
|
|
|
}
|
|
|
|
|