Commit 30fd098d authored by Christian Kamm's avatar Christian Kamm Committed by Bill King

C++ indenter: Make CppCodeStyleSettings a class.

Also register it with the meta type system.

Change-Id: Id720e43d19765283765e7dbbd46820ba9cfb1be7
Reviewed-on: http://codereview.qt.nokia.com/172Reviewed-by: default avatarBill King <bill.king@nokia.com>
parent 8e84872a
......@@ -12,8 +12,9 @@ QT_END_NAMESPACE
namespace CppTools {
struct CPPTOOLS_EXPORT CppCodeStyleSettings
class CPPTOOLS_EXPORT CppCodeStyleSettings
{
public:
CppCodeStyleSettings();
bool indentBlockBraces;
......
......@@ -44,6 +44,7 @@
#include "cppcompletionassist.h"
#include "cpptoolssettings.h"
#include "cppcodestylesettingsfactory.h"
#include "cppcodestylesettings.h"
#include <extensionsystem/pluginmanager.h>
......@@ -105,6 +106,9 @@ bool CppToolsPlugin::initialize(const QStringList &arguments, QString *error)
{
Q_UNUSED(arguments)
Q_UNUSED(error)
qRegisterMetaType<CppTools::CppCodeStyleSettings>("CppTools::CppCodeStyleSettings");
Core::ICore *core = Core::ICore::instance();
Core::ActionManager *am = core->actionManager();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment